Skip to Content
avatar image
Former Member

DropDownByKey error

Hi

I have created a simple type key(Stirng)in dictonary and i have created a value node in custom controller context and set the type as Key.... and i have created another key in my view context i have mapped this attribute to controller context key attribute... when i am executing i am getting the following error...

<b>"must not modify the datatype of a mapped attribute "</b>

i am using DropDownByKey.....

I have removed the mapping with custom controller context attribute....and that part is execting fine but when i am executing the following line

msg.reportSuccess(""+wdContext.nodeMaterial_Output().getMaterial_OutputElementAt(i).getMatnr());

i am getting the following error.....

<b>java.lang.IndexOutOfBoundsException: Index: 0</b>

if am using DropDownByIndex i am getting "Selected node must be Multiple node" (something like this)....error when i am setting to texts property......

Thanks & Reagards

Ravi shankar B

Message was edited by: RaviShankar B

Message was edited by: RaviShankar B

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 27, 2006 at 05:57 AM

    Hi Ravi,

    Did you find the size that is

    int size=wdContext().nodeMaterial_Output().size();

    and in the loop,

    for(int i=0;i<size;i++)

    {

    msg.reportSuccess(""+wdContext.nodeMaterial_Output().getMaterial_OutputElementAt(i).getMatnr());

    }

    Did you code like that?

    Letme know if it works

    Saravanan K

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi ravi,

      Kindly use the following code above said in custom controller and tell me wat is the result?

      Then Create a node say Material in Custom controller with Two nodes for input and Output.Create attributes for Input and Output respective to the input and output parameters

      And bind them to the respective input and Output parameters of BAPI.

      Bind the Node "Material" to the ComponentController and bind to the respective View

      Regards

      Saravanan K

      And then