Welcome to the nuBuilder Forums!

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

Saving not working anymore

Questions related to using nuBuilder Forte.
Post Reply
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Saving not working anymore

Unread post by Timo »

Hi,

One of my forms doesn't save anymore after I did an update. I see a "Saved" message but then all fields are cleared out. Has anything changed with the save function?
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Saving not working anymore

Unread post by admin »

Timo,

Can you give more information, like, do any of your Forms save?


Steven
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: Saving not working anymore

Unread post by Timo »

It is just one form that causes problems when saving. I added breakpoints to js functions and found out that the problem must be related to the nuAjax function.

Code: Select all

function nuAjax(w,successCallback,errorCallback){

	if(!window.nuAjaxCompleted){return;}
Obviously nuAjax is called twice while saving. The first time the function runs through properly without any problems since window.nuAjaxCompleted is true.
The second time nuAja is called window.nuAjaxCompleted is false and the functions aborts. Looks like there's a timing issue (1st nuAxaj call still running as it runs asynchronously)

When I comment this the line out that checks for window.nuAjaxCompleted, the saving succeeds. But I'm not sure if it has other side effects if this line is excluded.
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: Saving not working anymore

Unread post by Timo »

Timo wrote:When I comment this the line out that checks for window.nuAjaxCompleted, the saving succeeds. But I'm not sure if it has other side effects if this line is excluded.
Steven, what do you think?
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Saving not working anymore

Unread post by kev1n »

Timo,

Try the latest from GitHub. There have been some changes:

https://github.com/steven-copley/nubuil ... 6c944008e3
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Saving not working anymore

Unread post by admin »

Guys,

The changes are now on Sourceforge.


Steven
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: Saving not working anymore

Unread post by Timo »

It's saving again, thank you
Post Reply