Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 16, 2008 at 02:16 PM

    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

    Add comment
    10|10000 characters needed characters exceeded