Welcome to the nuBuilder Forums!

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

Copy values from one table to another one

Questions related to using nuBuilder Forte.
Post Reply
stevenmiller
Posts: 25
Joined: Mon Jul 06, 2020 4:23 pm
Has thanked: 3 times

Copy values from one table to another one

Unread post by stevenmiller »

Hi all,
I have a form, where values from a different table are shown via a display object.
Now I want to copy these values to the form's table.
I have created corresponding input objects for these values and I fill these objects with
nuSetValue('inputObject', nuGetValue('displayObject'));
Which works fine, the only problem is, that the values in the inputObject are not saved to the table, only if I change them manually they are stored in the table, when I click save.
What is missing or what would be the best way to do this?
Thanks
Steven
kev1n
nuBuilder Team
Posts: 4302
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Copy values from one table to another one

Unread post by kev1n »

Hi,

Saving works fine with the latest version.

Call the change() method of the object

Code: Select all

$('#inputObject').change();
if you are using an older version.
stevenmiller
Posts: 25
Joined: Mon Jul 06, 2020 4:23 pm
Has thanked: 3 times

Re: Copy values from one table to another one

Unread post by stevenmiller »

Thanks, Kevin, you're a star! It works perfectly after updating.
Post Reply