cancel
Showing results for 
Search instead for 
Did you mean: 

To access a dynamic context node defined in a Used Component

Former Member
0 Kudos

Hi Gurus,

I need your help with something.

I have a dynamic context node in ComponentA. I want it in Component B too.

Component B uses Component A, but I am not able to get access to the context node.

Is it possible to do this? Any suggestions how to proceed.

PS: I am trying to do a dynamic mapping. The initial scenario was here,

Thanks in advance,

Anjana R.

Message was edited by:

Anjana Raghav

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gurus,

Its working now. Earlier, the code was something like this....

IWDNodeInfo compNode = wdThis.wdGet<i>Comp</i>Interface().wdGetAPI().getContext().getRootNodeInfo().getChild(nodeNm);
viewNodeInfo.setMapping(compNode,true);

and was trying to map it using

iewNodeInfo.addMappedAttribute("order",".<i>Comp</i>."+ nodeNm + ".order");	

Now, I am mapping like this.

viewNodeInfo.addMappedAttribute("order","order");

Thanks,

Anjana R.