cancel
Showing results for 
Search instead for 
Did you mean: 

Component instance creation order

former_member190457
Contributor
0 Kudos

Hi everybody

I am calling a component interface controller method from within the wdDoInit of a view controller to retrieve some parameters to control startup procedures.

It happens that the 'child' component instance has not been created at startup yet, so that an exception is thrown.

I need to do this in viewController.wdDoInit and not elsewhere, how can I achieve it?

Thanks

Vincenzo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vincenzo,

There r 2 ways to achieve this.

1. While adding the dc as used dc, select the life cycle as framework controlled. In that case framework takes care of creating the instance when its needed.

2. If u select life cycle as manual, u need to create the instance manually in component controllers wdDoInit() method.

wdThis.wd<used component conteoller>.createComponent();

regards

Sumit

Answers (0)