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

DropdownBox.js not available

Hi,

I´m running a SAPUI5 WebApp. When i want insert a DropdownBox I get the following error.

<DropdownBox id="dd-locations" editable="true">
<core:ListItem text="{/staff/berlin}"></core:ListItem>
</DropdownBox>

Uncaught Error: failed to load 'sap/m/DropdownBox.js' from resources/sap/m/DropdownBox.js: 404 - NOT FOUND

Somebody has an idea how I can fix that?

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Nov 12, 2015 at 10:36 AM

    Hi Maximilian,

    'm' library doesn't have 'sap.m.DropDownBox'. Instead, you have to use 'sap.m.Select' or 'sap.m.ComboBox'

    For Select - SAPUI5 Explored

    For ComboBox - SAPUI5 Explored

    Regards,

    Sai Vellanki.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 12, 2015 at 02:33 PM

    If you wanted to use the dropdownbox you would need to add it's namespace to your view.

    <mvc:View

    controllerName="com.your.controller"

    xmlns:commons="sap.ui.commons"

    ...

    <commons:DropdownBox id="dd-locations"...

    Regards,

    Jamie

    SAP - Technology RIG

    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.