Skip to Content
0
Jan 15, 2023 at 08:11 PM

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

92 Views

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.

untitled-1.jpg

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>

Attachments

untitled-1.jpg (190.3 kB)