Skip to Content
0
Former Member
May 29, 2008 at 07:27 AM

UIcommand's event handling problem

22 Views

Hi experts,

I'm developing a UIcommand, this UIcommand need render a TableView UI component.

TableView LIST_TABLE_UI = new TableView("LIST_TABLE_UI",

new DefaultTableViewModel(list_tablemodel.getData(),list_tablemodel.columnNames));

LIST_TABLE_UI.setDesign(TableViewDesign.ALTERNATING);

LIST_TABLE_UI.setHeaderVisible(true);

LIST_TABLE_UI.setFooterVisible(true);

LIST_TABLE_UI.setFillUpEmptyRows(true);

LIST_TABLE_UI.setNavigationMode(TableNavigationMode.BYLINE);

LIST_TABLE_UI.setSelectionMode(TableSelectionMode.MULTISELECT);

LIST_TABLE_UI.setVisibleFirstRow(1);

LIST_TABLE_UI.setVisibleRowCount(list_tablemodel.getData().size());

LIST_TABLE_UI.setRowCount(4);

LIST_TABLE_UI.setSelectionMode(TableSelectionMode.MULTISELECTWITHOPTIONS);

LIST_TABLE_UI.setOnRowSelection("onRowSelClick");

LIST_TABLE_UI.setNavigationMode(TableNavigationMode.BYPAGE);

LIST_TABLE_UI.setOnNavigate("tableNavigation");

My problem is regarding the event handling. When I select a row, an exception is thown:

Caused by: com.sapportals.htmlb.page.PageException: Eventhandler- "onRowSelClick" not found!

I've try to add this method, but problem remains. Can anybody help??Points will definitely be rewarded for helpful anwsers, many tks!