<?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: SAC Script api: can I work with story filter by using scripting in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810042#M4810463</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;What is the name of this API and how to use it?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2023 08:33:24 GMT</pubDate>
    <dc:creator>brian_jespersen</dc:creator>
    <dc:date>2023-08-21T08:33:24Z</dc:date>
    <item>
      <title>SAC Script api: can I work with story filter by using scripting</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaq-p/12810038</link>
      <description>&lt;P&gt;I have the problem that I would like to access the global story filters of the story via scripting. Do I have the possibility to read these values via a get function and can I also set the filters via a function? ....getDataSource().getDimensionFilters(...) is not even showing me the selected filter values of the story filter.&lt;/P&gt;
  &lt;P&gt;Thank you for your help&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 09:22:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaq-p/12810038</guid>
      <dc:creator>kumkej</dc:creator>
      <dc:date>2023-07-26T09:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAC Script api: can I work with story filter by using scripting</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810039#M4810460</link>
      <description>&lt;P&gt;Hi, I think this is not possible due to the fact that you are working in a specific page (at least when we are talking about the unified story). However, I noticed that SAP put this in the roadmap for the next quarter. This will open a lot of new opportunities! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2188035-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 09:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810039#M4810460</guid>
      <dc:creator>CasCriel79</dc:creator>
      <dc:date>2023-07-26T09:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAC Script api: can I work with story filter by using scripting</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810040#M4810461</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;kumkej&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;kumkej&lt;/SPAN&gt;In responsive layouts the API's return blank but if its a canvas layout ...getDataSource().getDimensionFilters(...) should return the filter values.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 11:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810040#M4810461</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-07-26T11:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAC Script api: can I work with story filter by using scripting</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810041#M4810462</link>
      <description>&lt;P&gt;Right,  2023 QRC3 update will provide the exact API you need to get and set value for story filter .  &lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 14:04:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810041#M4810462</guid>
      <dc:creator>William_Yu1</dc:creator>
      <dc:date>2023-07-26T14:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAC Script api: can I work with story filter by using scripting</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810042#M4810463</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;What is the name of this API and how to use it?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 08:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810042#M4810463</guid>
      <dc:creator>brian_jespersen</dc:creator>
      <dc:date>2023-08-21T08:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAC Script api: can I work with story filter by using scripting</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810043#M4810464</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;brian.jespersen&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Its discussed in below blog, Chapter &lt;STRONG&gt;Script API for Story Filter Bar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2023/06/22/whats-new-in-sap-analytics-cloud-release-2023.13/#3" target="test_blank"&gt;https://blogs.sap.com/2023/06/22/whats-new-in-sap-analytics-cloud-release-2023.13/#3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 08:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810043#M4810464</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-08-21T08:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAC Script api: can I work with story filter by using scripting</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810044#M4810465</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;kumkej&lt;/SPAN&gt;  Until now it´s not possible to read the selected values from an Story Filter directly. But, you can use a workaround based on the cascading filter effect of story filters.&lt;/P&gt;&lt;P&gt;1. Create your Story Filter and ensure the cascading effect is enabled&lt;/P&gt;&lt;P&gt;2. Create a Input Control (IPC) for the same DIM on the page you would like to integrate the Script. (You can disable all links of the IPC to other widgets and you can hide the IPC, because it is only a "helper" IPC.&lt;/P&gt;&lt;P&gt;3. Now you´re able to read the selections via script from the Story Filter via the IPC, because there are the same entries selected, caused by the cascading effect of the Story Filter.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;//Story Filter on DIM "Date"
//InputControl(IPC) on DIM "Date" as well - now you can read the Date selections from your Story Filter

var sel_date = IPC_1.getInputControlDataSource().getActiveSelectedMembers();
console.log("sel_date");
console.log(sel_date);&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Nov 2023 18:41:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810044#M4810465</guid>
      <dc:creator>tablespace</dc:creator>
      <dc:date>2023-11-25T18:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAC Script api: can I work with story filter by using scripting</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810045#M4810466</link>
      <description>&lt;P&gt;I can confirm the below works well to fetch the selection;&lt;/P&gt; 
&lt;PRE&gt;&lt;CODE&gt;var selectedFilterValues = Application.getFileDataSource("MODELID").getDimensionFilters("DIMENSIONID");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Nov 2023 13:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810045#M4810466</guid>
      <dc:creator>Sebastian_Gesiarz</dc:creator>
      <dc:date>2023-11-30T13:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAC Script api: can I work with story filter by using scripting</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810046#M4810467</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;if you would like to get filter values from linked analysis please vote for &lt;A href="https://influence.sap.com/sap/ino/#/idea/309690/?section=sectionDetails" target="_blank"&gt;this improvement request.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;br&lt;BR /&gt;edgar&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 09:42:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/12810046#M4810467</guid>
      <dc:creator>eeddggaarr</dc:creator>
      <dc:date>2023-12-07T09:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAC Script api: can I work with story filter by using...</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/13778115#M4839161</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;PRE&gt;var modelID="Cl7s7e1rj7i8amn7vo60oqj40d";&amp;nbsp; &amp;nbsp; &amp;nbsp;// your model id&lt;BR /&gt;var dimensionID = "0PROFIT_CTR";&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // your filter dimension&lt;BR /&gt;&lt;BR /&gt;var selectedFilterValues = Application.getFileDataSource(modelID).getDimensionFilters(dimensionID);&lt;BR /&gt;console.log(selectedFilterValues);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 09:02:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/13778115#M4839161</guid>
      <dc:creator>stefan_dufter</dc:creator>
      <dc:date>2024-07-31T09:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAC Script api: can I work with story filter by using...</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/13778122#M4839162</link>
      <description>ups sorry, didn't read the other answers first...</description>
      <pubDate>Wed, 31 Jul 2024 09:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-script-api-can-i-work-with-story-filter-by-using-scripting/qaa-p/13778122#M4839162</guid>
      <dc:creator>stefan_dufter</dc:creator>
      <dc:date>2024-07-31T09:05:51Z</dc:date>
    </item>
  </channel>
</rss>

