on 01-06-2009 10:52 AM
Dear All,
any one please help me how to refer the Dynaically created Attribute and How to get the Value from that Attrbute.
First i created one dynamic node. the context is like
Dynamic Node---(Node)
|TextView---(attribute)type(String)
|Check----(attribute)--type(boolean)
| image--(attribute)type(String)
i successfully created the Dynamic node and i successfully binded dynamically. now i want to get the value of Check attribute and also i nee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhargava,
You can get the value of your attribute using this,
<yourNodeElement>.getAttributeValue(<attributeName>);
Regards
Kishan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It depends whether the child node is singleton or non-singleton (I assume singleton) and which node element you want to access.
int i = /* index of node element to access */;
Object value = wdContext
.getChildNode("DynamicNode", IWDNode.LEAD_SELECTION)
.getElementAt(i)
.getAttributeValue("Check");
boolean checked = ((Boolean) value).booleanValue();
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Follw this.
IWDNode node=wdContext.currentContextElemnt().node().getChildNode(<node name>,index);
WDNodeElement ele=node.getCurrentElemnt();
Boolean b=(Boolean)ele.getAttributeValue("Check");
Regards,
Srikanth Reddy.T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.