Page 1 of 1
nuAddRow not generating Unique ID
Posted: Sun Apr 01, 2018 5:34 am
by mskat
Used nuAddRow in JavaScript to generate a row in a subform and instead of a unique ID number for each row it generates a -1. Is this the correct behavior?
Re: nuAddRow not generating Unique ID
Posted: Sun Apr 01, 2018 6:58 am
by admin
mskat,
Yes, that is the way it is supposed to work.
IDs are generated on the server by PHP.
Steven
Re: nuAddRow not generating Unique ID
Posted: Thu Apr 05, 2018 7:02 pm
by mskat
Yes, that seems to be the case but for some reason when I save the record, the values for certain columns of the first row are not saved.
Re: nuAddRow not generating Unique ID
Posted: Thu Apr 05, 2018 7:40 pm
by toms
Do you manually modify the cells or by script? If by script, you need to invoke .change() otherwise the fields will not be saved.