<?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 custom connect to with variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/custom-connect-to-with-variable/m-p/1243965#M860507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im using the REST API to connect to twitter and download tweets relating to a key word. the keyword can change therefore I've set it to be a variable. when i use the variable inside the URL it doesn't use the calculated value (in this case Traffic), instead it uses the only expression leading to a failure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ive tried using several variable i.e&lt;/P&gt;&lt;P&gt;URL1 = pre keyword&lt;/P&gt;&lt;P&gt;URL2 = post keyword&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;URL = URL1 &amp;amp; vKeyword &amp;amp; URL2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i do this if use set i get the same URL as described above.&lt;/P&gt;&lt;P&gt;when i use set i get a script error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grateful of any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vKeyword = '=only({&amp;lt; KeyWord_id = {1} &amp;gt;} KeyWord)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; "Provider=QvRestConnector.exe;url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.qlik.com/" rel="nofollow" target="_blank"&gt;https://api.twitter.com/1.1/search/tweets.json?q%2&lt;/A&gt;&lt;SPAN style="color: #ff0000;"&gt;$(vKeyword)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;geocode%250.724489%%2C-3.783319%%2C100mi;timeout=30;method=GET;autoDetectResponseType=true;keyGenerationStrategy=0;useWindowsAuthentication=false;useCertificate=No;certificateStoreLocation=CurrentUser;certificateStoreName=My;queryHeaders=Authorization%2OAuth oauth_consumer_key%%2%%3DC0sePOBbQ8bYdC8r4Smg%%3,oauth_signature_method%%2%%3HMAC-SHA1%%3,oauth_timestamp%%2%%31484232435%%3,oauth_nonce%%2%%3651918257%%3,oauth_version%%2%%31.0%%3,oauth_token%%2%%33295659582-eFPWd4R0cRAUkZqgGBhUl3l1jAMdzPtQsA8Sg0A%%3,oauth_signature%%2%%30lkAd4jam2cqhjRs0Rcp%%%%2BYHY%%%%2FOA%%%%3D%%3%1Host%2api.twitter.com%1X-Target-URL%2&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://api.twitter.com;PaginationType=None;XUserId=JUFfaGFMObYeVJFMNLMSDcEHIF;XPassword=cLMGYSUEQLYGXZdOPTcIWSIGEKaCGRRNPLMETSEGIC;" rel="nofollow" target="_blank"&gt;https://api.twitter.com;PaginationType=None;XUserId=JUFfaGFMObYeVJFMNLMSDcEHIF;XPassword=cLMGYSUEQLYGXZdOPTcIWSIGEKaCGRRNPLMETSEGIC;&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>samuel_brierley</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>custom connect to with variable</title>
      <link>https://community.qlik.com/t5/QlikView/custom-connect-to-with-variable/m-p/1243965#M860507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im using the REST API to connect to twitter and download tweets relating to a key word. the keyword can change therefore I've set it to be a variable. when i use the variable inside the URL it doesn't use the calculated value (in this case Traffic), instead it uses the only expression leading to a failure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ive tried using several variable i.e&lt;/P&gt;&lt;P&gt;URL1 = pre keyword&lt;/P&gt;&lt;P&gt;URL2 = post keyword&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;URL = URL1 &amp;amp; vKeyword &amp;amp; URL2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i do this if use set i get the same URL as described above.&lt;/P&gt;&lt;P&gt;when i use set i get a script error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grateful of any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vKeyword = '=only({&amp;lt; KeyWord_id = {1} &amp;gt;} KeyWord)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; "Provider=QvRestConnector.exe;url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.qlik.com/" rel="nofollow" target="_blank"&gt;https://api.twitter.com/1.1/search/tweets.json?q%2&lt;/A&gt;&lt;SPAN style="color: #ff0000;"&gt;$(vKeyword)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;geocode%250.724489%%2C-3.783319%%2C100mi;timeout=30;method=GET;autoDetectResponseType=true;keyGenerationStrategy=0;useWindowsAuthentication=false;useCertificate=No;certificateStoreLocation=CurrentUser;certificateStoreName=My;queryHeaders=Authorization%2OAuth oauth_consumer_key%%2%%3DC0sePOBbQ8bYdC8r4Smg%%3,oauth_signature_method%%2%%3HMAC-SHA1%%3,oauth_timestamp%%2%%31484232435%%3,oauth_nonce%%2%%3651918257%%3,oauth_version%%2%%31.0%%3,oauth_token%%2%%33295659582-eFPWd4R0cRAUkZqgGBhUl3l1jAMdzPtQsA8Sg0A%%3,oauth_signature%%2%%30lkAd4jam2cqhjRs0Rcp%%%%2BYHY%%%%2FOA%%%%3D%%3%1Host%2api.twitter.com%1X-Target-URL%2&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://api.twitter.com;PaginationType=None;XUserId=JUFfaGFMObYeVJFMNLMSDcEHIF;XPassword=cLMGYSUEQLYGXZdOPTcIWSIGEKaCGRRNPLMETSEGIC;" rel="nofollow" target="_blank"&gt;https://api.twitter.com;PaginationType=None;XUserId=JUFfaGFMObYeVJFMNLMSDcEHIF;XPassword=cLMGYSUEQLYGXZdOPTcIWSIGEKaCGRRNPLMETSEGIC;&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/custom-connect-to-with-variable/m-p/1243965#M860507</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: custom connect to with variable</title>
      <link>https://community.qlik.com/t5/QlikView/custom-connect-to-with-variable/m-p/1243966#M860508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the same issue, any idea&amp;nbsp; what to do ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 09:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/custom-connect-to-with-variable/m-p/1243966#M860508</guid>
      <dc:creator>ni_avoss</dc:creator>
      <dc:date>2017-10-11T09:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: custom connect to with variable</title>
      <link>https://community.qlik.com/t5/QlikView/custom-connect-to-with-variable/m-p/1243967#M860509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, found out: make sure to have no word wrap or no other special characters in your connect string. everything needs to be in one line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 11:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/custom-connect-to-with-variable/m-p/1243967#M860509</guid>
      <dc:creator>ni_avoss</dc:creator>
      <dc:date>2017-10-11T11:12:48Z</dc:date>
    </item>
  </channel>
</rss>

