on 09-05-2005 7:12 AM
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.
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
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.