Hi,
If you are using TextView as TableCellEditor, you cannot edit them. otherwise, if you are using Inputfield, you should create an boolean attribute in the context node which is bound to the table. Bind this attribute to Enabled property of the Inputfields.
To iterate the table you can use For loop or While,
IPrivate<Viewname>.I<NodeName>Node node=wdContext.node<NodeName>();
node.invalidate();
<b>for</b>(initialize; condition; increment/decrement)
{
IPrivate<Viewname>.I<NodeName>Element element=wdContext.create<NodeName>Element();
element.set<Attribute1>("..");
element.set<Attribute2>("..");
node.addElement(element);
<b>if</b>(condition)
{
wdContext.current<TableNode>Element().set<booleanAttribute>(<b>true</b>);
}
<b>else</b>
{
wdContext.current<TableNode>Element().set<booleanAttribute>(<b>false</b>);
}
}
regards
karthik
Add a comment