Fix for window.nuTimesSaved

Questions related to using nuBuilder Forte.

Fix for window.nuTimesSaved

Postby kev1n » Wed Jun 10, 2020 12:54 am

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
Attachments
nuLastRecordId.png
nuLastRecordId.png (33.34 KiB) Viewed 80 times
kev1n
 
Posts: 784
Joined: Mon Oct 15, 2018 2:13 am

Re: Fix for window.nuTimesSaved

Postby admin » Mon Jul 06, 2020 9:09 am

kev1n,

This has been added.

Thanks


Steven
admin
Site Admin
 
Posts: 3289
Joined: Mon Jun 15, 2009 9:53 am



Return to General