on 06-19-2009 7:00 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.