Skip to Content
0
Former Member
May 01, 2014 at 09:37 AM

How to add key:value to a listitem.bindproperty and dropdown.bindproperty

373 Views

Hello,

Currently have this dropdown


 
 
var oColumn = new sap.ui.table.Column({ label: new sap.ui.commons.Label({text: "Service Element"}), template: new sap.ui.commons.DropdownBox("oDropdownbox3").bindProperty("value", "job_desc") .bindAggregation("items", "/entries", new sap.ui.core.ListItem({ text: "{job_desc}", key: "{job_number}" })), sortProperty: "job_desc", filterProperty: "job_desc", width: "300px" });

The job_desc is displayed in the table fine but when a new created row back to the backend, it's missing job_number in the json, it only sends back the job_desc which is of no use to me, I need the key i.e. job_number. Any ideas?