var oDropdownBox3 = new sap.ui.commons.DropdownBox("DropdownBox3"); oDropdownBox3.setModel(oModel); var oItemTemplate1 = new sap.ui.core.ListItem(); oItemTemplate1.bindProperty("text", "job_desc"); oDropdownBox3.bindProperty("value", "job_desc"); oDropdownBox3.bindItems("/data/entries", oItemTemplate1);
In the code above I bind the listitems to /data/entries and use the job_desc field, then I have the dropdownbox bound to a value for the same. All works perfectly, but I would like the dropdownbox value to actually come from "/data/jobs". How can I do this? Thanks!