<?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: Data Analyzer URL Parameter in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/13797826#M4841941</link>
    <description>&lt;P&gt;For anyone that need to pass a parameter into data analyzer for a dimension that has a hierarchy, here is an example of the encoding that need to be passed as f0xVal (2 values at different levels of a hierarchy:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%5B%22[dimension].[H1].%2526[value1]%22,%22[dimension].[H1].%2526[value2]%22,%5D&lt;/P&gt;&lt;P&gt;H1: this is the ID of your hierarchy&lt;/P&gt;&lt;P&gt;%5B = [&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;%5D = ]&lt;/P&gt;&lt;P&gt;%22 = "&lt;/P&gt;&lt;P&gt;%2526 = &amp;amp; (has to be encoded twice)&lt;/P&gt;&lt;P&gt;To implement this, what I did was to extract values from a story filter or an input control into an array and replaced the ampersand by %2526 and then concatenated into a single string to be passed into f0xVal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2024 20:39:21 GMT</pubDate>
    <dc:creator>ekov514</dc:creator>
    <dc:date>2024-08-27T20:39:21Z</dc:date>
    <item>
      <title>Data Analyzer URL Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaq-p/12742452</link>
      <description>&lt;P&gt;Hi SAC experts,&lt;/P&gt;
  &lt;P&gt;I would like to know if it's possible to pass filters to Data Analyzer from an Analytical Application. I'm using the NavigationUtils.openDataAnalyzer API but without success.The model is the same in AA and DA but believe doesn't matter.&lt;/P&gt;
  &lt;P&gt;I know how to pass filter values from AA to a Story and AA to AA but even simple parameter such as embed mode as been difficult. &lt;/P&gt;
  &lt;P&gt;Below one example of my code, I have tried only 1st parameter, only 2nd parameter and both parameters. &lt;/P&gt;
  &lt;P&gt;NavigationUtils.openDataAnalyzer('&amp;amp;/dz/9102B879DBA6EE5C878C23D8A9E21EF',undefined,[UrlParameter.create("Country/Region","Germany"),UrlParameter.create("mode","embed")]);&lt;/P&gt;
  &lt;P&gt;Also, is there any documentation of URL API for Data Analyzer? like this one for Story &lt;A href="https://help.sap.com/viewer/a4406994704e4af5a8559a640b496468/release/en-US/4818f7d4ffc241d6ac646e4974e7ba6c.html" target="_blank"&gt;SAP Analytics Cloud URL API&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;The behavior I want to replicate is the one we get when we open a Data Analyzer from a table in the new Optimized Design Experience Story, where the filter values are passed to the Data Analyzer (Image attached).&lt;/P&gt;
  &lt;P&gt;Thank you for your time.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 15:47:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaq-p/12742452</guid>
      <dc:creator>Rui_Varela</dc:creator>
      <dc:date>2023-06-15T15:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data Analyzer URL Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/12742453#M4782683</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;ruivarela&lt;/SPAN&gt;&lt;/P&gt;I haven't tested the url parameters ( for filtering  ) but to just open the data analyzer from analytic application/stories 2.0 on button click, you can use the below . This is based on the same model my story was.&lt;PRE&gt;&lt;CODE&gt;NavigationUtils.openDataAnalyzer("&amp;amp;/dz/?dataSourceName=t.2Q.Ct504e17qcsmrfon929702t8a4o:Ct504e17qcsmrfon929702t8a4o&amp;amp;systemType=MODEL");&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2178516-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/2178517-image.png" /&gt;&lt;/P&gt;&lt;P&gt;On Button click&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2178518-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps !!&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 17:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/12742453#M4782683</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-06-15T17:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data Analyzer URL Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/12742454#M4782684</link>
      <description>&lt;P&gt;Thank you for your comment Nikhil,&lt;/P&gt;&lt;P&gt;The Data Analyzer was previously build because I want to sort and show the Dimensions in a specific way different from table layout. The table is hidden to the user tat's why I need to pass filter values from AA to DA.&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 13:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/12742454#M4782684</guid>
      <dc:creator>Rui_Varela</dc:creator>
      <dc:date>2023-06-16T13:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data Analyzer URL Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/12742455#M4782685</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;ruivarela&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have been trying to pass url parameters but without success to Data Analyzer. I have tried the below but it does not work.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;NavigationUtils.openDataAnalyzer(undefined,"&amp;amp;/dz/?dataSourceName=t.2Q.Ct504e17qcsmrfon929702t8a4o:Ct504e17qcsmrfon929702t8a4o&amp;amp;systemType=MODEL",[UrlParameter.create("f01Dim","Date"),UrlParameter.create("f01Val","20231")]);
&lt;/CODE&gt;&lt;/PRE&gt;Please revert if you manage to pass the parameters successfully.Nikhil</description>
      <pubDate>Fri, 16 Jun 2023 13:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/12742455#M4782685</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-06-16T13:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data Analyzer URL Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/12742456#M4782686</link>
      <description>&lt;P&gt;Have you tried adding the Op parameter?&lt;/P&gt;&lt;P&gt;Also, i'm not sure your connection and data source parameters are correct. Try updating your call with this but ensure that the first parameter is the name of your connection and the second parameter is the name of your model:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;NavigationUtils.openDataAnalyzer("ConnName","ModelName",[UrlParameter.create("f01Dim","Date"),UrlParameter.create("f01Val","20231"),UrlParameter.create("f01Op","in")],true);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Sep 2023 17:15:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/12742456#M4782686</guid>
      <dc:creator>chickman1972</dc:creator>
      <dc:date>2023-09-11T17:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data Analyzer URL Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/13601578#M4817640</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;There are two approaches that can get this done:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;1.- Opening the Data Analyzer without creating a Data Analyzer story ( the best way &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;NavigationUtils.openDataAnalyzer("&amp;amp;/dz/?dataSourceName=".concat(Table_1.getDataSource().getInfo().modelId).concat("&amp;amp;systemType=MODEL&amp;amp;f01Dim=P_ACCT&amp;amp;f01Val=CS_CONTROLLING_STRUCTURE"));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Above line makes it dynamic no matter which source you are using, only replace Table_1 for your table on the story to pass the datasource. The first part of the parameter string I got it from another contributor :&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;"&amp;amp;/dz/?dataSourceName=".concat(Table_1.getDataSource().getInfo().modelId).concat("&amp;amp;systemType=MODEL"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;then you can see you can concat the parameters passing same way as you do for stories:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;amp;f01Dim=P_ACCT&amp;amp;f01Val=CS_CONTROLLING_STRUCTURE"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;2.- Opening a Data Analyzer already created story passing parameters to it :&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var urlParameters = ArrayUtils.create(Type.UrlParameter);&lt;/P&gt;&lt;P&gt;urlParameters.push( UrlParameter.create("f01Dim", "VERSION"));&lt;BR /&gt;urlParameters.push( UrlParameter.create("f01Val", "public.2024_PLAN_ISR_1"));&lt;/P&gt;&lt;P&gt;NavigationUtils.openStory( "CB3A9F013593C6D688AC99F1A244ECA5", "a31b3cd2-f023-4b22-ac46-3e90b81c8e7a", urlParameters, true);&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;CB3A9F013593C6D688AC99F1A244ECA5 = story ID&lt;/P&gt;&lt;P&gt;a31b3cd2-f023-4b22-ac46-3e90b81c8e7a = page ID&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can get both above by hitting Ctrl+Space when writing the sintax line and the system will help you select the Data Analyzer story and get both Ids automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2024 10:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/13601578#M4817640</guid>
      <dc:creator>KoSAC</dc:creator>
      <dc:date>2024-02-11T10:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Data Analyzer URL Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/13797826#M4841941</link>
      <description>&lt;P&gt;For anyone that need to pass a parameter into data analyzer for a dimension that has a hierarchy, here is an example of the encoding that need to be passed as f0xVal (2 values at different levels of a hierarchy:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%5B%22[dimension].[H1].%2526[value1]%22,%22[dimension].[H1].%2526[value2]%22,%5D&lt;/P&gt;&lt;P&gt;H1: this is the ID of your hierarchy&lt;/P&gt;&lt;P&gt;%5B = [&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;%5D = ]&lt;/P&gt;&lt;P&gt;%22 = "&lt;/P&gt;&lt;P&gt;%2526 = &amp;amp; (has to be encoded twice)&lt;/P&gt;&lt;P&gt;To implement this, what I did was to extract values from a story filter or an input control into an array and replaced the ampersand by %2526 and then concatenated into a single string to be passed into f0xVal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 20:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/13797826#M4841941</guid>
      <dc:creator>ekov514</dc:creator>
      <dc:date>2024-08-27T20:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data Analyzer URL Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/13807715#M4843183</link>
      <description>Hello colleagues, I have managed to add 2 values "EMEA" and "EMEA North" for one dimension like this (with help of html encoding for double quotations and square brackets), if it helps anyone. So it's: NavigationUtils.openDataAnalyzer("&amp;amp;/dz/?dataSourceName=".concat(Table_1.getDataSource().getInfo().modelId).concat("&amp;amp;systemType=MODEL&amp;amp;f01Dim=Geo_Level_1_Region_Description&amp;amp;f01Val=%5B%22EMEA%22,%22EMEA%20North%22%5D&amp;amp;f0p=in"));</description>
      <pubDate>Mon, 26 Aug 2024 19:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-analyzer-url-parameter/qaa-p/13807715#M4843183</guid>
      <dc:creator>Simtcha</dc:creator>
      <dc:date>2024-08-26T19:27:07Z</dc:date>
    </item>
  </channel>
</rss>

