cancel
Showing results for 
Search instead for 
Did you mean: 

Create Event and Eventhandler in Controller and View

Former Member
0 Kudos

Hi everybody,

i have a custom controller cc_main and a main view v_main. In my cc_main i have created an event: my_event. If i understand the sap help correctly in my v_main should appear a method with the name MY_EVENT_HANDLER but i can not find a method like this in my view. What could be my mistake?

http://help.sap.com/saphelp_nw70/helpdata/en/eb/ed6f4169e25858e10000000a1550b0/content.htm

regards,

Sid

Edited by: Sid on Jul 16, 2009 1:42 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

No method will appear automatically in the VIEWs when EVENT is created in CONTROLLER. But instead you will have to create a new method NEW_METH(with any name) in any VIEW subscribing to that event sothat this method will be executed when that EVENT is triggered.

Create a new method in your view controller with method type EVENT HANDLER and then from the EVENT value help, select the event that was created in your CUSTOM CONTROLLER.

Regards,

Manne.

Answers (0)