Skip to Content
0
Jan 17, 2011 at 11:10 AM

Focus on a tablecolumn with filtervalue

22 Views

Hi guys,

i have defined a table with a defined filtervalue in the properties of the column.

TSUCHE                                             "<== Table
   TSUCHE_ID                                       "<== Tablecolumn with the filtervalue which points to a node attribute
      TSUCHE_ID_EDITOR                             "<== defines as Textview
      TSUCHE_ID_HEADER [HEADER]
   TSUCHE_STRNAM
      TSUCHE_STRNAM_EDITOR
      TSUCHE_STRNAM_HEADER [HEADER]
   ...

I try to set the focus on the inputfield of the filtervalue.

method WDDOMODIFYVIEW .
DATA:
lo_node TYPE REF TO if_wd_context_node,
lo_element TYPE REF TO if_wd_context_element,
lo_view_contr TYPE REF TO if_wd_view_controller.

data: lr_elem type ref to if_wd_view_element.
lr_elem = view->get_element( 'TSUCHE_ID_EDITOR' ).

if lr_elem is bound.
  view->request_focus_on_view_elem( lr_elem ).
endif.

endmethod.

...but, it didn't work. I tried TSUCHE_ID as element true. Didn't work too.

Has someone an suggestion or an idea where my fault is ?

Thanks in advance

--Bernward Henkel