Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3180

Leading zeroes getting deleted in fiori when fetched from Odata

$
0
0

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


Viewing all articles
Browse latest Browse all 3180

Trending Articles



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