Skip to Content

MultiComboBox SetSelectedKeys()

Hi,

I am using the sap.m.MultiComboBox control on my UI. I want to set a default selected key in the field.

I tried this.myField.setSelectedKeys("all"); , but this doesn't do anything.

In fact, I tried this in debug mode when there were already some keys selected in the field and it ended up clearing everything.

Could anyone please help?

Thanks,

Parul

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 15, 2015 at 02:59 AM

    Did you have a look at this ?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 16, 2015 at 11:50 PM

    Hi Parul

    will this help?

    Sample

    -D

    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.