on 12-10-2008 2:58 AM
Hi all,
I have a table that is created dynamically.It has got 3 columns and 8 rows.In first row - first column,I have a value that is set dynamically.Now, How can I loop through this table and get this value?
The table context node and value attributes are also created dynamically.
Table node is "TimesheetData" and value attribute is col1.Value,col1.Value and col3.Value
TimesheetData
-
col1.Value
-
col2.Value
-
col3.Value
Again.... this node and attributes are not there in my view context by default, its getting created and binded dynamically here.
Thanks Kukku
Hi,
Following is the code to iterate through the elements
//Table node is "TimesheetData" and value attribute is col1.Value,col1.Value and col3.Value
for(int x=0;x<wdContext.getChildNode("TimesheetData",0).size(); x++)
{
IWDNodeElement nodeElement = wdContext.nodeTimesheetData().getElementAt(x);
String value1 = (String) nodeElement.getAttributeValue("col1");
String value2 = (String) nodeElement.getAttributeValue("col2");
String value3 = (String) nodeElement.getAttributeValue("col3");
}
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
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.