Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

nuAddRow not generating Unique ID

Questions related to using nuBuilder Forte.
Post Reply
mskat
Posts: 7
Joined: Fri Sep 13, 2013 11:07 am

nuAddRow not generating Unique ID

Unread post 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?
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: nuAddRow not generating Unique ID

Unread post by admin »

mskat,

Yes, that is the way it is supposed to work.

IDs are generated on the server by PHP.

Steven
mskat
Posts: 7
Joined: Fri Sep 13, 2013 11:07 am

Re: nuAddRow not generating Unique ID

Unread post 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.
You do not have the required permissions to view the files attached to this post.
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: nuAddRow not generating Unique ID

Unread post 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.
Post Reply