Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9610

Re: Help with Combos (Select) - fill and binding

$
0
0

Hi Alejandro,

 

Just upgraded from 1.8.4 to 1.10.4 and realized the bindProperty method for the association (selectedItem) will no longer work with the new base class sap.ui.base.ManagedObject for sap.m.Select (since version 1.9.1). You could call setSelectedItem each time the loadData is complete, but it sounds like you may already be doing something similar.

 

oModel.attachRequestCompleted(function() {            if (oSelect.isBound("items")) {                 oSelect.unbindAggregation("items");      }            oSelect.setSelectedItem(oModel.getProperty("/employee/country"));    }); 

 

Cheers,

Ian


Viewing all articles
Browse latest Browse all 9610

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>