cancel
Showing results for 
Search instead for 
Did you mean: 

table values not displaying

Former Member
0 Kudos

Hi all,

I have created one project in nwds 7.1 ehp 1 version which is having the table with static data...

but while deplyoing the application i am not getting the table values(static data which i given in the implementation)...

can anyone help me how to get the values...

thanks,

viswa

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

The table reflects the data in the node bound to the table.

If the data is not being displayed that means your node is empty. You can confirm this by displaying the size of the node.

You can use the following code to add an element to the node:


//Create an Element
IPrivate<TableNode>Element rowElement = wdContext.node<TableNode>.create<TableNode>Element();
//Set the values in the Element
rowElement.set<Attribute1>(<value1>);
rowElement.set<Attribute2>(<value2>);
rowElement.set<Attribute3>(<value3>);
//Add the element to the node
wdContext.node<TableNode>.add(rowElement)

From what you mentioned, I think you have not added the element to the node.

Regards,

Kartikaye

Former Member
0 Kudos

hi ,

thank u,

my problem is solved

Former Member
0 Kudos

Hi,

Did you bind the node to the table.

And if possible post the code that how you are populating the static data in to the table in wdDoInit() method.

Regards,

Charan

former_member201361
Active Contributor
0 Kudos

Hi,

If ur context structure looks like Node : Employee

Attribute : Name.

Collection Cardinality of ur node : 0 to n

use the below code for adding the statis data to ur table :

IEmployeeElement element = wdContext.NodeEmployee().createEmployeeElement();

element.setName("Ram");

wdContext.nodeEmployee.addElement(element);

or post the code for adding the static data to ur table .

Thanks and Regards