cancel
Showing results for 
Search instead for 
Did you mean: 

Table UI element

Former Member
0 Kudos

Hello,

Can we assign multiple data sources with attributes for a single table UI element ?

Thanks,

kavya.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

HI

why do you want multiple data sources to be bind to the Table UI.

What exactly is your requirement ?

Former Member
0 Kudos

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

Former Member
0 Kudos

Other suggestion is bind the datasource dynamically in the table.

regards

Marcos

Former Member
0 Kudos

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