cancel
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 ?

Cheers,

Madhusudhan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

chk it

http://help.sap.com/saphelp_nw04s/helpdata/en/67/cc744176cb127de10000000a155106/frameset.htm

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

usage.

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:

Kanwalpreet

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 ?

former_member751941
Active Contributor
0 Kudos

Hi Madhusudhan,

Check this links.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6fdae690-0201-0010-a580-d104b459cb44">Dynamically Creating, Building, and Mapping a Context in Web Dynpro</a>

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#34">Dynamic UI Generation in Web</a>

Regards,

Mithu