on 05-28-2009 9:24 AM
Hello,
Can we assign multiple data sources with attributes for a single table UI element ?
Thanks,
kavya.
Hi ,
As per my knowledge there can only one datasource for table.
Can you explain your requirment clearly? So that we can think about alternative ways of achieving that.
Regards,
Charan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
why do you want multiple data sources to be bind to the Table UI.
What exactly is your requirement ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kavya,
You cannot assign multiple datasource to one table. If you want have multiple datasources then write the logic of copying values from all the attributes of all the nodes and put them into one single node, then you can assign that single node as datasource with all the attributes of all the nodes to that table.
But it can create problem if different data nodes may not have any primary key.
Or you can ask R3 to give the values (of different data sources) in a single node and you can assign this datasource to the table.
Regards,
Gurmat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There will be always be only one data source for any table UI element.
But if your requirement is to shown data of Two Nodes in one table,then you should create a third node containinig the attributes of both nodes.and fill the third node data using the below code.Bind this third node to your table which can show the data from first two nodes
IPrivate<ViewName>.I<NodeName>Element element;
element = wdContext.node<NodeName>().create<NodeName>element();
element.setAttrb1("<Data from Node 1");
element.setAttrb2("<Data from Node 2");
wdContext.node<NodeName>().addElement(element);
Hope it helps.Let me know if you need more info
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.