Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Requery View on View with Parameters on base
Message
From
15/02/2002 14:19:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Requery View on View with Parameters on base
Miscellaneous
Thread ID:
00620825
Message ID:
00620825
Views:
87
Here is what I feel should be a common need but is problem without a clean solution.

I have "lv_view_2" based on "lv_view_1". "lv_View_1" has view parameters. "lv_View_2" is the initialselectedalias of my business object.

When the bizobj is instantiated, "lv_view_2" opens as "v_view_2" by the framework, and independently of the framework, "lv_view_1" is opened. There is no framework way to set view parameters and requery "lv_view_1" in preparation of requerying "v_view_2".

"lv_view_1" not being part of the dataenvironment will not be a valid alias to this.bizobj.requery(.f.,'lv_view_1').

If you add "lv_view_1" to the data environment along with "lv_view_2" already there, a view called "lv_view_1" is still created as a result of opening "v_view_2" as well as "v_view_1" that the framework created from it's dataenvironment.

What is needed (unless someone has magic to solve this) is a modfied bizobj.requery method that allows requering views not in any dataenvironment, that could make use of the viewparameter array mechanism like dataenvironment views.

Keven, do you see this need, or how should this problem be solved? I have a option to move the view paramters to the "lv_view_2" but that would be less efficient because "lv_view_1" (with parameters) was greatly limiting the number of records joined in "lv_view_2" by a factor of 10.

Any ideas or framework code snipits that solves this is needed and would be great if anyone (Keven or otherwise) has a solution.

Thanks - Gary Pike.
Next
Reply
Map
View

Click here to load this message in the networking platform