cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a Custom Controller Method from the View Controller

MarkusKlein
Active Contributor
0 Kudos

Hello everybody,

i have a Custom Controller Method which needs to be called from a View of the same WebDynpro Component. The question is how to do this.

thanks in advance!

regards,

Markus

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Define a controller usage from view to custom controller, then Web Dynpro generates a method to access the custom controller.

Armin

MarkusKlein
Active Contributor
0 Kudos

Hello Armin,

may i ask how to "define a controller usage"?

Markus

Former Member
0 Kudos

Open the view controller and go to the "Properties" tab. There is a section "Required controllers". Choose "Add..." and add the custom controller.

Armin

Former Member
0 Kudos

Hi Markus,

After adding usage, you can call your controller's method using following code:

wdThis.wdget<controller name>Controller().<method name>();

Regards,

Bhavik

Answers (0)