[SOLVED] Programmatically trigger a mouseUp in a data grid?
Posted: Mon Oct 19, 2020 12:12 pm
Hi all,
sorry for the beginner level question:
I have a data grid that is basically an index to populate other fields/data grids on a card.
When the user clicks on a the index data grid, a mouseUp handler in the behaviour script populates everything else.
So far, so good, everything works as expected.
The problem is restarting the app; no line in the index data grid is highlighted and often the information in the other fields/data grids is the previously held information, when ideally i'd like it to be the first index in the index data grid and the populated data to correspond to this.
I can set the dgHilitedLines of group "indexDataGrid" to 1 and the first line is indeed highlighted.
However the function to populate the card data (normally in the mouseUp handler of the behaviour script) won't run and sending/dispatching mouseUp to the index data grid does nothing, so although the line changes, the data in the card does not update.
Is there a way to programmatically select a line and trigger a mouseUp event for a line in the data grid?
sorry for the beginner level question:
I have a data grid that is basically an index to populate other fields/data grids on a card.
When the user clicks on a the index data grid, a mouseUp handler in the behaviour script populates everything else.
So far, so good, everything works as expected.
The problem is restarting the app; no line in the index data grid is highlighted and often the information in the other fields/data grids is the previously held information, when ideally i'd like it to be the first index in the index data grid and the populated data to correspond to this.
I can set the dgHilitedLines of group "indexDataGrid" to 1 and the first line is indeed highlighted.
However the function to populate the card data (normally in the mouseUp handler of the behaviour script) won't run and sending/dispatching mouseUp to the index data grid does nothing, so although the line changes, the data in the card does not update.
Is there a way to programmatically select a line and trigger a mouseUp event for a line in the data grid?