Welcome to the nuBuilder Forums!

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

SubForm is a new entry.

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

SubForm is a new entry.

Unread post by kknm »

There are several BrowseForms on the main form, from which an array of values ​​is typed to fill the event log (:: subform).
Since this is a new record, it does not have a foreign key that is required for the new record.
How do I add a new entry to a subform - not PHP?
kev1n
nuBuilder Team
Posts: 4304
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: SubForm is a new entry.

Unread post by kev1n »

You could use the PHP AS event to add a record.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: SubForm is a new entry.

Unread post by kknm »

I can write the necessary data to the database through the PHP procedure and update the form, but I was looking for a more elegant way. Can you describe in more detail how to do this in PHP AS?
kev1n
nuBuilder Team
Posts: 4304
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: SubForm is a new entry.

Unread post by kev1n »

Calling a PHP procedure or executing the code in AS would be pretty much the same.
Post Reply