Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error using the AddViewParameter
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00962473
Message ID:
00962969
Views:
8
If I'm understanding you correctly, all you need to do is set the view parameter property of your bizobj equal to whateever controlsource you have your textbox set to in the PreRequeryHook of your bizobj. You really don't need a textbox that is set to invisible. For example -

This.vp_cstate = v_states.cstate

>Thank you for the input. The last problem I was having had to do with repopulating the combobox after requery of object. Now that I have it working I feel that I have a less than a sofisticated way of storing the object property that is used to set the parameter at run time.
>
>The Mere Mortals Developer's Guide says on page 98 that "In a desktop application, you can add code to a business object's PreRequeryHook method that pulls values from the desktop environment and stores them in the business object's properties."
>
>What I did was to add a textbox to the page the business object was on and set the control source to the field I needed and then set the textbox.value equal to my property used as the expression in my AddViewParameter. I then set the visibility of the textbox to .F.
>
>It works but, seems awkward. Is there a better way and will this have to be changed if I switch to multi-tier.


Are you letting the form auto-requery or are you calling it yourself? If the latter, you'll probably do better to add a method to the bizobj that accepts the view parameter and calls the bizobj.requery().
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform