Welcome to the nuBuilder Forums!

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

Populate external table from LAUNCH-form

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:

Populate external table from LAUNCH-form

Unread post by kknm »

There is a LAUNCH-form consisting of 5 sub-forms, on the basis of which a row for an external table is formed. For this, another sub-form (GRID type) is used.
Having collected data from 3 sub-forms, you need to write them into an external database table. I use nuRunPHPHiddenWhithParams, but after struggling with base64encode - base64decode I thought that perhaps there is a way to write data to an external table from js. But the problem is that all the source tables and the destination do not have a common foreign key.
obzor_1.jpg
I tried changing LAUNCH-form to BROWSE-EDIT...The save button appears when changing the GRID-form, but nothing is saved.
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Populate external table from LAUNCH-form

Unread post by kev1n »

kknm wrote: Thu Nov 16, 2023 1:51 pm I tried changing LAUNCH-form to BROWSE-EDIT...The save button appears when changing the GRID-form, but nothing is saved.
Try PHP BS and use nuSubformObject() to retrieve the subform data.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Populate external table from LAUNCH-form

Unread post by kknm »

I got the correct subform data except nuID which = -1. Shouldn't it be generated automatically? Maybe I need to generate it myself?
Post Reply