on 04-10-2007 11:04 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi shriram ,
Create a Value node , Poupulate this node with data from Model nodes and bind this node to table.
Regards,
Sunitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.