Hi all,
I have an odata webservice where-in I am sending an entityset of vendor number (lifnr) and name (name1) into my fiori application. I have binded the text of the multiselect combobox with the name1 field and the key with lifnr field. The data is correctly been shown in the combobox . But the problem is if the lifnr fields contains value with leading zeroes in sap table (for eg. '00005') , then in fiori frontend , the key which is binded to the combobox is just '5' . It removes the leading zeroes. Actually I dont want the zeroes to be elimanted.
I debugged in the backend in odata , the return table is having the leading zeroes as originally in the table which means its getting removed during binding in frontend.
sap.ui.getCore().byId("Combo_Vend").bindItems({path:"Model_Hdr>/Vendor_ListSet",
template: new sap.ui.core.ListItem({text:"{Model_Hdr>Name1}",
key:"{Model_Hdr>Lifnr}"})
});
Regards
Amber