on 10-08-2008 12:52 PM
Hi,
I need to read values from one of the model node and add a new element to it ? Can anyone tell by using the loop how can i read values from that model node ?
thanks
Jyothi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
for example Modal is modal node and table is value node ,
you can set the values like this...
IPrivate<name>View.ITableNode iTableNode = wdContext.nodeTable();
IPrivate<name>View.ITableElement iTableElement;
IPrivate<name>View.IModalNode iModalNode = wdContext.nodeModal();
IPrivate<name>View.IModalElement iModalElement
for(int i=0;i<iModalNode.size();i++){
iModalElement = iModalNode.getModalElementAt(i);
iTableElement = iTableNode.createTableElement();
iTableElement.set<attributes>();
..........
iTableNode.addElement(iTableElement);
iTableNode.moveNext();
}
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Reading the model node is similar to the normal value node
Generally the output would be under your main model node-->output and you might have a structure wherein you would have the output node holding the result
for(int i=0; i<wdContext.node<model_node_to_be_read>.size();i++)
{
IPublic<componentname>.I<model_node_to_be_read>Element ele = wdContext.node<model_node_to_be_read>().current<model_node_to_be_read>Element();
String value = ele.get<attribute>();
}
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.