on 02-16-2007 5:09 PM
Hi
I am Trying to ad values to "DropDownByKey" UI element dynamically.I created a Context Node "Temp" under which i created a attribute "ShiftTemp".Now to add value dynamically i had written following code in View Controller.
-
IWDAttributeInfo attinfo = wdContext.nodeTemp().getNodeInfo().getAttribute("ShiftTemp") ;
ISimpleTypeModifiable modinfo = attinfo.getModifiableSimpleType();
IModifiableSimpleValueSet valset = modinfo.getSVServices().getModifiableSimpleValueSet();
-
It is giving me "Context Exception :cannot modify attribute "ShiftTemp" datatype".
can anybody tell me what was the problem?
Thanks
Prasad
HI,
Go thru this link it explains ur requirement
http://help.sap.com/saphelp_erp2005vp/helpdata/en/86/16e13d82fcfb34e10000000a114084/frameset.htm
Thanks
Lohi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
ISimpleTypeModifiable modinfo = attinfo.getModifiableSimpleType();
change this to
<b> ISimpleTypeModifiable modinfo = (ISimpleTypeModifiable) attinfo.getModifiableSimpleType();</b>
regards,
Siva
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 check out this example
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/391ee590-0201-0010-1c89-f1193a886421
<b>Sample Code</b>
IWDAttributeInfo attibuteInfo = wdContext.getNodeInfo().getAttribute(country);
ISimpleTypeModifiable countryType = attibuteInfo .getModifiableSimpleType();
countryType.setFieldLabel(Country);
IModifiableSimpleValueSet valueSet = automakerType.getSVServices().getModificableSimpleValueSet();
valueSet.put(Germany);
Regards,
Gopi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.