on 2023 Jan 15 8:11 PM
Hi friends,
I want to show the values of the filters in the search help in the smartfilterbar. Values do not appear in the filters that come in the popup. You have to enter the conditions manually. I want to fetch f4 of the values to be filtered and make a list. How do I do this in annotation.xml file. Need to give references among search help? What path should I follow? Thanks.
Annotation.xml
<Annotations Target="ZFTH_TEST_SERVICE_SRV.GetData/Carrid">
<Annotation Term="Common.ValueList">
<Record Type="Common.ValueListType">
<PropertyValue Property="CollectionPath" String="CarridShSet"/>
<PropertyValue Property="Parameters">
<Collection>
<Record Type="Common.ValueListParameterInOut">
<PropertyValue Property="LocalDataProperty" PropertyPath="Carrid"/>
<PropertyValue Property="ValueListProperty" String="Carrid"/>
</Record>
<Record Type="Common.ValueListParameterDisplayOnly">
<PropertyValue Property="ValueListProperty" String="Connid"/>
</Record>
<Record Type="Common.ValueListParameterDisplayOnly">
<PropertyValue Property="ValueListProperty" String="Carrname"/>
</Record>
<Record Type="Common.ValueListParameterDisplayOnly">
<PropertyValue Property="ValueListProperty" String="Cityfrom"/>
</Record>
<Record Type="Common.ValueListParameterDisplayOnly">
<PropertyValue Property="ValueListProperty" String="Cityto"/>
</Record>
</Collection>
</PropertyValue>
</Record>
</Annotation>
</Annotations><strong><br></strong>
Main.xml
<smartFilterBar:SmartFilterBar id="smartFilterBar" entityType="GetData" smartVariant="PageVariant" persistencyKey="PKeyFilterbar" initialized="filterBarInitialized" class="smartFilterBarWrapper">
<smartFilterBar:controlConfiguration>
<smartFilterBar:ControlConfiguration key="Carrid" label="{/#GetData/Carrid/@sap:label}" preventInitialDataFetchInValueHelpDialog="false" visibleInAdvancedArea="true" index="1" filterType="multiple" mandatory="notMandatory"/>
</smartFilterBar:controlConfiguration>
</smartFilterBar:SmartFilterBar>
Request clarification before answering.
https://blogs.sap.com/2020/03/11/smart-field-with-value-help-and-filter/
follow this and skip the last step regarding hiding the field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
30 | |
9 | |
9 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.