on 10-25-2009 12:32 AM
Hi all,
i have a table tree and i implemented a search function to the tree structure which works fine. Now i also switched on the scrollbars on the right side of the table and i assumend they would automaticaly follow to the expanded node which is found and selected correctly, they don't so i see a expanded view and have to scroll down to the result...
How to control the scroll bar or tell the table controller that it should display the relevant row range ?
Thx!
Edited by: Ronan Doubrava on Oct 25, 2009 1:32 AM
Hi
Is this TABLE TREE inside any container, If yes, try to set the scorll option for that also.
One more thing, i guess you have not specified any width to TABLE TREE. Have you checked for ScrollableColcount option.
Refer this WDR_TEST_TABLE.
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes its inside a transpartent container. Theproblem is not that there are no scrollbars, the problem ist that scrollbars for the table rows are there but if i expand the tree to a specific row which is not currently in the visible range the scrollbar doesnt adjust the visible row range and i have to scroll manually to the result row....
Let's say the visible rows are set to 20, and now you expand automaticaly the tree to a node which is located in row 60, the tree will be expanded correctly the node in row 60 willbecome lead selection but the table still shows row 1...20.
How to tell the table it should jump to row 40-60 ???
Use the FirstVisible Row property of Table UI.
It would help.
SAP Online help:
http://help.sap.com/saphelp_nw04/Helpdata/EN/0e/23b3c8b0a238439f664f73a04e6332/content.htm
Also the dynamic wd helper class, has some functions to exapand to a node but it doesnt zoom in.
The first visible row is ok but not really easy to implement, because the row count in the tree differs from the row count in the table so its quite impossible to get to the relevant row.
That's the solution, found also in a sdn forum but its not documented by sap but works fine!
Expand and Zoom to node
data: mh type ref to if_wd_table_method_hndl.
mh ?= wd_table->_method_handler.
mh->expand_into_element( element = lo_elem ).
mh->make_element_visible( element = lo_elem ).
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.