cancel
Showing results for 
Search instead for 
Did you mean: 

Add a default filter expression in Fiori Elements Filterbar

UxKjaer
Product and Topic Expert
Product and Topic Expert
0 Kudos

I'm trying to filter a dropdown list in a Fiori Elements List reports. My dropdown is tied to another entityset in my model. My main model doesn't have that specific filter criteria, so i can't use the valueparameterin mapping. I've been able to use the Common.FilterDefaultValue on my dropdown filter criteria. This works in the popup, but not on my dropdown.

Anyone have any ideas.

This is my annotation file:

<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
	<edmx:Reference Uri="/sap/bc/ui5_ui5/ui2/ushell/resources/sap/ushell/components/factsheet/vocabularies/UI.xml">
		<edmx:Include Alias="UI" Namespace="com.sap.vocabularies.UI.v1"/>
	</edmx:Reference>
	<edmx:Reference Uri="/sap/opu/odata/sap/ZHR_EMPLOYEE_MOVEMENT_SRV;v=0002/$metadata">
		<edmx:Include Alias="ZHR_EMPLOYEE_MOVEMENT_SRV" Namespace="ZHR_EMPLOYEE_MOVEMENT_SRV"/>
	</edmx:Reference>
	<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Aggregation.V1.xml">
		<edmx:Include Alias="Aggregation" Namespace="Org.OData.Aggregation.V1"/>
	</edmx:Reference>
	<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Authorization.V1.xml">
		<edmx:Include Alias="Auth" Namespace="Org.OData.Authorization.V1"/>
	</edmx:Reference>
	<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Capabilities.V1.xml">
		<edmx:Include Alias="Capabilities" Namespace="Org.OData.Capabilities.V1"/>
	</edmx:Reference>
	<edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470974/Common.xml?api=v2">
		<edmx:Include Alias="Common" Namespace="com.sap.vocabularies.Common.v1"/>
	</edmx:Reference>
	<edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470971/Communication.xml?api=v2">
		<edmx:Include Alias="Communication" Namespace="com.sap.vocabularies.Communication.v1"/>
	</edmx:Reference>
	<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml">
		<edmx:Include Alias="Core" Namespace="Org.OData.Core.V1"/>
	</edmx:Reference>
	<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Measures.V1.xml">
		<edmx:Include Alias="Measures" Namespace="Org.OData.Measures.V1"/>
	</edmx:Reference>
	<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.xml">
		<edmx:Include Alias="Validation" Namespace="Org.OData.Validation.V1"/>
	</edmx:Reference>
	<edmx:DataServices>
		<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="qldh.annotatedempllistreport.ZHR_EMPLOYEE_MOVEMENT_SRV">
			<!--===============================================================================
                Entity Type from chosen collection 
                ================================================================================-->
			<Annotations Target="ZHR_EMPLOYEE_MOVEMENT_SRV.MovementType/Role">
				<Annotation Term="Common.FilterDefaultValue" String="Fake"/>
				<Annotation Term="UI.HiddenFilter" Bool="true"/>
			</Annotations>
			<Annotations Target="ZHR_EMPLOYEE_MOVEMENT_SRV.EmfRequest/MovementTypeCode">
				<Annotation Term="Common.ValueListWithFixedValues" Bool="true"/>
			</Annotations>
		</Schema>
	</edmx:DataServices>
</edmx:Edmx>

Accepted Solutions (0)

Answers (0)