Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to modify view elements outside of the wddomodify method


I got some issues while I was trying to modify the properties of view elements outside of the wddomodify method.

I read that this method was the only one where we had a reference to the view. But if we want to modify an element outside this method is it possible?

If it's not possible how to specify in the wddomodify method that there is a treatment that should happen only for one case ( cause we don't have the possibility to add parameters, and we don't want to use the context to store unnecessary information)

Thx for your help




you can do this also in your event handlers, where you probably have the values

on which the addition of the ui-elements depend.

if you want the reference to your view in there,

create an attribute m_view type ref to if_wd_view in you view controller,

in wddomodifyview, you say

if first time is abap_true.

wd_this->m_view = view.


and now you can do exactly the same thing as in wddomodifyview in all your

evenhandler methods.



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question