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.comwww.prenia.comWeblog: blogs.prenia.com/cathi