Hi friends.
In a dynamic way, I need to get the bind text of a label, which is an attribute of a context node.
I tryied to get it but without sucess.
In debbuging mode, I can see attribute name inside
LR_VIEW_ELEMENT-_PROPERTY_BINDINGS-PATH_NAME
and LR_VIEW_ELEMENT-_PROPERTY_BINDINGS-ATTRIBUTE_NAME
But I could not find how to get it and after that, get the value of context node.
I'm doing something like this:
IF p_i_r_root_element IS INITIAL. lr_comp_ctrl ?= p_i_r_comp. lr_v_main_ctrl ?= lr_comp_ctrl->get_controller( name = p_i_view_name ). lr_v_root_elem ?= lr_v_main_ctrl->get_root_element( ). DATA: tt_v_elements TYPE wdr_element_tab, e_element TYPE wdr_element_line, lc_label_text TYPE string. tt_v_elements = lr_v_main_ctrl->get_elements( ). LOOP AT tt_v_elements INTO e_element. IF e_element-view_element->_definition_name = 'LABEL'. *** here I need to get label text/value. It's inside a context node named LABELS.attrib1...N ENDIF. ENDLOOP. ENDIF.
thank you
Glauco