cancel
Showing results for 
Search instead for 
Did you mean: 

Manipulate an uielement in webdynpro abap

former_member497277
Participant
0 Kudos

Hi.

How I can manipulate an uielement created in time of design (for example, to do visible or not an inputfield) in layout from a method.I´ve seen this code: data: LR_CONTAINER type ref to L_WD_UIELEMENT_CONTAINER, LR_BUTTON type ref to CL_WD_BUTTON,

LR_FLOW_DATA type ref to CL_WD_FLOW_DATA.

LR_BUTTON = CL_WD_BUTTON=>NEW_BUTTON ().

LR_FLOW_DATA =

CL_WD_FLOW_DATA=>NEW_FLOW_DATA (element = LR_BUTTON).

LR_CONTAINER? =

view

->GET_ELEMENT`ROOTUIELEMENTCONTAINER').
LR_CONTAINER->ADD_CHILD (LR_BUTTON).

But I don´t know how the data 'view' is created.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Generally, you should bind UI element properties to context attributes and manipulate the attribute values. This can be done from any controller method.

Armin

Answers (0)