<?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 Application script, chart onselect value passing... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sac-application-script-chart-onselect-value-passing-into-url-parameter/qaa-p/14234433#M4928264</link>
    <description>Kiran, I am glad it worked for you. Could you please close the thread by accepting the answer so that i can be helpful to others.</description>
    <pubDate>Fri, 03 Oct 2025 15:50:30 GMT</pubDate>
    <dc:creator>N1kh1l</dc:creator>
    <dc:date>2025-10-03T15:50:30Z</dc:date>
    <item>
      <title>SAC Application script, chart onselect value passing into url parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-application-script-chart-onselect-value-passing-into-url-parameter/qaq-p/14229519</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to capture the selected dimension value from a chart. This value i am trying to pass into URL parameter to child report.&amp;nbsp;&lt;BR /&gt;Value is getting passed to child report but data is not getting filtered.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created script variable "RegionFilter" both in parent report and child report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i am passign the parameter value from a Dropdown or Check box, data is getting filter in child report, but with chart it is not working.&amp;nbsp;&lt;BR /&gt;Parent report parameter passing url :-&amp;nbsp;&lt;/P&gt;&lt;P&gt;NavigationUtils.openStory("9E218282F57BE2D4EBBC6959FE0D0AB1", "a31b3cd2-f023-4b22-ac46-3e90b81c8e7a",&lt;BR /&gt;[UrlParameter.create("p_RegionFilter",CB_Country.getSelectedKeys().join("|")),UrlParameter.create("p_MaterialFilter",List_Material.getSelectedKeys().join("|"))]);&lt;/P&gt;&lt;P&gt;Child report logic to apply filter :-&lt;/P&gt;&lt;DIV&gt;RegionFilter;&lt;/DIV&gt;&lt;DIV&gt;console.log(RegionFilter);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;if (RegionFilter==="ALL") {&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;console.log(RegionFilter);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Table_1.getDataSource().removeDimensionFilter("Country");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;else if (RegionFilter!=="ALL") {&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;console.log("Chart selected value ... "+ RegionFilter);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Table_1.getDataSource().setDimensionFilter("Country",RegionFilter.split("|"));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can anyone of you please help me in this.&lt;BR /&gt;Thanks,&lt;BR /&gt;Subash&lt;/DIV&gt;</description>
      <pubDate>Sat, 27 Sep 2025 10:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-application-script-chart-onselect-value-passing-into-url-parameter/qaq-p/14229519</guid>
      <dc:creator>kiran_s611</dc:creator>
      <dc:date>2025-09-27T10:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAC Application script, chart onselect value passing...</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-application-script-chart-onselect-value-passing-into-url-parameter/qaa-p/14230487#M4927822</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/2256757"&gt;@kiran_s611&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Table_1.getDataSource().setDimensionFilter expects either a string or an array of string members as parameters. Please ensure when you are passing you are respecting the format.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When you read values from chart selection they might not be in the correct format as expected by the API. The below blog will help you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.sap.com/t5/technology-blog-posts-by-members/sac-analytic-application-reusable-script-function-for-linked-analysis/ba-p/13440856" target="_blank"&gt;https://community.sap.com/t5/technology-blog-posts-by-members/sac-analytic-application-reusable-script-function-for-linked-analysis/ba-p/13440856&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nikhil&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 11:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-application-script-chart-onselect-value-passing-into-url-parameter/qaa-p/14230487#M4927822</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2025-09-29T11:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAC Application script, chart onselect value passing...</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-application-script-chart-onselect-value-passing-into-url-parameter/qaa-p/14234357#M4928257</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/124370"&gt;@N1kh1l&lt;/a&gt;&amp;nbsp; ,&lt;BR /&gt;Thanks for your suggestion. By going through the link suggested by you i have tried with the below code, which worked for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_s611_0-1759500218430.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/322641i22DE93D30663A37E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_s611_0-1759500218430.png" alt="kiran_s611_0-1759500218430.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_s611_1-1759500243681.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/322642iFBD713D76823EA84/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_s611_1-1759500243681.png" alt="kiran_s611_1-1759500243681.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 14:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-application-script-chart-onselect-value-passing-into-url-parameter/qaa-p/14234357#M4928257</guid>
      <dc:creator>kiran_s611</dc:creator>
      <dc:date>2025-10-03T14:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAC Application script, chart onselect value passing...</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-application-script-chart-onselect-value-passing-into-url-parameter/qaa-p/14234358#M4928258</link>
      <description>Hi Nikhil</description>
      <pubDate>Fri, 03 Oct 2025 14:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-application-script-chart-onselect-value-passing-into-url-parameter/qaa-p/14234358#M4928258</guid>
      <dc:creator>kiran_s611</dc:creator>
      <dc:date>2025-10-03T14:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAC Application script, chart onselect value passing...</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-application-script-chart-onselect-value-passing-into-url-parameter/qaa-p/14234433#M4928264</link>
      <description>Kiran, I am glad it worked for you. Could you please close the thread by accepting the answer so that i can be helpful to others.</description>
      <pubDate>Fri, 03 Oct 2025 15:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-application-script-chart-onselect-value-passing-into-url-parameter/qaa-p/14234433#M4928264</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2025-10-03T15:50:30Z</dc:date>
    </item>
  </channel>
</rss>

