Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add lookup values 'On the fly' in MMF
Message
From
16/02/2000 14:24:00
 
 
To
16/02/2000 13:34:58
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00332839
Message ID:
00333037
Views:
13
Rex,

Ignore the last post from me. I sent it by accident. You have a sticky situation.

Commandbutton.click()
Thisform.oBizobj.CustomSave()

Primarybizobj.CustomSave()
IF vartype(oChildbizobj) = 'O'
   IF oChildBizobj.Save() = FILE_OK
     lcChildID = v_childview.childID
     llContinue = .t.
   ELSE
      oChildBizobj.Cancel()
   ENDIF
   IF llContinue
     REPLACE v_primaryview.value WITH lcChildID
     IF THIS.SAVE <> FILE_OK
        This.Cancel()
     ENDIF
   ENDIF
ENDIF
Another option would be to wrap everything in a transaction on the form level and switch out bizobjects as you need them.
Previous
Reply
Map
View

Click here to load this message in the networking platform