Skip to Content
0
Former Member
Feb 28, 2008 at 09:25 AM

Doubt about 'set_parameter' method

32 Views

Hi,

I have some doubt about the ' set_parameter' method in the navigation interface. I want to know what kind of value can be put in this method. Is it only used by the BSP page value or anything else? Because I have written some code on tableview and I want to pass the parameter 'selectedRowIndex' to the next page, but it doesn't work.

The code is following:

CLASS CL_HTMLB_MANAGER DEFINITION LOAD.

DATA: tv type ref to CL_HTMLB_TABLEVIEW,

event type ref to CL_HTMLB_EVENT,

table_event type ref to CL_HTMLB_EVENT_TABLEVIEW.

tv ?= CL_HTMLB_MANAGER=>GET_DATA( request = request

name = 'tableView'

id = 'tvX' ).

IF tv IS NOT INITIAL.

table_event = tv->data.

selectedRowIndex = table_event->PREVSELECTEDROWINDEX.

if table_event->event_type eq CL_HTMLB_EVENT_TABLEVIEW=>CO_ROW_SELECTION.

if selectedRowIndex eq table_event->ROW_INDEX.

selectedRowIndex = '0'.

else.

selectedRowIndex = table_event->ROW_INDEX.

navigation->set_parameter('selectedRowIndex').

navigation->goto_page('EDIT_TOPIC.HTM').

endif.

endif.

ENDIF.

I have defined the parameter in the attribute definition and in the next page I also defined it using the same name and choose the 'auto' checkbox, how can I do now? It's urgent for me, can anyone help me to solve it? Thanks a lot.

Best regards,

Chris Gu

Edited by: Gu Chris on Feb 28, 2008 10:25 AM