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

external context mapping

Hi everybody,

I have a question please help me out.

As stated in tutorial 14 (Server side eventing):

<At design time, a Web Dynpro component does not know the context structures of its embedding Web Dynpro component. Therefore, it is not possible at design time to map context elements in the component interface controller of Web Dynpro component A to context elements that belong to a controller context of Web Dynpro component B, which has declared a usage of A. However, if Web Dynpro component A itself uses another Web Dynpro component within itself, this is possible (general context mapping)>

Let say that I have some properties (let say some options)in component A to be set from component B. Is there any way to do an external mapping given that component A is not inside component B (embedding component) or I must create a new method with parameters in interface controller A to be called from component B?

Thanks a lot guys in advance

Raplh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2006 at 07:28 PM

    Ralph,

    Correct assumption. Or, you may have InnerB wich exposes context, Outer that uses context mapping from InnerB and InnerA that uses context mapping from Outer (in this case you have to set isInputElement = true for context nodes of InnerA). Should work as well.

    Valery Silaev

    SaM Solutions

    http://sam-solutions.net

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Ralph,

      View controllers is a very special beast. Seems that it it not created when mapped context data is accessed. Anyway, having view controller context for business data is violation of MVC principles. So:

      1. Create context in component controller of Outer

      2. Map view context of outer to context of component controller

      3. Map context of component usage InnerA to component controller.

      This will work. You have one source of data, both view and inner component get this data automatically via mapping.

      Valery Silaev

      SaM Solutions

      http://www.sam-solutions.net

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.