on 12-10-2009 10:31 AM
Hi,
how can we capture event of a button?
Regards,
Pavani
Hi Pavani,
1. Create an Action for the button in the view.
2. Create an event in the component controller.
3. Create an event handler in the view for the event created in the Component controller. Make sure the event handler poinst to the right event in the Component Controller.
4. Write the action that need to be performed in the event handler of the view.
5. Create a method in the component controller to fire this event using
wdThis.wdFire<Event>
6. Call this method in the action of the button and wherever else you want that code in the event handler to be executed.
Regards,
Tushar Sinha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pavani,
In the Properties list of the button we can find the Events group. There will be a property called onAction . If we delare a method here a new event handler is created with the name onAction<EvenName> . This method is triggered when ever the button is pressed.
Thanks,
Raju Bonagiri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Pavani,
There is event for a button called onAction in the property section.
Create a action using the given wizard and a event handler will be created in the view java file.
You can write the necessary code in this event handler.
When you click on the button this event handler is called and the code written in thsi event handler is executed.
Regards,
Ardhendu Sarkar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.