cancel
Showing results for 
Search instead for 
Did you mean: 

No method (within view controlle) to get reference to the window controller

former_member211591
Contributor
0 Kudos

Hello all,

I need to fire the exit plug of the window controller out of an embedded view.

All help I can find in the internet tell me to "easily" get a ref to the window controller and thus to fire its plug as follows:

data: L_REF_MAIN_WINDOW type ref to IG_MAIN_WINDOW .
L_REF_MAIN_WINDOW =   WD_THIS->GET_MAIN_WINDOW_CTR( ).
L_REF_MAIN_WINDOW->FIRE_MY_EXIT_PLUG_PLG(  ).

But my view-controller dos not implement a method like

GET_MAIN_WINDOW_CTR( )

.

How can I get this method generated? What am I doing wrong?

Thanks for your replies.

Edited by: iSD1977 on Aug 23, 2011 4:09 PM

Accepted Solutions (1)

Accepted Solutions (1)

saravanan_narayanan
Active Contributor
0 Kudos

Hello,

in the Properties tab of the View Controller, add Window Controller as Used Controller.

BR, Saravanan

Answers (1)

Answers (1)

former_member211591
Contributor
0 Kudos

Thank you very much. This solves the problem.