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

Variable to hold previous values

Hi All,

In the BSP Application I have a table view and it has the "MultiSelect" option. On selecting one row I am triggering off a server event to do something. Is it possible to have an internal table to track what all rows he has selected before the call of the event. I see that every server event refreshes all the Page Attributes that I have declared. Is it possible to have an attribute which does not get refreshed during a server event.

Best Regards,

Sudhi

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 09:40 AM

    Hi Sudhi,

    Yes, it is possible to track what all selected rows have selected before the event. You need to use the method tv_data->GET_ROWS_SELECTED for that. The same issue has been discussed in the below thread.

    TableView - selectedRowKeyTable

    Hope this helps,

    Regards,

    Ravikiran.

    Message was edited by: Ravikiran C

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 09:55 AM

    Hai Sudhindra,

    There are:

    PREVSELECTEDROWKEY

    PREVSELECTEDROWINDEX

    PREVSELECTEDROWINDEXTABLE

    PREVSELECTEDROWKEYTABLE

    variables in cl_htmlb_event_tableview,

    U can access them from HTMLB_EVENT_EX object when you raise any event on ur tableView.

    ex:

    DATA:lref_tbl_view_event TYPE REF TO cl_htmlb_event_tableview.
       ...
       ...
       ...
      lref_tbl_view_event ?= htmlb_event_ex.
      ...   = lref_tbl_view_event->prevselectedrowindex
    

    Regards,

    Venkatesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 10:18 AM

    hi,

    you can make use of application class attribute.

    these attribute has a life time of whole application.

    create an attribute of type TIHTTPNVP (it is a table type of name value pair)

    or something else of your own type.

    then you can store the row no of previous selected rows in it in each server event and access them later.

    hope this helps you

    regards,

    Hemendra

    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.