使用View modification扩展SAP Fiori应用的一个案例

This document gives a short introduction about how a field is hidden in the runtime by view modification. If you would like to know the “magic” occurred behind the scene, you could find them in this document.


In order to hidden the tab “Participants”, we have to first identify the technical id of this tab: salesTeam


使用View modification扩展SAP Fiori应用的一个案例使用View modification扩展SAP Fiori应用的一个案例(2) All the controls defined in opportunity detail view (an xml view ) are rendered one by one. As this is an xml view, the method in XMLTemplateProcessor.js is called. The screenshot below shows the time-slot when the “Participants” tab is to be rendered.

Check all the attributes at this time in variable mSettings: there is no attribute like visible yet.


使用View modification扩展SAP Fiori应用的一个案例使用View modification扩展SAP Fiori应用的一个案例(4) loop all attributes of current tab, when visible attribute is iterated, set the property “visible” to value “false” in line 897, so the tab is invisible in the final rendered html page.



使用View modification扩展SAP Fiori应用的一个案例

上一篇:网络基础6


下一篇:JdbcUtils 1.0小工具 | 学习笔记