cancel
Showing results for 
Search instead for 
Did you mean: 

What is the correct way to dynamically change the View?

Former Member
0 Kudos

hi @,

In my application I have a radiobuttonbyKey UI element and based upon the key I have to hide and/or show a particular UI combination placed in the group UI element basically dynamicallly modifying the view.

I have 2 option one on radio button action I will change the visibilkity property of the group or in the wdModifyView method of the View.

I want to know which is the best way in such situation as per MVC concepts to dynamically modify view in UI action or in wdModifyView method.

Regards,

Amit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I would just bind the "visible"-property of the Group to a context attribute (DDIC type "Visibility") and set the value of that attribute from the onSelect-handler of the drop-down list. No need for code in wdDoModifyView().

Armin

Answers (1)

Answers (1)

Former Member
0 Kudos

Yeah....as per SAP guidelines you should use wddomodifyview() method only when required...the right approach is what Armin described..

Regards,

Shikhil