cancel
Showing results for 
Search instead for 
Did you mean: 

Button event

Former Member
0 Kudos

Hi,

how can we capture event of a button?

Regards,

Pavani

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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