0 votes
642 views
in IBM BPM Infrastructure by

1 Answer

0 votes
ago by (30.6k points)

The double click inside a table happens when the first click selects the row and only the second reaches the control - the row-selection handler of the table (Dojo table of the Coaches toolkit, and the UI Toolkit table in single-select mode with "select on click") consumes the first click; sometimes the first click also blurs a previously focused input, triggering a re-render of the row.

Fixes by toolkit:

  • UI Toolkit table: set the table's Selection option to None when the rows do not need selecting; when selection is needed, newer toolkits let you exclude cell controls from triggering it; and keep cell controls light (Text / Checkbox), not composite views.
  • Avoid re-render on the first click: a formula or an on change handler that calls setData on the table's list re-renders every row and swallows the click; update the record in place (record.qty = ...) and refresh only that row.
  • Heritage Dojo table: the first click focuses the cell (edit mode), the second edits; there is no clean fix - either enable "single-click edit" where the version offers it or move to the UI Toolkit table.
  • Buttons in cells: in the cell control's on click handler call event.stopPropagation() so the row selection does not run; or put the action buttons outside the table acting on the selected row (one click to select, a visible button to act - often the better UX).
// Button inside a table cell > On click (UI Toolkit): act on this row without triggering row selection logic
if (typeof event !== "undefined" && event && event.stopPropagation) event.stopPropagation();
var rec = me.ui.getIndex ? ${Orders}.getRecord(me.ui.getIndex()) : ${Orders}.getSelectedRecord();
${Details}.setData(rec);

References

Related questions

0 votes
1 answer 2.3k views
0 votes
1 answer 1.4k views
0 votes
1 answer 867 views
+1 vote
1 answer 1.2k views
0 votes
1 answer 1.9k views
0 votes
1 answer 844 views
0 votes
1 answer 1.4k views
0 votes
1 answer 1.8k views
0 votes
1 answer 2.5k views
+1 vote
1 answer 1.8k views

723 questions

807 answers

98 comments

4.9k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...