cancel
Showing results for 
Search instead for 
Did you mean: 

Search Functionality in Table

Former Member
0 Kudos

Hi Gurus,

I have a requirement, I need to create a search functionality on a table in WD View screen.

I need to add a search button, On click of the search button , A pop up-window is to be opened to take input of a string for search.

I need to search the string in table rows and if a matching record is founded THEN the found row should be highlighted and the scrollbar shall go directly to this reference.

In this scenario how to do the following task :

1. Highlight the match row .

2. taking scroll bar directly to this reference.

Please guide me .

Regards,

Sowmen

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi.,

For First Ques:.,

You can do using., set_lead_selection_index( ) method of node. while searching you loop the internal table and store the matched indexes and use the above method.,

or you can use E_CELL_DESIGN to high light.,

For Second Ques ., I dont know whether It is possible ., check scrollableColCount in this help Link :

http://help.sap.com/saphelp_nw70/Helpdata/en/b5/ac884118aa1709e10000000a155106/content.htm

but it only give col count up to how many cols to scroll.,

Or Alternately., You can put the matched rows in the first rows by highlighting using cell design ., you loop the table ., take the matched rows and append it at starting of the table.,

hope this helps u.,

Thanks & Regards,

Kiran

Answers (0)