nuUpdateTableSchema() - saving issue
Posted: Mon Aug 20, 2018 12:04 pm
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.
When a user enters data and saves the record, an error message is shown
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.
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(...);
}
Then, when the record is saved a second time, the record is saved (without error message)"tablXYZ is not a valid table name for a Subform"
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.