Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CListObjEdit on first page
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
CListObjEdit on first page
Miscellaneous
Thread ID:
00450311
Message ID:
00450311
Views:
66
Hi all.

I have a cBizObjMaintBaseForm with a cListObjEdit class on the first page tab. The records in the cListObjEdit BizObj are child records to the primary bizobj. Also, the child bizobj is tablebuffered. When a change is made to a child record via the cListObjEditForm the AsktoSave message displays upon returning to the page tab.

Tracing the code the AsktoSave message display is called from the Page1.Activate method, specifically a call to the forms isChanged method.

The forms isChanged method in turn calls the (primary) BizObj isChanged method. The (primary) BizObj isChanged method checks for changed child records -- which of course there are. Hence the AsktoSave message.

Does anyone have any suggestions on getting around this issue? Moving the child records to a different page tab is not an option. The users require that the parent data and the child data reside on the same page.

My thoughts thus far are to put a hook into one of the isChanged methods (a PreIsChanged) and check for the existence of the cListEditObj on page1 IF the obj exist, check a custom property of the cListObjEdit class to determin if the message needs to be displayed.

Anyone have anyother ideas?

Thanks for any comments, suggestions...

Bob
Next
Reply
Map
View

Click here to load this message in the networking platform