Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CmdOkmaint and cmdCancelmaint
Message
From
31/05/2002 13:54:18
 
 
To
30/05/2002 14:24:57
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00662930
Message ID:
00663570
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform