How to set the click event button of a datagrid.

5
I've replaced the standard edit button of a datagrid with an invoke button and now the Business Modeler shows the error "There should be at least one button that triggers the click event, when the click event is set to Edit". How do I fix this?
asked
3 answers
6

You can fix this error in two ways:

  • Select the invoke button and set the 'Click event button' property to true. This will cause that button to be used when double-clicking a grid row. Only one button at a time can have this property set to true.
  • Alternatively, you can set the 'Click event' property of the data grid to 'Do nothing', so that nothing happens when you double-click a grid row.
answered
5

There are two ways to solve the error:

  • Select the invoke button and set the property "click event button" to true and set the propertie "click event" of the datagrid to "edit"! When a row is clicked now the same action is executed as connected to the invoke button with "click event button" to "true".
  • Select the invoke button and set the "click event button" property to "false" and set the property "click event" of the datagrid to "edit". Now nothing happened when clicking on a row, and your button still works.

Depending on the behavior you want use one of them. Good luck!

answered
-1

Select the invoke button and set 'click event button' on to 'true' in the properties bar. The error will disappear. You removed the 'Edit' button, so there is no selection button when the 'click event' properties of the datagrid are set to 'Edit'. If you set the 'click event' properties of the datagrid to 'Edit', there should be one button with the 'click event button' set to 'true'. This won't happen if the 'click event' properties are set to 'Return selected' or 'Do nothing'.

answered