on 2009 Jan 28 2:39 PM
Hi Experts,
I am using drop down by key, when the user select data from drop down , I need the corresponding Key and Value .
when I print the context attribute refering to the dropdown by key it is printing the key but I require the corresponding value even.
I s it posible to get it?
Regards,
Venki.
Hi..
You can use these method..
public void setSelectedKey(String value)
This property must be bound to the context.It Sets property selectedKey to the new value.
value - the new value of the selectedKey property
public String getSelectedKey()
This property must be bound to the context. It returns the value of the selectedKey property. The key from the value set that defines the drop-down list's selection.
Regards,
Alamelu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
IWDAttributeInfo attributeInfo=wdContext.node<Node>().getNodeInfo().getAttribute("<attributename>");
ISimpleValueSet values=attributeInfo.getSimpleType().getSVServices().getValues();
for( int i =0 ;i<values.size();i++)
{
String text = values.getText(i);
}
Regards
Jayapriya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Yes, you can get text for the key from the value set linked to the attribute.
IWDAttributeInfo attributeInfo=
wdContext.node<Node>().getNodeInfo().getAttribute("<attributename>");
ISimpleValueSet values=attributeInfo.getSimpleType().getSVServices().getValues();
String text = values.getText(key);
Hope this helps!
Monalisa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.