Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to define view parameter
Message
From
20/06/2000 10:30:50
 
 
To
20/06/2000 08:56:22
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00382142
Message ID:
00382194
Views:
25
>All,

>I have a view using a view parameter in a calculated field. I need to have the >view parameter defined before the view can be opened in the business object's >oDELoader.

>Normally I would use the business object PostInitHook method, but the view is >already open when this method is executed.

>Any ideas?

>TIA

>Rex

Rex --

I'm jumping in here because I've run into a couple interesting situations and am trying to think through the scope of vps myself.

I think your best bet is to define the use of the view with no data on load. That way you can assign a value to the vp while it is in scope, and then do a requery on the view.

Now, the one issue I've come across recently where I can't use this approach is when I'm using a bizobj who's editable view has 2 view parameters -- one returned by the Find form, and 1 set in another way. An approach that works, but for which I'm looking for an alternative, is as follows: define the vp as a public variable in the Init() of the form and assign a value there, then release it in the Destroy().


Jay
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform