zoukankan      html  css  js  c++  java
  • 使用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.

    image

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

  • 相关阅读:
    SSWA jsp 函数 的页面
    fun_function.execute
    pa_transaction_interface_all
    EBS mo_glob_org_access_tmp表的分析
    R12将银行和分行都使用TCA管理
    ap_invoice_distributions_all到xla_ae_lines
    python使用uuid和guid
    js http请求
    DES加密
    wxPython操作图形用户界面
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/13631596.html
Copyright © 2011-2022 走看看