Information générale
Catégorie:
The Mere Mortals Framework
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement