Author Topic: New row comit and pq_detail column  (Read 1736 times)

MichalV

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 8
    • View Profile
New row comit and pq_detail column
« on: March 03, 2025, 08:58:19 pm »
Hi Paramvir,

After the data saving the "add" commit fails if the grid includes pq_detail column (recIndx remains empty)
As a workaround I use the following code before the comit:

Code: [Select]
grid.Columns().find(function (column) {
    if (column.dataIndx == "pq_detail") {
        grid.Columns().hide({ diHide: ["pq_detail"] });
    }
});


And the following after the commit:

Code: [Select]
grid.Columns().find(function (column) {
    if (column.dataIndx == "pq_detail") {
       grid.Columns().hide({ diShow: ["pq_detail"] });
    }
});

Is it possible to fix it in the next release? E.g. skip the pq_detail column in the grid.commit function?
Thanks in advance for you help!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6382
    • View Profile
Re: New row comit and pq_detail column
« Reply #1 on: March 21, 2025, 11:46:01 am »
I don't understand why you have added pq_detail in the colModel. Can you please clarify?