Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Requery View on View with Parameters on base
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement