cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between ISimpleTypeModifiable and ISimpleType

Former Member
0 Kudos

Hi,

What is the difference between ISimpleTypeModifiable and ISimpleType? When to use which one ?

I am getting the exception "java.lang.UnsupportedOperationException" on using ISimpleType.

Thanks & Regards,

Neeraj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Neeraj,

When you map the attributes between two controllers and try to access them then IModifiableSimpleType will not work, but ISimpleType will work.

Suppose Radio you have taken as the Simple Type created in Dictionary--> SimpleType


             String radio1 = "";
             String radio2 = "";
            // Attribute Info for Radio
            IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(wdContext.currentContextElement().RADIO);
                  
            // Get Reference to ISimpleType for the passed attributeInfo object
            ISimpleTypeModifiable taskType1 = attributeInfo.getModifiableSimpleType();
            ISimpleValueSet smset1 = taskType1.getSVServices().getModifiableSimpleValueSet();
            radio1 = smset1.getText(wdContext.currentContextElement().getRadio());
            

//          ISimpleType taskType2 = attributeInfo.getSimpleType();
//          ISimpleValueSet smset2 = taskType2.getSVServices().getValues();
//          radio2 = smset2.getText(wdContext.currentContextElement().getRadio());

            

            wdComponentAPI.getMessageManager().reportSuccess("radio1--->"+radio1);
//          wdComponentAPI.getMessageManager().reportSuccess("radio2--->"+radio2);

radio1 will give you the value in case of not mapping

radio2 will give you the value in case of mapping

Thanks

Deep

Edited by: Deep Kundra on Dec 15, 2008 10:33 AM

Answers (2)

Answers (2)

former_member192434
Active Contributor
0 Kudos

Hi

when u use IModifiable simple valueset you shoud not map the attribute of that particular input field where u need to get the value help to any other attribute in other views or controller.This is because when we use IModifiable and do mapping it wont work.Thats not the case with ISimple type so better check if you have done any mapping of that particular field in context.

Check out this pdf it has all the details

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/944ea9e5-0601-0010-65b3-b49a56eb...

Thanks

Former Member
0 Kudos

The public interface ISimpleTypeModifiable extends ISimpleType. i.e, it is derived from the interface ISimpleType.