cancel
Showing results for 
Search instead for 
Did you mean: 

Variable to hold previous values

0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Hope this helps,

Regards,

Ravikiran.

Message was edited by: Ravikiran C

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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