隐藏SAP CRM WebClient UI personalization 里某个field

Created by Jerry Wang, last modified on Aug 25, 2014

假设希望将UUID field从end user使用的personalization view中隐藏掉:
隐藏SAP CRM WebClient UI personalization 里某个field
虽然在ui configuration里,uuid设置成为Displayed Fields,但是当end user 打开personalization view时,该field 不可见:
隐藏SAP CRM WebClient UI personalization 里某个field
隐藏SAP CRM WebClient UI personalization 里某个field

solution in main.htm:

<%@page language="abap" %>
<%@extension name="chtmlb" prefix="chtmlb" %>
<%@extension name="thtmlb" prefix="thtmlb" %>
<%@extension name="bsp" prefix="bsp" %>
<%
 DATA: lv_xml_inp TYPE bsp_dlc_xml,
 ls_config TYPE bsp_dlc_table_descr,
 lt_columns TYPE bsp_dlc_column_descr_tab.
 FIELD-SYMBOLS <ls_column> TYPE bsp_dlc_column_descr.
 lv_xml_inp    = controller->CONFIGURATION_DESCR->GET_CONFIG_DATA( ).
 ls_config = cl_bsp_dlc_table_utility=>conf_xml_to_abap( lv_xml_inp ).
 loop at LS_CONFIG-COLUMNDEFINITION ASSIGNING <LS_COLUMN>.
 if <ls_column>-name = 'UUID'.
 DELETE ls_config-columndefinition FROM <ls_column>.
 endif.
 endloop.
 lv_xml_inp = cl_bsp_dlc_table_utility=>CONF_ABAP_TO_XML( ls_config ).
%>
<chtmlb:tableExtension tableId = "ResultList"
                      layout  = "FIXED" />
<chtmlb:configTable xml              = "<%= lv_xml_inp %>"
                   id               = "ResTable"
                   table            = "//SOCIALPOST/Table"
                   width            = "100%"
                   headerVisible    = "FALSE"
                   hasLeadSelection = "TRUE"
                   visibleRowCount  = "10"
                   actionsMaxInRow  = "5" />
上一篇:python技巧31[移植python2.x到3.x]


下一篇:018_jsdoc详解