register

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' );});"

Notifications