Showing results for 
Search instead for 
Did you mean: 

Context mapping at runtime !!!

Former Member
0 Kudos

Hi ,

Can someone help me out with this situation:

1 - I have a parent DC compA.

2. The child DC CompB is creating a component in CompA dynamically using the IWDComponentUsage.createComponent(componentname, dcname)

[view in the CompB is embeeding a view which is prsent in CompA]

4 - The parent has a context node and 2 attributes.

5. How do i map this parent components Conetx Node to the Child Component's Context Node dynamically.

In short how to perform context mapping (external) at runtime ?



Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

chk it

1. Define the interface component with context node (Input Element Externl)

2. Create a component which defines a usage to the interface component

3. Go to the component usages folder and open it.

4. Right click on the usage you just created and choose Create controller


5. Double click the interfacecontroller_usage you just created.

6. Here you can add a controller usage using the button at the top.

7. Now you should be able to define the external mapping by dragging the node of

the component controller to the interfacecontroller_usage node.

Message was edited by:


Former Member
0 Kudos

but that is at design time ??..

i wanted to perform the context mapping at runtime ..

is there any API for Context mapping at runtime ..

or else using wdCopyService we can copy the context vaues to the parent context ?

Active Contributor
0 Kudos

Hi Madhusudhan,

Check this links.

<a href="">Dynamically Creating, Building, and Mapping a Context in Web Dynpro</a>

<a href="">Dynamic UI Generation in Web</a>