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:02:11
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
23/07/2003 11:28:10
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00812793
Message ID:
00812811
Views:
13
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