Created by Wang, Jerry on Apr 29, 2016

A customer want to display amount with currency like ‘1 USD’ in table column, see below screenshot:

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);

How to bind multiple properties with formatter on one control from Ke相关推荐

  1. How to bind multiple properties with formatter on one control

    Issue description: A customer want to display amount with currency like '1 USD' in table column, see ...

  2. 【Paper】2010_Distributed optimal control of multiple systems

    Dong W. Distributed optimal control of multiple systems[J]. International Journal of Control, 2010, ...

  3. Docker(六)——使用 bind mounts

    使用 bind mounts,我们可以控制在主机确切的挂载点.我们可以使用这个去保存数据,但是它总是在容器内部提供额外的数据.当一个应用工作时,我们可以使用 bind mount 去挂载我们的源代码到 ...

  4. Comparison of online algorithms for the tracking of multiple magnetic targets in a myokinetic contro

    这篇文章研究了在磁追踪中最常用的三种定位方法,并在多个磁铁追踪的情形下进行了仿真测试,最后得出TRR算法的可靠性最高的结论.可以给研究磁定位的研究人员以参考. 用于多磁目标追踪的在线算法的比较 Com ...

  5. Flex入门的好书——《Flex3 Cookbook 中文版》

    本文标题:Flex入门的好书--<Flex3 Cookbook 中文版> 本文链接:http://zengrong.net/post/659.htm   Flex3 Cookbook 中文 ...

  6. 关于 UDP Hole Punching 的资料

    平时用两台电脑,一台 Win, 一台Mac,在这两个平台上进行文件传送非常不方便, 原因是公司不让用企鹅传公司内部文件. 于是想自己写一个传送文件的工具, 服务器使用 GAE,开发语言可以选择 Pyt ...

  7. DataGridView使用方法汇总

    DataGridView控件 DataGridView是用于Windows Froms 2.0的新网格控件.它能够代替先前版本号中DataGrid控件,它易于使用并高度可定制,支持许多我们的用户须要的 ...

  8. 怎样在QML中设计一个expandable ListView

    在前面的文章"怎样在QML中使用ListView并导航到其他页面中"中,我们已经介绍了各种在ListView中导航到其他页面的方法.在这篇文章中.我来介绍怎样建立一个expanda ...

  9. power bi 地图_如何使用Power BI创建地理地图-填充地图和气泡地图

    power bi 地图 该项目 (The project) This is the first article of a series dedicated to discovering geograp ...

最新文章

  1. 英特尔全栈解决方案,助推人工智能在多领域的落地发展
  2. SAP WM初阶根据Group Number来查询与之有关的TO单
  3. 【Android 异步操作】Handler 机制 ( Handler 常用用法 | HandlerThread 简介 | HandlerThread 源码注释分析 )
  4. 一条 SQL 语句在 MySQL 中如何被执行的?
  5. linux下=号与==号
  6. 操作系统:基于页面置换算法的缓存原理详解(下)
  7. js面向对象编程:this究竟代表什么?第二篇
  8. java第二章复习_JAVA第二章知识点
  9. 如何在Global.asax中判断是否是ajax请求
  10. mysql 转换编码
  11. Eureka error java.net.UnknownHostException:
  12. PyQt5笔记(06) -- 菜单
  13. 电影《长津湖》上映7天票房破26亿元
  14. ubuntu 16.04安装网易云音乐
  15. 为什么开发移动端web不使用jQuery
  16. 机器学习sklearn之支持向量回归(SVR)
  17. r5驱动 索尼exmor_卡片机“X”档案 ——索尼Exmor R CMOS技术解析
  18. Emulator: Process finished with exit code -1073741515 (0xC0000135)错误
  19. 晨晖c语言,晨晖C语言学习系统
  20. Ceph 网络模块(1) - 网络模块基本结构

热门文章

  1. Microsoft Office 2007的ContentType
  2. 面试系列三 如何保证消息不被重复消费
  3. 前端面试题集锦(一)之HTML部分
  4. Python的功能模块[3] - binascii - 编码转换
  5. Android多线程分析之三:Handler,Looper的实现
  6. python调用c代码
  7. Java堆、栈、内存分析
  8. Tomcat servlet工作原理
  9. 安装 android studio创建工程运行报错 -- 常见的三个问题
  10. 常见激活函数及其求导相关知识