cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate usage of view

Former Member
0 Kudos

Hi.

I saw this issue discussed in a thread a few years ago, but do not see how it was resolved.

The question was: I have a view with 2 ViewContainerElements and I want both of them to contain the same view with different data.

The suggestion then was to wrap the common view in a component of its own and then use "external mapping" to reference that in the main view.

What exactly does this mean.

I'm familiar with External Context Mapping in which context attributes may be used in other components, but can a whole view from one component be embedded in such a way in another view, and my particular question is - can a view be embedded in that way multiple times in another main view?

Thank you,

Dina

Accepted Solutions (0)

Answers (1)

Answers (1)

BeGanz
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hallo Dina,

see my tutorial/sample application pack on Web Dynpro Java View Compositions

This Web Dynpro sample application implements a complex view composition. The term view composition describes a set of all view assemblies that can be accessed by navigation. A view assembly consists of normal Web Dynpro views and interface views of Web Dynpro components within the browser window. You can model view compositions in the Navigation Modeler as part of the Web Dynpro tools.

The following options are applicable to model view compositions:

  • Embedding several views in view sets

  • Embedding view sets in each other

  • Embedding visible Web Dynpro components using their component interface views

  • In this tutorial, a Web Dynpro component is embedded using two instances.

  • Embedding views and view sets in view layouts by using the ViewContainerUIElement

Code Sample

The ready-to-use project is available to download from SDN https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/business_packages/a1-8...

Corresponding Tutorial: Modeling View Compositions in Web Dynpro https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/2cceb190-0201...

Details

Project Template: The initial project (starting point for this tutorial) is available to download from SDN. https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/business_packages/a1-8...

Level of complexity: Expert

Key features covered: view sets, view assembly, view composition, nested view sets, component interface view, component usage, component reuse, multi-instance capability of Web Dynpro components, UI element Image, UI element ViewContainerUIElement, calculated context attributes

Time required for completion: 2 hrs

Created by: SAP AG