Re: How to determine if a record has change?

Florian Groothuis

I wanna jump in on this one:


I never use DirDlg() or FileDlg directly on a variable but always an extra variable. If you do an update on a variable with DirDlg() and the user presses ‘Cancel’ the original value will be gone and the variable will be empty. I use an extra variable, update that one with the DirDlg() and if not empty than update the original variable with that value. And no, RS is not triggered.




Van: [] Namens Wes Hein
Verzonden: dinsdag 27 juni 2017 0:06
Onderwerp: Re: [magicu-l] How to determine if a record has change?


One thing to remember though is that Magic must sense that the user made a change for the viewmod() or record suffix to fire.  So lets say you use the DirDlg function to update a field and the user initiates no other input, the record suffix will not fire.  In those cases if the folder variable is 'DA' I add a DA<>VarPrev('DA'VAR) in the Force record suffix setting in the Task Properties.


Met vriendelijke groet - With kind regards,

Florian Groothuis
+31 (0)6 21927914

Meilink Beheer Borculo B.V. • Kamerlingh Onnesstraat 1
7271 AZ  Borculo • Nederland • +31 (0)545 253525
KvK 08009803 • Our general terms and conditions apply • Disclaimer

Join to automatically receive all group messages.