Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CmdOkmaint and cmdCancelmaint
Message
De
31/05/2002 13:54:18
 
 
À
30/05/2002 14:24:57
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00662930
Message ID:
00663570
Vues:
13
I found something wrong in the code. If you will look at cbizobjmaintbaseform.saverecord() (for OK button) and at cbizobjmaintbase.cancel() (for Cancel button), you will find the code below:

If thisform.nGotopageonCancel != 0 AND;
thisform.obizobj.lprimarybizobj AND;
thisform.pgfbizobj.activepage != thisform.nGotopageonCancel

thisform.pgfbizobj.activepage = thisform.ngotopageonCancel
Endif

For ok button, nGotopageonCancel is just replaced by nGotopageonSave in its code.

The problem is that, since my business object on the third page is an auto-primary business object, "lprimarybizobj" flag is .F. and "lautoprimarybizobj" is .T. Well, looking at the above code, it will never satisfy the condition. I'm wondering why Kevin didn't put the same code that he did in cbizobjform.cancel() to refresh the form as shown below.

IF VARTYPE(This.oBizObj) == "O" AND ;
(ThisForm.oBizObj.lPrimaryBizObj OR ; ** I think, this should also be
ThisForm.oBizObj.lAutoPrimaryBizObj) ** done in cbizobjmaintbase.cancel
This.RefreshForm()
ENDIF

I think I will override some codes in this case.

Nerissa
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform