<?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: How to Pre-Filter data in table using Fiori Elements ? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-pre-filter-data-in-table-using-fiori-elements/qaa-p/13982294#M4898595</link>
    <description>&lt;P&gt;Please look at the sample provided in the blog. I wonder if this can be explained better than in the blog. Here is are two clues: The first view is automatically selected. You may provide only one view.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2025 07:57:57 GMT</pubDate>
    <dc:creator>Dinu</dc:creator>
    <dc:date>2025-01-10T07:57:57Z</dc:date>
    <item>
      <title>How to Pre-Filter data in table using Fiori Elements ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-pre-filter-data-in-table-using-fiori-elements/qaq-p/13982047</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm using CAP(Node.js) with odata(v4) &amp;amp; fiori elements.&lt;SPAN&gt;&amp;nbsp;My requirement is to pre-filter the data being displayed in the table (UI.LineItem). What i mean by pre-filter is that when user sees the table he doesn't have to select a value from selection fillter and press go, the data is already filtered on some fixed condition when the page is rendered. I read a blog that shows how to filter data based on segmented buttons using SelectionVariant annotaion but haven't found anything without clicking the buttons.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Blog link :&amp;nbsp;&lt;A href="https://community.sap.com/t5/technology-blogs-by-sap/cap-with-fiori-elements-configure-multiple-views-on-list-report-tables/ba-p/13579909" target="_blank"&gt;https://community.sap.com/t5/technology-blogs-by-sap/cap-with-fiori-elements-configure-multiple-views-on-list-report-tables/ba-p/13579909&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I also tried the FilterExpression annotation i.e.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SelectionVariant&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $&lt;/SPAN&gt;&lt;SPAN&gt;Type&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'UI.SelectionVariantType'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FilterExpression&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'field eq val'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;but that didn't seem to do anything. Also i can't use javascript to filter data because i have created multiple tables(LineItem) on a single entity, and JS will affect the data in all of these tables. Therefore i'm trying to find a solution based on annotations.&lt;/P&gt;&lt;P&gt;Any Ideas how to achieve this ?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 22:43:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-pre-filter-data-in-table-using-fiori-elements/qaq-p/13982047</guid>
      <dc:creator>David21</dc:creator>
      <dc:date>2025-01-09T22:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pre-Filter data in table using Fiori Elements ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-pre-filter-data-in-table-using-fiori-elements/qaa-p/13982294#M4898595</link>
      <description>&lt;P&gt;Please look at the sample provided in the blog. I wonder if this can be explained better than in the blog. Here is are two clues: The first view is automatically selected. You may provide only one view.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 07:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-pre-filter-data-in-table-using-fiori-elements/qaa-p/13982294#M4898595</guid>
      <dc:creator>Dinu</dc:creator>
      <dc:date>2025-01-10T07:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pre-Filter data in table using Fiori Elements ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-pre-filter-data-in-table-using-fiori-elements/qaa-p/13982668#M4898635</link>
      <description>I did try only providing one view but it didn't seem to have any affect. Maybe because i'm trying to display the table on object page. Someone else was facing a similar issue : &lt;A href="https://community.sap.com/t5/technology-q-a/filter-items-in-a-object-page-table-with-fiori-elements-cap-node-js/qaq-p/12537745/comment-id/4898553#M4898553" target="_blank"&gt;https://community.sap.com/t5/technology-q-a/filter-items-in-a-object-page-table-with-fiori-elements-cap-node-js/qaq-p/12537745/comment-id/4898553#M4898553&lt;/A&gt;</description>
      <pubDate>Fri, 10 Jan 2025 12:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-pre-filter-data-in-table-using-fiori-elements/qaa-p/13982668#M4898635</guid>
      <dc:creator>David21</dc:creator>
      <dc:date>2025-01-10T12:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pre-Filter data in table using Fiori Elements ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-pre-filter-data-in-table-using-fiori-elements/qaa-p/13982762#M4898643</link>
      <description>&lt;P&gt;Support for SelectionPresentationVariant in Object Page was added in version 121 (mentioned in change log and &lt;A href="https://sapui5.hana.ondemand.com/#/topic/facfea09018d4376acaceddb7e3f03b6" target="_blank" rel="noopener"&gt;documentation #Rendering a Table in a Section&lt;/A&gt;). So, If you use any later version, it should work.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 14:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-pre-filter-data-in-table-using-fiori-elements/qaa-p/13982762#M4898643</guid>
      <dc:creator>Dinu</dc:creator>
      <dc:date>2025-01-10T14:01:35Z</dc:date>
    </item>
  </channel>
</rss>

