Welcome to the nuBuilder Forums!

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

nuUpdateTableSchema() - saving issue

Questions related to using nuBuilder Forte.
Locked
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

nuUpdateTableSchema() - saving issue

Unread post by toms »

Hi,

A recent change to nuUpdateTableSchema() causes a problem with forms that contain a subform and execute nuRunPHPHidden().

Upon opening my Edit Screen, a PHP function is executed.

Code: Select all

if (nuFormType() == 'edit') {

   nuRunPHPHidden(...);

}
When a user enters data and saves the record, an error message is shown
"tablXYZ is not a valid table name for a Subform"
Then, when the record is saved a second time, the record is saved (without error message)

I found out that the problem is caused by nuSetJSONData() in nuUpdateTableSchema().

Quick fix: I commented out the code (see screenshot) and all works fine again.
nuUpdateTableSchema.png
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: nuUpdateTableSchema() - saving issue

Unread post by toms »

Thanks, the fix works for me.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: nuUpdateTableSchema() - saving issue

Unread post by admin »

.
Locked