Showing results for 
Search instead for 
Did you mean: 

Dynamic Context Node Copying question

Former Member
0 Kudos

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?



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)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos


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.


Answers (1)

Answers (1)

Active Contributor
0 Kudos

Are you making like dscribed here creating, building, and mapping a context in web dynpro.pdf

page 14?

Best Regards, Maxim r.