<button id ="statusBtn" action = "transactionsTable.status"/>
<action id="status"
trackSelection="true"
caption="Complete Status "
icon="CHECK"/>
@Subscribe("transactionsTable.status")
public void onTransactionsTableStatus(Action.ActionPerformedEvent event) {
//logic
}
Unfortunately when I try to open the Transaction Browser Screen I have the next error:
DevelopmentException: Target com.haulmont.cuba.gui.components.Table$Column does not support event type class com.haulmont.cuba.gui.components.Action$ActionPerformedEvent
I saw that I also have a column named status.
I renamed: <button id ="statusBtn" action = "transactionsTable.statuss"/>
and now I don’t have DevelopmentException error.
Unfortunately when I press the button the system does’t enter in onTRansactionsStatuss method.
Because is not a standard action should be defined elsewhere?
Best Regards,
-n
Hi.
Unfortunately, we cannot reproduce the problem. Could you please provide more information about your problem? Which version of the platform do you use? If it is possible, could you share the xml file of your screen or a small project in order to help us investigate the problem?
Check, that the action you define is placed inside the table tag. Here is the example:
Subscription to ActionPerformedEvent is used to override/determine what will be executed when the action is triggered. You can declare a new action in various components, such as PopupButton, Table, PickerField. Also, you can declare actions for the whole screen and performed it by several components. See the documentation.
ClickEvent is used to handle clicks on the exact Button component on the screen.
If action is bound to a button, you have to subscribe to ActionPerformedEvent.