cancel
Showing results for 
Search instead for 
Did you mean: 

How to call another view controller's method from a view controller?

Former Member
0 Kudos

Hi Expert,

How to call another view controller's method from a view controller in the same Web Dynpro Component?

Many thanks in advance.

Best Regards,

Derek

Accepted Solutions (0)

Answers (1)

Answers (1)

Sharathmg
Active Contributor
0 Kudos

If it is to call a method from view controller to component controller then use the attribute: wd_comp_controller. Similarly use the attribute in the component controller related to the view controller.

Check the Attribute tab of the controller to obtain the reference variables created by the WD framework. Use them to call the methods across controllers.

Regards,

Sharath M G

P.S.To get an indepth view of possible methods, double-click on the ref variables and observe the nodes and methods declared.

Former Member
0 Kudos

Thank you, I have solved the problem.