cancel
Showing results for 
Search instead for 
Did you mean: 

TableView ->displayed rows by filter

Former Member
0 Kudos

Hi @all!

Case:

I have a tableview with a filter . The filter is set by the user. How can i get now the actual row which the user can see in the tableview. My first try was to get the rows with the "selectedrows" which is dwsribed here in the forum. that dosent work. Is there maybe a way to do this.

Thanks for any hint on this.

Thorsten

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Thorsten,

I don't know some function like this...

Sorry but this method i explain isn't too complicate to realize.

Perhaps anyone else can help.

Cya

Former Member
0 Kudos

Hi all,

i tried the way like Marcus described. But i looks like i made i mistake. I implement code as follows.

        data: tv    type ref to CL_HTMLB_TABLEVIEW,
              html  type string.
        create object tv.
        CALL METHOD tv->GET_FILTER_ROW
          RECEIVING
            HTML = html.

But i get an error message when activating the code.

"<i>Method "GET_FILTER_ROW" is unknown or PROTECTED or PRIVATE.</i>"

Can someone tell me where i made the mistake.

Thank you

former_member181879
Active Contributor
0 Kudos

Don't know why these functions are blobbed onto another class. Look at CL_HTMLB_MANAGER=>GET_FILTER_ROW_VALUE

Former Member
0 Kudos

Thank you Brian for this hint. I will try this.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Thorsten.

I would try this one:

get the filter value with GET_FILTER_ROW.

Now you can select dynamically your DB with the Where String.

Now you have your rows!

Please reply if this one works!

Former Member
0 Kudos

Hi Marcus,

Ok you are right but i want first to check if there is or not a method which gives me the data/rows i need. Without programming it "manually".

Former Member
0 Kudos

No Thorsten, there is not any funtion to do that.. Just get de filter row and then get the data you need from the internal table you use to fill the tableview...

Regards,

Ariel

Former Member
0 Kudos

Hi Throsten,

Check the method GET_FILTER_ROW in CL_HTMLB_TABLEVIEW...

Best regards

Ariel

Former Member
0 Kudos

Sorry, i dont want to know which values the filter row has. I want to know if there is an easy way to get all the rows(in the onInputProcessing) which were displayed due to the setting of the filter.

Col1 Col2 Col3

A A A

B B B

C C C

B B B

Setting a filter for Col2 = B

Col1 Col2 Col3

B B B

B B B

These both rows i want to get in the onInputProcessing.

Thank all