cancel
Showing results for 
Search instead for 
Did you mean: 

Difficulties then working with ViewContainerUIElement

Former Member
0 Kudos

Hello Experts

I've the following view: the left handle column contains a worklist and the right column contains a VCUIElement that shall embed another view dynamically depending on an action in the left-hand worklist view. What do I have to do to tell the VCUIElement to display a specific view depending on the selected entry in the left-hand worklist?

Regards,

Mathias

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Mathias

To do a dynmic navigation(without define inbound and outbound plug in window design),you need to use this interface method:

IF_WD_NAVIGATION_SERVICES->DO_DYNAMIC_NAVIGATION.

the interface implement class is CL_WDR_VIEW,you can get the instance from any of you view's controller using WD_THIS->wd_get_api( ).

Here's an example:

Web Dynpro Comp: WDR_TEST_MISC

Former Member
0 Kudos

Hello,

I suggest you to read these: [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2eb11b59-0a01-0010-dfa3-8292abdf9c4f] and [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cfb80249-0801-0010-3eaa-829afeac170f].

Regards.

Former Member
0 Kudos

Hi,

Do the following:

1. Create outbound plugs in the main view, for each outbound plug, in each of the views which need to be navigated to, create an inbound plug corresponding to each outbound plug.

2. Go to the window which embeds your main view. Within the main view, you will see the VCUI element. Within that, embed each of the views which need to be displayed in the UI element.

3. Create navigation links between the outbound plugs of the main view and inbound plugs of the individually embedded views.

4. In your event handler methods, for the links on the left hand side, fire the respective outbound plugs. The corresponding view will get loaded on the right hand side.

Regards,

Wenonah