Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View parameter hook
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00601211
Message ID:
00601229
Vues:
20
You initiate the variable in the PostInitHook of the business object where the data evenironment object that contains the view pertains to. The code would look like:

this.AddViewParameter('vp_route','')

make sure the second parameter is passed as a character.

>I have an odd view that contains the code:
>
>
>LEFT OUTER JOIN delimgr!master ;
>        ON CustomerProducts.iid = master.fk_product ;
>       AND Master.route == ?vp_route
>
>
>The problem I'm running into is when this view is opened (even with NODATA), I'm getting prompted for the view parameter. Where would I be able to put a dummy definition for the vp_route parameter that would remain in scope when the framework tries to open the view? PostInitHook() of the DE seems to be too late. Once the view is opened, it works just fine for me.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform