cancel
Showing results for 
Search instead for 
Did you mean: 

Getting filtered values from TableView

Former Member
0 Kudos

Hi,

We have a TableView whose columns can be sorted. Iwant to select a few rows and make the selected rows editable in another page.

If it is a unsorted/unfiltered TableView, am able to do it as the ABAP Internal Table and the TableView are the same in terms of record index positions. But am facing problem after i sort/filter the TableView because now the index of the TableView are different from the index of the ABAP Internal Table present in server.

Anybody who has dealt with this problem earlier and can guide us.

Thanks,

Chathia.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

ok...If u havespecified KeyCoulumn then read this from Tableview and from this key value read the index of ur ABAP internal table.

This should resolve it, u can give a try.

Thanks & Regards,

Ankur

athavanraja
Active Contributor
0 Kudos

Welcome to SDN.

Search the forum before you post a question, generally in mose cases you would find a answer, if not you can post a new thread.

here is a list of threads where your question was discussed. (as others mentioned its about using keyColumn attribute of htmlb:tableview)

check out these threads, its got code samples as well.

Have a great time in SDN.

Regards

Raja

Former Member
0 Kudos

Hi ,

I will explain clearly about my requirement.

My TableView should have the option of multiple selection of the displayed records(ie.MULTISELECT). A button has to be provided and on the press of that button, i want to make all the selected records editable(only some fields in each record).

As am new to this BSP, i don't know the proper way to execute it. But i achieved the requirement using some Javascript coding.

Is there any way of doing this in the backend itself??

Expecting help.. Thank You.

Bye,

Chathia.

athavanraja
Active Contributor
0 Kudos

for this case you need to use tableview iterator.

check out the following weblog for details.

/people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators

/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator

Regards

Raja

Former Member
0 Kudos

Hi Clathia,

use the keyColumn Attribute of the tableview and you should get solved your problem!

Regards