<?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>topic How to use App Integration API when fields have spaces in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-use-App-Integration-API-when-fields-have-spaces/m-p/5469#M91</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using QlikSense 3.2 and trying to implement app chaining by building dynamic URLs using the App Integration API. My goal is to be able to pass current selection criteria from a "master" app to a "detail" app. I'm using the Sense Navigation + Actions extension and the &lt;A _jive_internal="true" data-containerid="2146" data-containertype="14" data-objectid="14610" data-objecttype="102" href="https://community.qlik.com/docs/DOC-14610" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Emulating document chaining in Qlik Sense&lt;/A&gt; paper to model my solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this solution working except for when the Field whose selections I'm trying to pass has spaces in its name (e.g. Field 1 vs Field1). I build the URL in a sheet expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This URL works:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;ServerName&amp;gt;/sense/app/&amp;lt;AppID&amp;gt;/sheet/&amp;lt;SheetID&amp;gt;/state/analysis/select/&lt;/SPAN&gt;&lt;STRONG&gt;Field1&lt;/STRONG&gt;/Value1;Value 2;Value3/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this one does not: &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;ServerName&amp;gt;/sense/app/&amp;lt;AppID&amp;gt;/sheet/&amp;lt;SheetID&amp;gt;/state/analysis/select/[&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Field 1]&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;/Value1;Value 2;Value3/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I tried removing the square brackets ("[ ]") from the not-working URL, but then my sheet expression would not return a value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;My field's selected values (Value1, Value 2, and Value3) are all text values, not numbers presented as text.&amp;nbsp; For example, they're global regions like China, Japan, Mid East - Africa, etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any ideas on how to make this work when the field name has spaces in it?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2018 14:50:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-23T14:50:52Z</dc:date>
    <item>
      <title>How to use App Integration API when fields have spaces</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-use-App-Integration-API-when-fields-have-spaces/m-p/5469#M91</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using QlikSense 3.2 and trying to implement app chaining by building dynamic URLs using the App Integration API. My goal is to be able to pass current selection criteria from a "master" app to a "detail" app. I'm using the Sense Navigation + Actions extension and the &lt;A _jive_internal="true" data-containerid="2146" data-containertype="14" data-objectid="14610" data-objecttype="102" href="https://community.qlik.com/docs/DOC-14610" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Emulating document chaining in Qlik Sense&lt;/A&gt; paper to model my solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this solution working except for when the Field whose selections I'm trying to pass has spaces in its name (e.g. Field 1 vs Field1). I build the URL in a sheet expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This URL works:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;ServerName&amp;gt;/sense/app/&amp;lt;AppID&amp;gt;/sheet/&amp;lt;SheetID&amp;gt;/state/analysis/select/&lt;/SPAN&gt;&lt;STRONG&gt;Field1&lt;/STRONG&gt;/Value1;Value 2;Value3/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this one does not: &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;ServerName&amp;gt;/sense/app/&amp;lt;AppID&amp;gt;/sheet/&amp;lt;SheetID&amp;gt;/state/analysis/select/[&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Field 1]&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;/Value1;Value 2;Value3/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I tried removing the square brackets ("[ ]") from the not-working URL, but then my sheet expression would not return a value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;My field's selected values (Value1, Value 2, and Value3) are all text values, not numbers presented as text.&amp;nbsp; For example, they're global regions like China, Japan, Mid East - Africa, etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any ideas on how to make this work when the field name has spaces in it?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 14:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-use-App-Integration-API-when-fields-have-spaces/m-p/5469#M91</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-23T14:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use App Integration API when fields have spaces</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-use-App-Integration-API-when-fields-have-spaces/m-p/5470#M92</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to solve this myself. To build my selected values segments I was using variable with this expression for each filter field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;vFieldSelections&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;If(GetSelectedCount($1)=0,Null(),'select/' &amp;amp; '$1/' &amp;amp; Concat(distinct $1,';') &amp;amp; '/')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a field had spaces in its name, I had to enclose it in brackets when passing it into the variable or else the variable would not resolve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vFieldSelections([Field 1])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in doing so, the string "[Field 1]" would be placed in the app integration URL, which is apparently, bad syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the variable's formula to this, and everything started working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Len(GetCurrentSelections()) = 0, Null(), 'select/' &amp;amp; GetCurrentSelections('/select/', '/', ';') &amp;amp; '/')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetCurrentSelections returns a string of all current selections in a format where you can find various delimiters. Check it out in the help file. It bypasses the issue I was having with using the square brackets to get selections for field names like "Field 1". Also, it simplifies your implementation, because you only have to reference the variable once for the entire URL rather than one time for each field that may have selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 15:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-use-App-Integration-API-when-fields-have-spaces/m-p/5470#M92</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-23T15:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use App Integration API when fields have spaces</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-use-App-Integration-API-when-fields-have-spaces/m-p/5471#M93</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/244085"&gt;bbainsslalom&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should just work, try to URL encode by replacing the space with `&lt;SPAN style="color: #ce9178;"&gt;%20&lt;/SPAN&gt;`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it browser specific?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 07:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-use-App-Integration-API-when-fields-have-spaces/m-p/5471#M93</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2018-01-24T07:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use App Integration API when fields have spaces</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-use-App-Integration-API-when-fields-have-spaces/m-p/1727559#M13015</link>
      <description>&lt;P&gt;Did you get an answer for your query ? I have the exact same issue and not able to resolve that.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 07:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-use-App-Integration-API-when-fields-have-spaces/m-p/1727559#M13015</guid>
      <dc:creator>neha_sharma1275</dc:creator>
      <dc:date>2020-07-14T07:56:42Z</dc:date>
    </item>
  </channel>
</rss>

