Author Topic: problem after addRow() - update failure and infinite repeat.  (Read 1856 times)

kjvjung

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 33
    • View Profile
problem after addRow() - update failure and infinite repeat.
« on: October 16, 2017, 07:29:02 am »
I added row via addRow ().
I modified the contents in the grid.


function saveChanges () {
...
                 var changes = grid.getChanges ({editable: true});
                 debugger;
...
}

The normal case was as follows.
changes.updateList
  • :

{idx: "930", RealPid: null, MenuName: "zzz", AutoGubun: null, g12: null, ... }
(good!)


However, the line added by addRow () looks like this:
changes.updateList
  • :
[idx: "931", RealPid: null, MenuName: "zzz", AutoGubun: null, g12: null, ... ]
(bad!)

What's the problem? What is the solution?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: problem after addRow() - update failure and infinite repeat.
« Reply #1 on: October 16, 2017, 11:53:50 am »
Please check whether you have passed object ( new row ) correctly to addRow()

https://paramquery.com/pro/api#method-addRow