on 01-29-2008 9:04 AM
Hi All
I have taken a evs i.e Extended Value Selector. i have got the values in the evs at runtime and the code that i have used is
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("Status");
ISimpleTypeModifiable StatusType = attributeInfo.getModifiableSimpleType();
StatusType.setFieldLabel("Status");
IModifiableSimpleValueSet valueSet = StatusType.getSVServices().getModifiableSimpleValueSet();
{
valueSet.put("Key_0","New");
valueSet.put("Key_1","Open");
valueSet.put("Key_2","Assigned");
valueSet.put("Key_3","Closed");
}
wdContext.currentContextElement().setStatus("Key_0");
But i was unable to read the values i.e is selected in that evs can anybody tell how to read values from EVS.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can retrieve the selected value from the attribute mapped to UI. For example for dropDownByKey, from the property selectedKey.
USE:
wdContext.currentContextElement().getStatus();
It will return the key of the value selected.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
from the code i guess your context attriubute bind to the EVS is status
so the code to get the values goes as follows
wdContext.currentContextElement().getStatus();
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 |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.