Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Add Record Failure

Questions related to using nuBuilder Forte.
Post Reply
vario
Posts: 154
Joined: Mon Dec 05, 2011 12:23 pm
Location: Newton Abbot, UK
Has thanked: 2 times
Been thanked: 1 time

Add Record Failure

Unread post by vario »

I have just upgraded my 4.5 database and a form which worked yesterday now fails to add new records. The processing is:

1) From browse form click "Add"
2) Upload a file using code adapted from https://github.com/smalos/nuBuilder4-Co ... d_file.php.
3) Click "Save" on the edit form.
4) In After Save code update the new record with a date taken from the uploaded data.
5) Show the uploaded data in a subform.

The problem being there is no row in the form table for the #RECORD_ID#, though the #RECORD_ID# is present in the subform data created during "After Save". I can find no errors in the browser console or the httpd error logs and if I query the form table in After Save there is no data for #RECORD_ID#.

As I say, all was working before the upgrade and no other forms are misbehaving as far I have been able to discern! The form table is only two columns - a primary key and a date.

Neil.
kev1n
nuBuilder Team
Posts: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:

Re: Add Record Failure

Unread post by kev1n »

Hi Neil,

Could you try replacing

Code: Select all

if (!empty($F)) {
with

Code: Select all

if (true) {
in nudata.php, line L325

and see if saving works again?
vario
Posts: 154
Joined: Mon Dec 05, 2011 12:23 pm
Location: Newton Abbot, UK
Has thanked: 2 times
Been thanked: 1 time

Re: Add Record Failure

Unread post by vario »

Yes, that has worked and the new row is added correctly.
Post Reply