SubForm is a new entry.

Questions related to customising nuBuilder Forte with Javascript or PHP.

SubForm is a new entry.

Unread postby kknm » Wed Apr 07, 2021 11:02 pm

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?
kknm
 
Posts: 204
Joined: Sat Apr 11, 2020 7:33 am

Re: SubForm is a new entry.

Unread postby kev1n » Wed Apr 07, 2021 11:36 pm

You could use the PHP AS event to add a record.
kev1n
nuBuilder Team
 
Posts: 1622
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: SubForm is a new entry.

Unread postby kknm » Wed Apr 07, 2021 11:52 pm

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?
kknm
 
Posts: 204
Joined: Sat Apr 11, 2020 7:33 am

Re: SubForm is a new entry.

Unread postby kev1n » Thu Apr 08, 2021 3:37 am

Calling a PHP procedure or executing the code in AS would be pretty much the same.
kev1n
nuBuilder Team
 
Posts: 1622
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5


Return to Custom Code

Who is online

Users browsing this forum: No registered users and 4 guests