Custom javascript ondblclick on table row -> registration of selection to bonita engine

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

One possible solution would be to create a hidden text field with the value of the specific column that I want (In my case the first column). Still, I would like to know how to make the registration to the bonita-engine/process to I can also use the name of the table widget in my next pages.