Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple Data Elements and Query Parameters
Message
De
15/09/2004 11:36:50
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
 
 
À
18/08/2004 17:24:02
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00934196
Message ID:
00942456
Vues:
23
If you are using a cListObjEdit, do you add the this.dss_iid with a this.addproperty at init time?

Thanks,

June

>>I have a second data access element spcified for a business object, and it needs a view parameter. In the postinithook method for the bizobj, I have two View Parameters specified, where v_md is the second data access element, and v_dss and v_mm are views of other bizobjs.:
>>
>>
>>this.AddViewParameter('vp_idid', 'v_dss.iid')
>>this.AddViewParameter('vp_imid', 'v_mm.iid', 'v_md')
>>
>>
>>When I run the form, I am asked for the value of vp_imid.
>
>You almost never want a view parameter to be based on another view. The suggested method for managing view parameters is to store the value to the business object. You can then create a method to pass the new values along to the view.
>
>
>bizobj.postinithook
>This.AddViewParameter('vp_idid', 'This.dss_iid')
>This.AddViewParameter('vp_imid', 'This.mm_iid')
>
>bizobj.MyNewRequery
>LPARAMETERS tDSS_iid, tMM_iid
>This.dss_iid = tDSS_iid
>This.mm_iid = tMM_iid
>This.Requery()
>
>
>Chris.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform