Issue description: A customer want to display amount with currency like ‘1 USD’ in table column, see below screenshot:
[外链图片转存失败(img-SwLswYGO-1566606739715)(https://user-images.githubusercontent.com/5669954/59319475-6cb61e80-8cfd-11e9-8c54-670884799d2b.png)]
you can ref to the following example to bind two properties in one control:
var sAmount = "ReportTableData>ExpectedSalesVolumne_Cy";
var sUnit = "ReportTableData>Unit";
var oFieldTemplate = new sap.m.Label().bindProperty("text",
{ parts: [{path: sAmount }, {path: sUnit } ],
formatter: function(sNum, sUnit){
var sNumber = sNum ? sap.ca.ui.model.format.AmountFormat.FormatAmountStandard(sNum, null, 0) : 0;
return sNumber + " " + sUnit; } });
var oColumnTemplate = new sap.ui.table.Column({
hAlign: "Right",
label: new sap.m.Label({text: "Expected Sales Volumne (Weighted)"}),
width: "130px",
sortProperty: "ExpectedSalesVolumne_Cy",
template: oFieldTemplate
});
oTable.addColumn(oColumnTemplate);