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

>I have an inventory transaction form. In the form I have a Parent of v_Inventory with a Child of v_InventoryDetail. The Child has a Lookup (DropDown Combo) of v_InventoryLot which is related to Child by an iInventoryLotId field. If I add a new element in Lookup and execute a Lookup.Save(), then cancel the Parent transaction, I still have the Lookup entry.>

The cleanest implementation is to not save the Lookup until the Parent is saved. You can make the Lookup cursor table buffered so you can add new records without having them saved to the source table until you're ready.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform