on 10-16-2008 2:13 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.