Sapui5 如何防止SmartFilterBar上的多重选择?
我有以下SmartFilterBar: 正如您在输入字段上看到的,可以进行多选。如何防止在现场进行多重选择 我试过:Sapui5 如何防止SmartFilterBar上的多重选择?,sapui5,Sapui5,我有以下SmartFilterBar: 正如您在输入字段上看到的,可以进行多选。如何防止在现场进行多重选择 我试过: <smartFilterBar:ControlConfiguration key="ClassType" filterType="smartFilterBar:FilterType.single" visibleInAdvancedArea="true" preventInitialDataFetchInValueHelpDialog="false"></sm
<smartFilterBar:ControlConfiguration key="ClassType" filterType="smartFilterBar:FilterType.single" visibleInAdvancedArea="true" preventInitialDataFetchInValueHelpDialog="false"></smartFilterBar:ControlConfiguration>
<smartFilterBar:ControlConfiguration key="ClassNum" filterType="smartFilterBar:FilterType.single" visibleInAdvancedArea="true" preventInitialDataFetchInValueHelpDialog="false"></smartFilterBar:ControlConfiguration>
但是它不起作用。有一个注释可以控制这一点。 看这个
<Annotation Term="com.sap.vocabularies.Common.v1.FilterExpressionRestrictions" >
<Collection>
<Record>
<PropertyValue Property="Property" PropertyPath="Customer" />
<PropertyValue Property="AllowedExpressions" EnumMember="com.sap.vocabularies.Common.v1.FilterExpressionType/SingleValue" />
</Record>
<Record>
<PropertyValue Property="Property" PropertyPath="CompanyCode" />
<PropertyValue Property="AllowedExpressions" EnumMember="com.sap.vocabularies.Common.v1.FilterExpressionType/SingleValue" />
</Record>
</Collection>
并搜索“FilterExpressionType”以获取更多详细信息。有一个注释可控制此操作。
看这个
<Annotation Term="com.sap.vocabularies.Common.v1.FilterExpressionRestrictions" >
<Collection>
<Record>
<PropertyValue Property="Property" PropertyPath="Customer" />
<PropertyValue Property="AllowedExpressions" EnumMember="com.sap.vocabularies.Common.v1.FilterExpressionType/SingleValue" />
</Record>
<Record>
<PropertyValue Property="Property" PropertyPath="CompanyCode" />
<PropertyValue Property="AllowedExpressions" EnumMember="com.sap.vocabularies.Common.v1.FilterExpressionType/SingleValue" />
</Record>
</Collection>
并搜索“FilterExpressionType”以获取更多详细信息