其他分享
首页 > 其他分享> > 隐藏SAP CRM WebClient UI personalization 里某个field

隐藏SAP CRM WebClient UI personalization 里某个field

作者:互联网

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

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

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" />

标签:xml,dlc,inp,lv,field,UI,personalization,table
来源: https://blog.csdn.net/i042416/article/details/94982564