Page 1 of 1

Fix for window.nuTimesSaved

Posted: Tue Jun 09, 2020 5:24 pm
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

Re: Fix for window.nuTimesSaved

Posted: Mon Jul 06, 2020 1:39 am
by admin
kev1n,

This has been added.

Thanks


Steven

Re: Fix for window.nuTimesSaved

Posted: Wed Jul 08, 2020 11:09 am
by kev1n
Thanks Steven!

Re: Fix for window.nuTimesSaved

Posted: Thu Jul 09, 2020 9:20 pm
by admin
.