Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Return key from a new record
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00268077
Message ID:
00268333
Vues:
18
>Complex environment question. I have a system where I can add to a customers environment, a new agreement (loan on a car or boat).
>
>My data is One : Many : One. One customer can have multiple accounts and each account is to only 1 asset.
>
>In my generating a new loan, the customer is picked from the list or added. They can then refinance an exisitng loan, or add a new asset for the loan. I need to grab the key from adding that asset, so I can use it on the loan agreement as the Fkey to the asset.
>
>Form in use is cmaintenancebizobject that calls a form based on cbizobjaddform. Thhey both work great, but how do I capture the REAL key value when it saves the asset to the dbf?
>
>I'm using views. The manual says that you can return a value from a modal form, but it's giving me a 0 insted of the real value (275 as an example). This.Form.uretVal=uid is in the click event to save.
>
>TIA
>
>__Stephen



Did you try the View.Fields Value?!

e.g. Return myView.MainKey

In General Case, Direct EDIT the field value and refresh form is better than assign form object such as textbox
value for re-direct assign field!

p.s. It seems you put this question in Wrong Category!

~_^
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform