cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Execution flow in webdynpro component

Former Member
0 Kudos

Hi all,

I am confused regarding the execution flow.

we have "component controller" and "view controller" in a webdynpro component.

I have written some code in "wdDoInit" of "component controller" and in "wdDoInit" of "view controller" and in "wdDoModifyView" of "view controller" .

If I do "Deploy and Run " the application , Which one is executed first ,I mean how is the code processed ,where the control reaches first?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

former_member186016
Active Contributor
0 Kudos

Firstly component is loaded.

Hence wdDoInit of component controller is called.

Then when view display is requested wdDoInit of View controller is called.

Whenever display of view happens the wdDoModeifyView is called.

Hope it answers your question.

Regards,

Ashwani Kr Sharma

Former Member
0 Kudos

Hi Ashwani,

I am almost all clarified now but you said "when view display is requested wdDoInit of View controller is called" but where and how does this request happen?

Can you clearly explain this please?

Thanks and Regards,

Bharath A

former_member186016
Active Contributor
0 Kudos

In a web dynpro application there is always a interface view specified.

This interface view is associated with a window. The window has set of views with one as default view.

When Web Dynpro application is launched, the window is instantiated via interface view specified. The window after instantiation is rendered on the brower/some other UI client.

The window when instantiated will instantiate the default view also. So wdDoInit of view controller will be called now. Now if navigation happens to some other view in the window that particular view has to be instantiated. So the wdDoInit of that view will be called then.

Is your question answered ?

Regards,

Ashwani Kr Sharma

Former Member
0 Kudos

Thq Ashwani,

It is Very Nice explanation.......

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Bharath,

1.any one of the method (wdinit(),etc)in component controller. we can use this method in any one of the view controller.

2. But view controller method used only that view only

component controller is acting as a central part into the view controller.

Regards,

P.Manivannan