Hi Everybody,
I made a custom ondblclick on a table. When a double-click is done on the table row, the row must be selected and then the page needs to be submitted.
For now I have the following:
1: I put in the next-button a custom class named “submitButton”
2: on the table widget I put into the Options->Html attributes a onmouseover event:
onmouseover=“$(‘tr’, this).off(‘dblclick’).dblclick(function(){ var selected = $(‘td’, this).eq(0).text(); alert(selected); $(this).addClass(‘bonita_form_table_selected’); $(‘.submitButton’).trigger( ‘click’ );});”
This works as a charm but when the submit-button is triggered then the validator gives an error. Does anybody know how to register the selected row with javascript to the bonita-javascript-engine, so the validator sees a row is selected? I can imagine bonita already works like this… but what is the javascript code to call? Maybe a specific ajax-call?
Kind regards, Steven