Requirement: hide the highlighted field in CRM Fiori Application “My Opportunity”, account block, as highlighted below:

The approach introduced in this document will not work, since the ui element to be hidden in this example is not statically defined in xml view, but dynamically created by JavaScript in controller code:

For the detail steps how we can figure this out, please refer to approach introduced in document How to find UI element binding path which is not statically defined in XML view.

Due to the fact of field dynamic creation, in the runtime, when the viewModification declaration in our extension component is executed, the controller of ui detail view is not instantiated yet, thus all the UI elements are not available at this time.

Instead, we have to find a proper position where the code extension is possible, and the instance of the UI element which we want to hide is available and accessible.

By going through all available extension hook in controller source code ( naming convention extHook… ), it is identified that the hook extHookGetDataForDetailScreen could be used. This hook will be called once the batch odata request to retrieve data for detail view display is returned from CRM backend.

The idea of hook implementation is get the to-be-hide UI element instance and call its method setVisible to hide it. This hook is done in your extension controller.

The whole source code of this extension project could be found in github: https://github.com/i042416/testOpportunityExtension

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

使用扩展技术将SAP Fiori应用隐藏动态创建的UI字段相关推荐

  1. 使用扩展技术对SAP Fiori应用进行端到端的增强,一个实际案例介绍

    第一章 These series of blogs give a step-by-step instructions about how to extend SAP standard CRM Fior ...

  2. 关于SAP Fiori Smart Template开发的一些实际例子

    下图是我用SAP Fiori Smart Template开发出来的UI. SAP标准的用List report template做的reference application: https://sa ...

  3. 如何手动下载并安装 Visual Studio Code 的 SAP Fiori tools - Extension Pack 扩展

    有朋友按照我这篇教程SAP UI5 本地开发环境的搭建里介绍的步骤,在 Visual Studio Code 内直接在线安装 SAP Fiori tools - extension pack 时: 遇 ...

  4. SAP建议客户将UI技术迁移到Fiori的六大原因

    Fiori是SAP下一代UI策略的战略性解决方案,SAP已经并且将会持续努力提供稳定可靠的服务为用户提供优越的用户体验: (1) Fiori包含了丰富的企业级应用控件库,该控件库是由SAP第一流的Ja ...

  5. SAP Fiori Lead应用中Accept按钮显示隐藏的逻辑

    SAP Fiori应用里有的细节,有时候有点让人疑惑. 比如有的Lead明细页面打开之后, footerbar区域只有Edit和Followup两个按钮: 而有的Lead页面, 同样位置的区域,有Ac ...

  6. 【转】SAP Fiori Design Guidelines基础篇

    SAP Fiori简介 SAP Fiori为SAP软件提供了一致且全面的用户体验. 通过强调易用性.创建视觉上令人愉悦的设计,所有设备的体验都是简单且直观的. 借助轻松的交互模式,SAP Fiori ...

  7. 《SAP FIORI 开发入门》课程答疑 第二期

    课程上线已经一个星期,本人也接到了同学们提出的一些问题.在这里把典型的问题的回答重新整理一下,帮助后来的同学. 再次放上课程的连接: SAP FIORI开发入门 希望老师能够再放开一章免费的课程. 已 ...

  8. SAP Fiori Elements 公开课第三单元学习笔记 - OData 和注解深入讲解

    课程地址 很多 SAP 从业者反映,open SAP 上的视频,因为网络原因无法访问,所以我会陆续在我的个人微 信 号"汪子熙"上面,把这些视频配上中文字幕并发布出来,敬请关注. ...

  9. SAP Fiori Elements 公开课第一单元概要介绍

    Open SAP 课程地址 很多 SAP 从业者反映,open SAP 上的视频,因为网络原因无法访问,所以我会陆续在我的个人微 信 号"汪子熙"上面,把这些视频配上中文字幕并发布 ...

最新文章

  1. tf.contrib.layers.xavier_initializer
  2. 学习Python一定要会的4个高阶函数
  3. JBPM学习(五):流程变量
  4. mysql group replication 安装配置详解
  5. 网络编程知识预备(4) ——了解应用层的HTTP协议与HTTPS协议
  6. c语言 overflow_C语言和其他语言的不得不说的差别!
  7. postman提取返回值
  8. 「浏览器插件」非常好用的JSON-View
  9. AMQP 和 RabbitMQ 入门
  10. Unsafe code may only appear if compiling with /unsafe
  11. 数据挖掘中易犯的10大错误
  12. 布斯乘法 Mips实现 - Booth Algorithm
  13. meanshift 与 camshift 跟踪算法比较
  14. 也谈Eclipse未自动在gen目录下生成R.java
  15. web 文字描边动画
  16. 20200415阿里笔试 Python3
  17. poi方式读取word目录大纲
  18. 计算机专业车辆控制,智能无人驾驶汽车的计算机控制系统详细介绍和要求及设计资料概述...
  19. 奇舞周刊第 330 期:别让自己“墙”了自己
  20. 蛋白粉可以提高免疫力吗?

热门文章

  1. 使用tesseract-ocr破解网站验证码
  2. C文件操作之写入字符串到指定文件并在屏幕显示
  3. 变化的和不变的-让自己慢下来(49)
  4. Visual Studio 2010中C++项目升级指南
  5. HTML5 Audio(音频)
  6. CLR via C# (二)
  7. ASP.NET----验证码类
  8. VS2005 快捷键
  9. [转]纯脚本写的仿照cmd命令窗口
  10. Django(part44)--制作分页