Welcome to the nuBuilder Forums!

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

Fix for window.nuTimesSaved

Questions related to using nuBuilder Forte.
Post Reply
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Fix for window.nuTimesSaved

Unread post by kev1n »

1. Open an Edit Screen, e.g. an existing record
2. A click on a button will open another record in the same Breadcrumb: nuForm(nuGetProperty('form_id'),'some_other_record_id' , '', '', '1');
3. window.nuTimesSaved is incremented, which is wrong (no saving has taken place!)
4. Consequently, nuHasBeenSaved() returns 1, which is also not correct

Fix: Set Window.nuLastRecordId = f.record_id and compare its value with f.record_id when nuBuildForm() is called.
(In other words: When another record is opened in the same breadcrumb, do not increment nuTimesSaved)

https://github.com/smalos/nuBuilder4-Bu ... esSaved.md
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Fix for window.nuTimesSaved

Unread post by admin »

kev1n,

This has been added.

Thanks


Steven
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Fix for window.nuTimesSaved

Unread post by kev1n »

Thanks Steven!
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Fix for window.nuTimesSaved

Unread post by admin »

.
Post Reply