Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CListObjEdit on first page
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
CListObjEdit on first page
Divers
Thread ID:
00450311
Message ID:
00450311
Vues:
67
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform