Page 1 of 1

Saving not working anymore

Posted: Tue Oct 22, 2019 7:05 pm
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?

Re: Saving not working anymore

Posted: Wed Oct 23, 2019 10:38 pm
by admin
Timo,

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


Steven

Re: Saving not working anymore

Posted: Thu Oct 24, 2019 2:29 am
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.

Re: Saving not working anymore

Posted: Wed Oct 30, 2019 11:27 pm
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?

Re: Saving not working anymore

Posted: Fri Nov 01, 2019 5:27 am
by kev1n
Timo,

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

https://github.com/steven-copley/nubuil ... 6c944008e3

Re: Saving not working anymore

Posted: Fri Nov 01, 2019 6:11 am
by admin
Guys,

The changes are now on Sourceforge.


Steven

Re: Saving not working anymore

Posted: Sat Nov 23, 2019 7:33 am
by Timo
It's saving again, thank you