Skip to Content
author's profile photo Former Member
Former Member

Doubt about 'set_parameter' method

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Feb 28, 2008 at 11:12 AM

    if the field is not one of form fields you have to use

    navigation->set_parameter(name = 'selectedRowIndex' value = '2' ).

    where instead of 2 pass the actual variable which is holding the value.

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 29, 2008 at 01:45 AM

    Hi,

    The code is syntax wrong. But thanks all the same.

    Best regards,

    Chris Gu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2008 at 06:26 AM

    solve it.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.