Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

Adding ui_element dynamically to a view in a specific position

$
0
0

Hi all experts,

shorty:

I'm working on a view (IF_WD_VIEW), which has several containers that contain some UI_ELEMENTs.

Now, given a specific UI_ELEMENT, say, an inputfield named "X", I'd like to add an UI element before it.

 

An example could be helpful: I see in debug that my view has a lot of elements, something like this:

 

ROWID
VIEW_ELEMENT
...

211ABC->{O:3870*\CLASS=CL_WD_MATRIX_HEAD_DATA}
212BCD->{O:3871*\CLASS=CL_WD_INPUT_FIELD}
......

 

I'd like to add a specific UI element (e.g., a Text View element, obviously with MatrixHeadData layout) in position 210, before the inputfield "ABC" shown in example.

 

I now that I can use the following syntax to add an element in position:

 

<my_container>->add_child( index = <my_index>the_child = <my_UI_element>).

 

However, I don't find a way to get the index (row number) of the element 'ABC"...how can I do that?

 

Thanks



Viewing all articles
Browse latest Browse all 3667

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>