<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Fiori Element Filter with hardcoded value in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/fiori-element-filter-with-hardcoded-value/qaa-p/12722601#M4774489</link>
    <description>&lt;P&gt;Finally, I got the solution.&lt;/P&gt;&lt;P&gt;We implement the enum entity set in our backend OData server. And use that enum set as CollectionPath in valuList.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;TransactionStatus&lt;/STRONG&gt; is the enum entity set.&lt;/P&gt;&amp;lt;Annotations Target="sap.odata.ApiTransaction/Status"&amp;gt;                &amp;lt;Annotation Term="Common.Label" String="{@i18n&amp;gt;recStatus}" /&amp;gt;                &amp;lt;Annotation Term="Common.ValueList"&amp;gt;                    &amp;lt;Record Type="Common.ValueListType"&amp;gt;                        &amp;lt;PropertyValue Property="CollectionPath" String="&lt;STRONG&gt;TransactionStatus&lt;/STRONG&gt;"/&amp;gt;                        &amp;lt;PropertyValue Property="Parameters"&amp;gt;                            &amp;lt;Collection&amp;gt;                                &amp;lt;Record Type="Common.ValueListParameterInOut"&amp;gt;                                    &amp;lt;PropertyValue Property="LocalDataProperty"                                        PropertyPath="Status" /&amp;gt;                                    &amp;lt;PropertyValue Property="ValueListProperty" String="Value" /&amp;gt;                                &amp;lt;/Record&amp;gt;                            &amp;lt;/Collection&amp;gt;                        &amp;lt;/PropertyValue&amp;gt;                    &amp;lt;/Record&amp;gt;                &amp;lt;/Annotation&amp;gt;                &amp;lt;Annotation Term="Common.ValueListWithFixedValues" Bool="true" /&amp;gt;            &amp;lt;/Annotations&amp;gt;&lt;P&gt;It works fine. We got the filter as we expected.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2168552-image.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 14:56:29 GMT</pubDate>
    <dc:creator>former_member750119</dc:creator>
    <dc:date>2023-05-08T14:56:29Z</dc:date>
    <item>
      <title>Fiori Element Filter with hardcoded value</title>
      <link>https://community.sap.com/t5/technology-q-a/fiori-element-filter-with-hardcoded-value/qaq-p/12722600</link>
      <description>&lt;P&gt;Hey colleagues,&lt;/P&gt;
  &lt;P&gt;Our team is developing a UI application with Fiori Element &amp;amp; Odata v4.&lt;/P&gt;
  &lt;P&gt;We have a requirement for adding Selection Field (Drop down filter) with hardcoded value. (e.g. To have a Status Filter with value in [New, In Progress, Failed])&lt;/P&gt;
  &lt;P&gt;Now we have the filter with &amp;lt;Annotation Term="UI.SelectionFields"&amp;gt;, it works but we have the duplicated selection.&lt;/P&gt;
  &lt;P&gt;Our table has 21 results, and the status filter will have 21 values.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2168514-image.png" /&gt;&lt;/P&gt;&amp;lt;Annotations Target="sap.odata.ApiTransaction/Status"&amp;gt; &amp;lt;Annotation Term="Common.Label" String="{@i18n&amp;gt;recStatus}" /&amp;gt; &amp;lt;Annotation Term="Common.ValueList"&amp;gt; &amp;lt;Record Type="Common.ValueListType"&amp;gt; &amp;lt;PropertyValue Property="CollectionPath" String="ApiTransaction"/&amp;gt; &amp;lt;PropertyValue Property="DistinctValuesSupported" Bool="true"/&amp;gt; &amp;lt;PropertyValue Property="SearchSupported" Bool="true"/&amp;gt; &amp;lt;PropertyValue Property="Parameters"&amp;gt; &amp;lt;Collection&amp;gt; &amp;lt;Record Type="Common.ValueListParameterInOut"&amp;gt; &amp;lt;PropertyValue Property="LocalDataProperty" PropertyPath="Status" /&amp;gt; &amp;lt;PropertyValue Property="ValueListProperty" String="Status" /&amp;gt; &amp;lt;/Record&amp;gt; &amp;lt;/Collection&amp;gt; &amp;lt;/PropertyValue&amp;gt; &amp;lt;/Record&amp;gt; &amp;lt;/Annotation&amp;gt; &amp;lt;Annotation Term="Common.ValueListWithFixedValues" Bool="true" /&amp;gt; &amp;lt;/Annotations&amp;gt;
  &lt;P&gt;I have tried with Annotation ValueList &amp;amp; ValueListWithFixedValues, but it doesn't meet the requirement.&lt;/P&gt;
  &lt;P&gt;I've tried extension in manifest.json, with combobox in a fragment. I can get the combobox with fixed value. But my extended filter can't get attached to the original FE odata search.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2168518-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2168519-image.png" /&gt;Anyone can give me any advice?&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Howard&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 07:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fiori-element-filter-with-hardcoded-value/qaq-p/12722600</guid>
      <dc:creator>former_member750119</dc:creator>
      <dc:date>2023-05-08T07:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fiori Element Filter with hardcoded value</title>
      <link>https://community.sap.com/t5/technology-q-a/fiori-element-filter-with-hardcoded-value/qaa-p/12722601#M4774489</link>
      <description>&lt;P&gt;Finally, I got the solution.&lt;/P&gt;&lt;P&gt;We implement the enum entity set in our backend OData server. And use that enum set as CollectionPath in valuList.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;TransactionStatus&lt;/STRONG&gt; is the enum entity set.&lt;/P&gt;&amp;lt;Annotations Target="sap.odata.ApiTransaction/Status"&amp;gt;                &amp;lt;Annotation Term="Common.Label" String="{@i18n&amp;gt;recStatus}" /&amp;gt;                &amp;lt;Annotation Term="Common.ValueList"&amp;gt;                    &amp;lt;Record Type="Common.ValueListType"&amp;gt;                        &amp;lt;PropertyValue Property="CollectionPath" String="&lt;STRONG&gt;TransactionStatus&lt;/STRONG&gt;"/&amp;gt;                        &amp;lt;PropertyValue Property="Parameters"&amp;gt;                            &amp;lt;Collection&amp;gt;                                &amp;lt;Record Type="Common.ValueListParameterInOut"&amp;gt;                                    &amp;lt;PropertyValue Property="LocalDataProperty"                                        PropertyPath="Status" /&amp;gt;                                    &amp;lt;PropertyValue Property="ValueListProperty" String="Value" /&amp;gt;                                &amp;lt;/Record&amp;gt;                            &amp;lt;/Collection&amp;gt;                        &amp;lt;/PropertyValue&amp;gt;                    &amp;lt;/Record&amp;gt;                &amp;lt;/Annotation&amp;gt;                &amp;lt;Annotation Term="Common.ValueListWithFixedValues" Bool="true" /&amp;gt;            &amp;lt;/Annotations&amp;gt;&lt;P&gt;It works fine. We got the filter as we expected.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2168552-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 14:56:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fiori-element-filter-with-hardcoded-value/qaa-p/12722601#M4774489</guid>
      <dc:creator>former_member750119</dc:creator>
      <dc:date>2023-05-08T14:56:29Z</dc:date>
    </item>
  </channel>
</rss>

