Runtime exception -
com.sap.tc.webdynpro.progmodel.context.ContextException: MappedAttributeInfo(First_CompView.Color.VALUESET): must not modify the datatype of a mapped attribute
Code for DropDownByIndex----
IWDAttributeInfo attrInfo = wdContext.nodeColor().getNodeInfo().getAttribute(IPrivateFirst_CompView.IColorElement.VALUESET);
ISimpleTypeModifiable msType = attrInfo.getModifiableSimpleType();
IModifiableSimpleValueSet valueSet = msType.getSVServices().getModifiableSimpleValueSet();
valueSet .put("","choose");
valueSet .put("1","black");
valueSet .put("2","red");
valueSet .put("3","blue");
Getting Runtime error in the line----
ISimpleTypeModifiable msType = attrInfo.getModifiableSimpleType();
I am unable to set different colors as DropDownList dybamically.
Please help me out.