zoukankan      html  css  js  c++  java
  • SAP WebClient UI界面元素ID生成的逻辑分析

    If we open a WebClient UI page with Chrome and inspect its UI element via Chrome development tool, we could observe that the id attribute has some prefix for example C#_W#_V#_V#.. where # represents a number.

    Where is this id generated? Set a breakpoint on method CL_CHTMLB_CONFIG_UTILITY~RENDER_FROM_XML and we can find the method GENERATE_TAG_ID which did the job:

    All the ID of the page in the view hierarchy will be concatenated as the prefix of current element’s ID.

    If the current page is the first child of its parent, it has ID 1 assigned ( line 22 ), or else WebUI framework will increase the counter held internally and assign the latest value to the current UI element as ID ( line 16 ).

    Finally the ID is concatenated with seperator “_”.

    This ID will appear in the rendered HTML native code.
    The capital characters contained in the ID are defined as constant attribute in CL_BSP_WD_CONTROLLER.

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

  • 相关阅读:
    【服务器】【Windows】【3】开放服务器端口
    【服务器】【Windows】【2】把jar包做成服务,在Service中管理
    FZU 1753
    poj 1017
    poj 1666
    poj 1132
    ZOJ 2562 More Divisors
    POJ 2992 Divisors
    poj 2773 happy 2006
    poj 2407 Relatives
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/13592422.html
Copyright © 2011-2022 走看看