使用View modification扩展SAP Fiori应用的一个案例
发布日期:2021-06-30 14:24:53 浏览次数:2 分类:技术文章

本文共 1237 字,大约阅读时间需要 4 分钟。

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

And then hidden the field via view modification.

Runtime implementation

(1) the view Modification we defined in the extension component’s component.js is loaded in the runtime.

(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.

(3) Then the visible configuration parsed from step 1 is merged into standard settings mSettings via the jQuery.extend method:

Final settings for “Participants” tab:

(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.

image

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

转载地址:https://jerry.blog.csdn.net/article/details/107944173 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:SAP UI5 Negative cache的工作原理
下一篇:SAP Fiori应用没能从Fiori Launchpad启动的一个可能原因及分析过程

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2024年04月16日 18时17分32秒