Skip to Content
0
Feb 27, 2017 at 08:23 AM

Currency formatting in ObjectListItem Using XML View in Eclipse Luna Version

1401 Views

Hi Experts,

I'm new to SAPUI5 Please help me ,Here I'd like to bind My JSON Data with XML View having ObjectListItem control an amount with a specific currency field and symbol , I use the following coding in a XML view but here I'm not getting currency field (amount)and symbol is not showing in any value in my app...please help me...

<ObjectListItem title="{products>ProductName}"

number="{ parts: [ {path:'products>UnitPrice'},

{path:'/CurrencyCode'}],

type:'sap.ui.model.type.Currency',

formatOptions:{ showMeasure: false} }"

numberUnit="{/currencyCode}">

</ObjectListItem>

Regards,

fayaz