Skip to Content
author's profile photo Former Member
Former Member

Duplicate usage of view

Hi

I have a view with 2 ViewContainerElements band I want both of them to contain the <b>same view</b> with <b>different</b> data.

When I did so I get the following error:

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: duplicate usage of view .SomeInnerView

Is there any workaround? Why it is impossible to reuse a view? I understand that the proper way to do this would be to reuse the whole component, but this view has a very strong connection with other views in the component. They share model and data, so I have no reason to split it to the different component.

Thanks in advanse,

Victor.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2004 at 09:54 AM

    Victor,

    Short answer -- no.

    Long answer: you are right, try to extract common functionality in separate component. Typically you will end up with component that defines input context node for data and visual interface stuff (window & view). You can still keep connection with other parts via context mapping.

    Regards,

    VS

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello,

      the idea is that "component" is the unit of reuse, while "view" is a singleton within its component instance.

      The (runtime) overhead of creating a component should be relatively low.

      In your case, you probably need "external mapping" which allows the data to live in the outer components context (component or custom controller). The mapping then lets the data be used by the two instances of the inner component.

      Bye,

      Thomas

  • author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2008 at 02:21 PM

    Victor,

    Did you find a solution for your problem?

    What exactly is meant by "external mapping" as suggested by Thomas Chadzelek?

    Did you manage to implement this?

    Thanks,

    Dina

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.