cancel
Showing results for 
Search instead for 
Did you mean: 

How to bring the popup values that are opened when the filter in the search help is clicked?

fdemir
Explorer
0 Kudos
321

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>

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

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.

fdemir
Explorer
0 Kudos

I don't want to hide the field. When I press the filter part, I want to bring the values in the popup.

I am not able to get Compact Filter F4 help List in Analytical List Pages, it showing as only Define Condition not as a Select from list.

But it should come like below,

junwu
Active Contributor
0 Kudos

just define value help for that field.