on 01-13-2011 3:11 PM
HI ALL,
I have this problem. I have a hierachical table with many rows. I have a button "SEARCH" and this functionality allows to find and selected a row with the first field equal at the element that I want to search. Is it possible to scrolling automatically the table until at the selected row?
Practically I want that at the end of my search the visualization of my table is positioned automatically on the selected row as an automatic scrolling. Is it possible this in WDA?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not exactly set focus
it is request _focus.
you can request focus for a particular element and particular attribute.
use this sample code for reference..
data: MY_CONTEXT_NODE type ref to IF_WD_CONTEXT_NODE,
MY_CONTEXT_ELEMENT type ref to IF_WD_CONTEXT_ELEMENT,
MY_RUNTIMEAPI type ref to IF_WD_VIEW_CONTROLLER.
MY_CONTEXT_NODE = WD_CONTEXT->GET_CHILD_NODE('<nodename>' ).
MY_CONTEXT_ELEMENT = MY_CONTEXT_NODE->GET_ELEMENT( 1 ). " get the element here
MY_RUNTIMEAPI = WD_THIS->WD_GET_API( ).
MY_RUNTIMEAPI->REQUEST_FOCUS( ATTRIBUTE = <attribute name>' CONTEXT_ELEMENT = MY_CONTEXT_ELEMENT ).
thanks
Ok I use this code:
CALL METHOD MY_RUNTIMEAPI->REQUEST_FOCUS
EXPORTING
CONTEXT_ELEMENT = lo_nd_element
ATTRIBUTE = 'TREE_COLUMN_TEXT'.
where lo_nd_element is my selected row, and 'TREE_COLUMN_TEXT' is the name of the first field of my row.
Unfortunately this code does not reflect any changes... Where is my error?
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
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.