Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Check drop down status


Ive MVC UI5 project with controller and fragment,in the fragment I've Drop down which is getting the data from

the controller,most of the time the service are providing data to the ddl but in some cases not.

in case that the drop down is not getting data from the controller I want to display text no customers found instead the drop down

i.e. not to draw the drop down at all,how can I do that ?

Example will be very helpful since Im very new to UI5


Former Member

Hi Joerg

Here is what you need

JS Bin - Collaborative JavaScript Debugging

Basically, we extend the sap.m.Select control to not render the dropdown box but the text if there are no items.

You can do the same for other controls.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question