cancel
Showing results for 
Search instead for 
Did you mean: 

Event Handler

gill367
Active Contributor
0 Kudos

I have created an event in the component controller and want to use that event in my view controller by creating an event handler in the view controller but while creating the eventhandler eventsource is empty

its dropdown list is empty.

can anybody help

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Have you defined the component controller as "used" from the view controller?

Armin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sarabjeet,

As far as what I got is you have created an event in the component controller and you want to create handler for this event in the view controller.

For that

1) In component controller you will have to create a method to fire this event and in the implementation of that method you will have to write the following code


wdThis.wdFireEvent<event name>();

2) Now in the view controller you can create an event handler by by selecting the component name in the event source drop down. Then in the subscribed event drop down you will be able to see the event you created in the component controller. Move ahead....

Have a look at the following thread:

Hope it helps.

Regards.

Rajat