cancel
Showing results for 
Search instead for 
Did you mean: 

External mapping - Adding attributes to external mapped node

ashish_shah
Contributor
0 Kudos

Hi experts,

I read about external context mapping in this link:

it says

If the node to be mapped externally of the used component requires a particular structure, this structure must be contained in the context node of the using component (A in our example). In addition, this node can contain other attributes, which are not known to the interface controller of component B at design time. In this case, the interface controller of component B can be coded

· statically against the given structure, and additionally

· dynamically in view of attributes that may be added via a mapping.

I have a similar requirement.

I have three WD comps

1) CompA

2) CompB

3) UIComp

I want UIcomp to read data from context node of CompA and from CompB.

and there might be more components CompC and CompD.

So at design time of UIComp i dont know the strucutre of the Node and its attribute of CompA/ CompB / CompC / Compd.

thats why i have created a node "NodeUI" in UIComp interface controller with isInput property set to true.

In CompA i have desclared component usage of UIcomp.

now in my CompA i want to add few attributes this "NodeUI" node of used interface controller,

and these attributes should be available to UIComp components.

Now when i try to add attribute to "NodeUI" in used comp interface controller in my CompA it does not get added to the UIComp actually.

This means i am trying to add attributes to Externally mapped node dynamically.

can anyone suggest how can i achieve this?

An examlple will help.

Regards,

Ashish Shah

Accepted Solutions (0)

Answers (2)

Answers (2)

ashish_shah
Contributor
0 Kudos

No Solution found yet.

Former Member
0 Kudos

Ashish,

If you want the UIComp to read data from the context nodes of CompA and CompB then should create context nodes in the interface controller of the CompA and CompB .....add CompA and CompB as Used Webdynpro Components in UIComp and then create attributes or node in UIComp and map them to the earlier created node in the interface controllers....

Hope it helps.

Shikhil

ashish_shah
Contributor
0 Kudos

Hi Shikhil,

Thanks for the suggestion.

However i do not want to modify UIComp for each components.. CompA and CompB.

Since this component will be reused in many other components which i am not aware at design time.

Can i do it by adding UiComp as Used component in CompA and compB and dynamically map the Node of CompA and CompB to UiComp interface controller's Externally mapped node?

Is there still any other way for me to achieve it?

Regards,

Ashish Shah

ashish_shah
Contributor
0 Kudos

Hi Guys,

is it really possible?

can you please help me ?

Regards,

Ashish Shah