cancel
Showing results for 
Search instead for 
Did you mean: 

RE:Extended Value Selector.

Former Member
0 Kudos

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.....

Accepted Solutions (0)

Answers (3)

Answers (3)

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Mahesh,

Check this [Link|;

Regards, Suresh KB

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks 4 ur reply........