Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CBizObjNoListMaintForm & defaut value on view's field
Message
From
23/07/2003 13:29:27
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
23/07/2003 12:34:14
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00812793
Message ID:
00812850
Views:
14
This message has been marked as the solution to the initial question of the thread.
Roberto,

First, I would add a method to the BizObj that checks if the field in question is the only one changed.

Then add code to the forms checking that method. In your NoListMaintForm, that would be the Close() method:
*This assumes you don't want to save unless the user has made changes.
IF !YourBizObj.HasUserChanges()
   YourBizObj.Cancel()
ENDIF

RETURN DODEFAULT()
I'm not sure where you're getting this message in the Find Form, but you would do something similar there...

Hope that makes sense,
---J

>Hello Jason,
>Thanks for your replay.
>I'm not sure if I follow your sugestion.
>Where should I place the code checking GETFLDSTATE() so the message wont come up?
>In addition to the form's closing it also happen when the user selects a record in the form companion Find Form, so I need to place code around there too
>Regards,
>Roberto
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform