Skip to Content
0
Dec 16, 2006 at 11:22 AM

How to get display text in EVS.

23 Views

Hi SDN,

In my application, I provided a EVS for one of the field.

In general, the field contains selected key value, but I want the display text also of the selected value for some manuplation.

For this I have below code, but gives an null pointer exception. please look into into it and post the corrections in it.

final Object key = wdContext.currentContextElement().getPersonInvol();

final ISimpleValueSet svs = wdContext.getNodeInfo().getAttribute("PersonInvol").getSimpleType().getSVServices().getValues();

svs.checkValue(key);

mgr.reportSuccess(svs.getText(key));

ele.setPersoninvolved((String)svs.getText(key));

and, when ever a person selects a value from the EVS, I need to trigger a event, how can I trigger a event on seclt of the EVS.

Thanks in advance,

Sai.k.k