How to add country drop down using openUI5 [closed]

Well it seems like you’ve tried nothing to solve your problem, but I’ll give it a shot anyway.

You need a list of countries, preferably in a non-human readable format (JSON). You can find such lists via google (list of countries json).
You then use this JSON list to create a new sap.ui.model.json.JSONModel. After that, bind the model to your view.

Your view should contain a sap.m.Select which references your bound model in its items aggregation.

Example on how to bind data:

Example on how to use select:

Browse More Popular Posts

Leave a Comment