Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CBizObjNoListMaintForm & defaut value on view's field
Message
From
23/07/2003 12:34:14
 
 
To
23/07/2003 12:02:11
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00812793
Message ID:
00812828
Views:
14
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

>Hello Roberto,

>The message you're seeing is based on checking GETFLDSTATE() and that function has no way of knowing whether the field was changed by the program or an end user.

>I think the question here is whether you care to have your default value saved if the user doesn't alter anything.

>If you do, issue a BizObj.Save() after setting the default value. If not, you can check GETFLDSTATE() in the form's close and issue a BizObj.Cancel() if nothing else has been changed.

>Hope that helps,
>---J

>I assigned a default value to a view's field. Now every time a user try to close my cBizObjNoListMaintForm (that uses that OB' view) a "Do you want to save your changes first?" message comes up. And that's confusing for users since this happen when user did not change anything.
>Is there any way to change this behavior in such a way that this message is shown only if user do change a field's value (interactively)?
>Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform