Skip to Content
avatar image
Former Member

Dropdown values

Hi experts,

In My dropdown I have 10 values(i used dropdownbyindex). I need to highlight the some selected values. ? I need to highlight the some 3 values(it means3 values should be selected in the dropdown).. How to do that?

Regards,

P.Manivannan.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 18, 2009 at 09:15 AM

    Hi,

    U can use ItemListBox instead of dropdownBy and make the multiselect as true.

    The follwing links will be helpful to solve your problem :

    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b09cc7ef-8185-2b10-4aaa-96ffc93d237c]

    [http://help.sap.com/saphelp_nw04s/helpdata/en/23/928b411fb4b05fe10000000a1550b0/content.htm]

    Thanks

    Ritushree

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Satish Jhariya

      Hi Sathish,

      This is my exact my requirement. Thanks for ur valuable replies. I just highlight the Values coming from backend.

      after adding element ivalues should be displayed in the itemListbox

      for (int i = 1; i <= 10; i++)
      				{
      					IPrivateItemView.ITestElement ele = wdContext.nodeTest().createTestElement();
      					ele.setVa_test("value" + i);
      					wdContext.nodeTest().addElement(ele);
      				}
      				wdContext.nodeTest().setLeadSelection(-1);
      
      

      Regards,

      P.Manivannan

  • avatar image
    Former Member
    Mar 17, 2009 at 01:14 PM

    I'm pretty sure you can't do this with a DropDownByKey.

    From the documentation:

    A DropDownByKey UI element provides the user with a selection list from which he or she can select no more than one entry.

    Might be better (but ugglier) to use ItemListBox.

    /Björn

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 17, 2009 at 01:18 PM

    Hi

    Instead of Using DropDown u can use ItemListBox Ui Element ,here u can set multiple selection = true,

    and thats it .

    In dropdown it is not possible because onec u selected value list will went away(no way to select more than one ).

    Best Regards

    Satish Kumar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 18, 2009 at 03:29 AM

    Hi,

    In a DropDownByIndex / DropDownByKey UI element you cannot select more than one entry from the selection list.

    We use the ItemListBox for multiple selections as also mentioned in the above post.

    Use this help link: http://help.sap.com/saphelp_nw70/helpdata/EN/23/928b411fb4b05fe10000000a1550b0/frameset.htm

    Regards,

    Anagha

    Add comment
    10|10000 characters needed characters exceeded