Topic Options
Rate This Topic
#139044 - 10/18/07 03:59 PM Dirty Check
OluShow Offline
Stealth Member

Registered: 01/23/07
Posts: 31
How do I enable a dirty check on a modify button, when a field value has changed? E.g. If a value on a specific field has changed, how do I add a dirty check to warn users of unsaved changes.?

Top
#139046 - 10/19/07 06:22 AM Re: Dirty Check [Re: OluShow]
Shark_7-11 Offline
Stealth Member
*****

Registered: 09/26/06
Posts: 267
Only on a specific field? I don't know of an easy way.
What I usually do is:
Create ActLink on Window loaded, diaply or open (depend how you open the form) on runlevel 999
Do Run Process
SET-CHANGE-FLAG 0
This is to clear the dirty flag after everything has been set
Now as soon as the user changes anything, this will change to 1
Then you can use GET-CHANGE-FLAG to check if it has changed :-)
Hope this helps
_________________________
Mayhem, Chaos and Anarchy
My job here is complete!

Top
#139047 - 10/19/07 06:23 AM Re: Dirty Check [Re: Shark_7-11]
Shark_7-11 Offline
Stealth Member
*****

Registered: 09/26/06
Posts: 267
P.S. Cant remember if SET-CHANGE-FLAG takes string ("1") or integer (1)
_________________________
Mayhem, Chaos and Anarchy
My job here is complete!

Top
#139058 - 10/19/07 11:14 AM Re: Dirty Check [Re: Shark_7-11]
Carlos Offline
Stealth Member

Registered: 01/24/07
Posts: 82
Loc: London
Integer \:\)

Top