onRowSelection

The event is fired when the user clicks on the radio button in the first column. The radio button is visible when the 'selectionMode' is set to "SINGLESELECT".

Example

using the taglib

import  com.sap.htmlb.enum.TableSelectionMode;.. /*GetthetableViewcomponent*/ TableViewtable=(TableView) this .getComponentByName( "myTableView" ); /*SettheonHeaderClickevent*/ table.setSelectionMode(TableSelectionMode.SINGLESELECT);table.setOnRowSelection( "onRowSelClick" );.. /*themethodonRowSelClickhastobedeclaredintheDynPage.

Otherwisean exceptionisthrown("methodnotfound")whenthe

userclicksonthe radiobuttonofthetableView.DeclaringonHeaderClick:*/ public void  onRowSelClick(Eventevent){System.out.println( "Rowselectionclick" );}

onClientRowSelection

The selected row can also be determined on the client by using the htmlbevent object.

For JS there are a few API calls available to get to the key.

JavaScript Example:

htmlbevent.obj.getClickedRowKey() ;

For more information see JavaScript API .