Skip to Content
author's profile photo Former Member
Former Member

how to fill DropdownByIndex

Hi all,

i used dropdown by index to show the list of user for a particular group.The data that should be displayd in dropdown will come from R/3. i am able to get data from R/3 and show in the dropdown.But the problem here is i want to show the message in the dropdown as :"Select The User".That is giving message to the user to select the value from dropdown.so the user will select one data by seeing the information

Can anyone plz help me out

Regards

Padma N

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 09:26 AM

    hai ,

    you cannot display please select as you get the deatils from backend.

    if you decide the data to be displayed in the drop down then thats possible.if you need ill give the coding for that.

    regards

    Sharanya.R

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hai padma

      public void wdDoInit()

      {

      //@@begin wdDoInit()

      wdContext.currentContextElement().setName("12345");

      IPrivateTestWdView.ITable1Node node1=wdContext.nodeTable1();

      IPrivateTestWdView.ITable1Element ele1;

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

      {

      ele1=wdContext.nodeTable1().createTable1Element();

      node1.addElement(ele1);

      }

      IWDAttributeInfo attributeInfo_skillarea = wdContext.getNodeInfo().getChild("table1").getAttribute(IPrivateTestWdView.ITable1Element.COL3);

      ISimpleTypeModifiable skillarea_Type = attributeInfo_skillarea.getModifiableSimpleType();

      IModifiableSimpleValueSet valueSet_skillarea = skillarea_Type.getSVServices().getModifiableSimpleValueSet();

      valueSet_skillarea.put("Select","Select");

      valueSet_skillarea.put("ZOBJID","ZQKTEST");

      IPrivateTestWdView.IDropdown1Node dnode=wdContext.nodeDropdown1();

      IPrivateTestWdView.IDropdown1Element dele;

      dele=wdContext.nodeDropdown1().createDropdown1Element();

      dele.setAttr1("123");

      dnode.addElement(dele);

      dele=wdContext.nodeDropdown1().createDropdown1Element();

      dele.setAttr1("456");

      dnode.addElement(dele);

      dele=wdContext.nodeDropdown1().createDropdown1Element();

      dele.setAttr1("789");

      dnode.addElement(dele);

      //@@end

      }

      //@@begin javadoc:wdDoExit()

      /** Hook method called to clean up controller. */

      //@@end

      public void wdDoExit()

      {

      //@@begin wdDoExit()

      //@@end

      }

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 09:28 AM

    Hi,

    As Drop down by index is populated from a node

    make the first element of the node populated with the value "Select The User"

    use the following method to do the same

    wdContext.node<Your Node>().addElement(0, element);

    Element is the element which contains the value "Select The User"

    Regards

    Ayyapparaj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 09:35 AM

    Hi Padma,

    Before populating the dropdown data from R/3 system. first add "Select The User" value and then add the R/3 data. Check this link for sample code:[Here|populating dropdownbyvalue with the r/3 value?;

    You can also search here more sample codes

    Regards, Suresh KB

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.