Skip to Content

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

Can i change the view embbed in viewContainerUIelement in code?

I have defined a viewContainerUIelement in my MAINVIEW and several VIEWs in my component. Each time, I start the WD application, I need the viewContainer choose one of the VIEWs to show according to some conditions. How can i realize it in my code?

Former Member
Former Member replied


After Embedding all the required views in the View UI Container , link them through the plugs and fire the relevent plugs of the View which want to display.

Eg, if Embed View A, View B, View C in the Main View,Link these Inbound plugs from the View A, View B ,View C to Main Outbound Plugs .After that call the Relevent outbound plug in the WDOINIT method in the Main View

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