Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add lookup values 'On the fly' in MMF
Message
De
16/02/2000 14:02:20
 
 
À
16/02/2000 13:34:58
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00332839
Message ID:
00333032
Vues:
17
>James,
>
>The way MM works is you save the Parent information, then save all the Child information for that Parent. What I am looking for is a way to save information in the Lookup and have it available immediately, not after the Parent.Save(). For this to happen, I would need to save the Lookup information, and requery the lookup view. This would leave that information if the Lookup base table regardless of the outcome of the Parent.Save()
>
>I was looking to see if this is possible, and how to accomplish this.
>
>Thanks
>
>Rex
>
>>>Kevin. et al
>>>
>>>How can I add new information to my comboboxl.RowSource view 'on the fly'?
>>>
>>>Example:
>>>
>>>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.
>>>
>>>Have you had to solve this problem? How?
>>>
>>>TIA
>>>
>>>Rex
>>
>>Check out the cancel child on cancel parent option and the requery child on delete parent option in the bizobj (page 3). This should take care of the problem.

Now I understand. Would you consider writing a custom save method in your bizobj that called the save method of your child bizobj? For instance:

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


Primarybizobj.CustomSave()


IF vartype(childbizobj) = 'O'
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform