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:
ROW | ID | VIEW_ELEMENT |
---|---|---|
... | ||
211 | ABC | ->{O:3870*\CLASS=CL_WD_MATRIX_HEAD_DATA} |
212 | BCD | ->{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