Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Questions related to using nuBuilder Forte.
toms
Posts: 785 Joined: Sun Oct 14, 2018 11:25 am
Unread post
by toms » Sat Jul 28, 2018 10:07 pm
Hi,
nuIsSaved() no longer works as expected due to a recent change.
I have this code in my forms (After saving, return to the previous breadcrumb)
Code: Select all
if (nuFormType() == 'edit') {
if (nuIsSaved()) {
// return to the previous breadcrumb
}
}
(also see
https://forums.nubuilder.cloud/viewtopic. ... ved#p16144 )
example.JPG
Originally the function nuIsSaved() would only return
true if "the current Edit Form has just been Saved." (description form the wiki)
Now nuIsSaved() also returns true when a new record is opened or an existing one is edited.
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2814 Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times
Unread post
by admin » Tue Jul 31, 2018 6:15 am
Andrew,
Now nuIsSaved() will return false if edited but not saved.
Steven
toms
Posts: 785 Joined: Sun Oct 14, 2018 11:25 am
Unread post
by toms » Fri Aug 03, 2018 4:48 pm
toms wrote: Hi,
nuIsSaved() no longer works as expected due to a recent change.
I have this code in my forms (After saving, return to the previous breadcrumb)
Code: Select all
if (nuFormType() == 'edit') {
if (nuIsSaved()) {
// return to the previous breadcrumb
}
}
(also see
https://forums.nubuilder.cloud/viewtopic. ... ved#p16144 )
example.JPG
Originally the function nuIsSaved() would only return
true if "the current Edit Form has just been Saved." (description form the wiki)
Now nuIsSaved() also returns true when a new record is opened or an existing one is edited.
Since nuIsSaved() doesn't anymore detect if a form has just been saved, would it be possible to create a new function (e.g. nuHasBeenSaved, or nuHasJustBeenSaved) ?
Last edited by Anonymous on Fri Aug 10, 2018 7:43 am, edited 1 time in total.
toms
Posts: 785 Joined: Sun Oct 14, 2018 11:25 am
Unread post
by toms » Tue Aug 07, 2018 5:10 am
Also: nuIsSaved() now returns true for new (unsaved) records - Is that really how it's supposed to be?
toms
Posts: 785 Joined: Sun Oct 14, 2018 11:25 am
Unread post
by toms » Sat Aug 11, 2018 6:10 am
Steven,
Perfect! Thank you so much.