cancel
Showing results for 
Search instead for 
Did you mean: 

View Methods / Dynamic component creation

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

former_member215843
Active Participant
0 Kudos

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

Former Member
0 Kudos

Hi Regina,

thanks for the solution, so simple, yet not something that crossed my mind

grtz

Koen

Answers (0)