cancel
Showing results for 
Search instead for 
Did you mean: 

Bind a property of an UI element to something that is not WD context ?

christian_taut
Explorer
0 Kudos

Dear collegues,

I heared that it should be possible to bind a property of an UI element (eg. visibility) not only to WD context attribute but also to other elements / data.

This should save context and performance.

Where I can find a guide ? Thanks.

Best regards,

Christian Taut

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

You can directly set properties of UI elements with data, but this is not the right way of doing, also this is not applicable to some UI elements like, InputField's Value property you can not direclty set value.

In WDDOMODIFYVIEW you have a parameter called view of type ref to if_wd_view

you can get the reference of any UI element from this using view->get_element( <id of ui element> )

which return a generic ui element type you can type cast it to the actual UI element like

data: lr_text_view type ref to cl_wd_text_view.

lr_text_view ?= view->get_element( '<ID>' ).

lr_text_view->set_text( 'This is Text View' ).

Abhimanyu L

Answers (0)