cancel
Showing results for 
Search instead for 
Did you mean: 

how tp populate EVS from a Model node attribute

Former Member
0 Kudos

Hi All,

i have some records in the model table mapped to a node in the view. i wanna to use the OVS to select the particular attribute but don't know how to do it.

i have bounded that particular column to the inputField but when i write this code

IWDAttributeInfo atInfo =

wdContext.nodeActivity().getNodeInfo().getAttribute( IPrivateEVSView.IActivityElement.SYNC__KEY);

ISimpleType synckeyType = atInfo.getSimpleType();

<b>ISimpleValueSet valueset = synckeyType.getSVServices().getValues();</b>

i get the NUllPointerException at the last line.

How to get the ValueSet in this case and populate the OVS.

Plz help

Rgds.

Vilish

I have studied EVS tutorial at SDN.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vilish,

OVS is quite different thing, what you are trying to do here is to create modifiable value set (SVS), right?

Then you have to use:


ISimpleTypeModifiable type =
  atInfo.getModifiableSimpleType();

IModifiableSimpleValueSet msvs = 
  type.getSVServices().getModifiableSimpleValueSet();
msvs.put(<key>, <value>);

Also check that type of attribute is simple type (string, integer etc) or derivate thereof.

Valery Silaev

EPAM Systems

http://www.netweaverteam.com/

P.S. If you really need to use OVS then corresponding tutorial is https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/5dcbe990-0201...