cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple node values to be populated in a table

Former Member
0 Kudos

Hi,

I have a requirement where i need to populate a table with attribute values from two nodes.But when i try to do context mapping of the two nodes to the table datasource, this does not happen.

i can select only one node value.

Is the above scnario possible throught context mapping.

thanks

shriram

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

In this case you can make the outernode as the data source and you can bind the Innernode attributes to a dropdown in the table.

lets assume the node structure as below.

OuterNodfe

val1

val2

InnerNode (Singleton= false)

subval1

subval2

you can add the values to the nodes like below.

iouetrnodeleemtn outObj =wdContext.cretaeOuternodeelemet();

outObj.setVal1();

outObj.setVal2();

wdConetxt.nodeOuterNode.add(outObj)

IInnnerNodeelemrtnt objInn = outObj.createInnernodeElelmt();

objInn.setSunVal1();

objInn.setSubVal2();

outObj.nodeInnernode.add(objInn);

Revert if you have any doubt

AM

Former Member
0 Kudos

hi,

it is not possible to bind 2 nodes simultaneously to the same table. Only one node can be binded to the table.

regards,

prasy

Former Member
0 Kudos

Hi shriram ,

Create a Value node , Poupulate this node with data from Model nodes and bind this node to table.

Regards,

Sunitha

Former Member
0 Kudos

Hi Sunita,

Thanks for the suggestion.But i want to know if this can be done during design time.

Context scenario is something like this.

OuterNode

...OuterNodeAttr1

...OuterNodeAttr2

...InnerNode

.......InnerNodeAttr1

.

.......InnerNodeAttrn

For each value of OuterNodeAttr1 and OuterNodeAttr2 their are multiple values in inner node.

can OuterNode and InnerNode both be mapped to table by any means?