我使用SmartTable,属性useTablePersonalisation设置为true,按钮生成P13n对话框
.根据手册我应该能够更改过滤器操作符的数据类型:
第二个字段为操作员提供了更详细的指定过滤器.可用的运算符取决于所选列的数据类型.
我对手册中的这两个选项感兴趣:

我想获得"字符串类型"选项,它会自动生成:
但我仍然为"数字类型"而不是"字符串类型"自动生成选项.我在后端实体中将此字段声明为Edm.String.
请问你知道如何解决这个问题吗?
这是我的xml代码,Abc是Edm.String:
<smartTable:SmartTable id="idSmartTable" smartFilterId="idSmartFilterBar" tableType="ResponsiveTable" entitySet="AbcSet"
useVariantManagement="false" useTablePersonalisation="true" header=" " showRowCount="true" enableAutoBinding="true" useExportToExcel="false"
showFullScreenButton="true">
<Table growing="true" mode="None">
<columns>
<Column>
<customData>
<core:CustomData key="p13nData" value='\{"columnKey": "Abc","leadingProperty": "Abc","sortProperty": "Abc","filterProperty": "Abc"}'/>
</customData>
<header><Text text="{i18n>Abc}" wrapping="false"/></header>
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<Text text="{Abc}"/>
</cells>
</ColumnListItem>
</items>
</Table>
</smartTable:SmartTable>
Run Code Online (Sandbox Code Playgroud)
我试图改变数据类型的"sap.ui.model.type.String" 的CustomData在XML表定义或ColumnListItem但也许我做错了什么.我必须使用1.38 UI5版本.
感谢您的任何设备.
小智 -1
您可以从以下链接查看 SAP UI5 示例: https://ui5.sap.com/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtableCustom/代码
基本上,您需要在自定义数据中使用““type”:“text””以及排序和过滤属性。
谢谢,马赫什