on 01-15-2009 3:45 PM
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
Have you defined the component controller as "used" from the view controller?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.