on 01-30-2007 9:49 AM
Hi,
I'm dealing with an issue I wasn't able to bypass for the moment:
depending on the value of the parameters in the URL of my application, i need to pick
a differrent component usage, and apply it in a view container on my main view.
the problem is, that when i want to load the component usage, it has to be done
before wddomodifyview, but there's no way to do it in de wddoinit, because whan that
last one is called, my dohandledefault (to catch the url) is not yet executed.
the components are now added in a method in my view (MAIN) is there a way to call
this method from the dohandledefault? or is there another option? for example making
the do_dynamic_navigation executed in a window method? Which gives at my side
an error because the plugs are not defined (??)
grtz
Koen
Hi Koen,
you have almost answered your own question,
in the inbound window plug, call a method on the comp controller to SET a value.
Views can access this value by calling an appropriate GET method on comp controller.
(you write the set and get methods )
Cheers
Phil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Phil,
that is allready happening, but my values are initial on the wddoinit of my view,
that is the problem. i have a method set_component_uses, which needs the values
of the url parameters, but i can only call it at wddoinit, thus before the dohandledefault.
I need a way to do that later, or call that method inside the dohandledefault
grtz
Koen
Hi Koen,
WDDOINIT of the default view is called before the inbound plug handler of the window is called.
You have 2 possible solutions:
1. Declare an inbound plug at your view and declare it as "default" in your window assembly. Then this method is called later and you can create your component usages there.
2. Do not set this view as default view, but embed an emptyview and set it to default. Then navigate to to new view in your window inbound plug.
Ciao, Regina
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.