打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
使用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

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.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
线稿生成建筑效果测试,ai绘图。
微信小程序制作顶部导航栏
推荐一款超级漂亮的HTML5 CSS3的图片轮播器
如何隐藏定义名称?
jQuery 可见性过滤器
Android控件显示和隐藏
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服