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

Dynamic Context Node Copying question

I am trying to dynamically copy some context nodes from my component controller to the view controller. In the source context, I have a node whose "Multiple" property is set to true.

I use the function addMappedChild to copy the attribute info, but the copied node always has "Multiple" set to false!! In the definition of addMappedChild there is no paramter for "Multiple". How do I do this?

Thanks

Walter

public IWDNodeInfo addMappedChild(java.lang.String name,
                                  java.lang.Class elementClass,
                                  boolean singleton,
                                  boolean mandatorySelection,
                                  boolean multipleSelection,
                                  java.lang.String mappedPath,
                                  boolean selectionMapped,
                                  boolean initializeLeadSelection)

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2005 at 08:59 AM

    Walter,

    Actually this is not a "Copying", but "Mapping" --> you dynamically map source in component controller to target in view controller.

    The mapped node inherits cardinality from origin node, so if node in your component controller is multiple, then node in view controller will be multiple as well and vica versa.

    VS

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 01, 2005 at 09:02 AM

    Are you making like dscribed here

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/dynamically creating, building, and mapping a context in web dynpro.pdf

    page 14?

    Best Regards, Maxim r.

    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.