Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Scout/HowTo/5.0/Double click a table row to show a form
Scout |
Wiki Home |
Website |
Download • Git |
Community |
Forums • Blog • Twitter • G+ |
Bugzilla |
Bugzilla |
This how-to describes how to add a double click action to a table row.
- Navigate to the table with the Scout SDK
- Open the Default Menu dropdown at the Scout Object Properties and select the menu you'd like to have executed on a double click.
This is the recommended and easiest way to execute a menu action on a double click or enter key press. If you don't have a menu but would like to execute code on a double click, you may use the operation execRowAction instead, as described below.
Using execRowAction
- Navigate to the table with the Scout SDK
- In the Scout Object Properties under Operations add the following method execRowAction()
- Click on the newly added method to show the source code
- Implement your code
@Override protected void execRowAction(ITableRow row) throws ProcessingException { //Do whatever you want }