<?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 Re: Append variable in Path String in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Append-variable-in-Path-String/m-p/1132812#M19890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assumed your script runs fine with the hard coded values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked that the dollar sign expansion replaces your variables with text values in the same format as the hard coded values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe add a date format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vtemp = Date(Today(1),'DD-MM-YYYY');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vtempP = Date(Today(1)-1&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,'DD-MM-YYYY'&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vprofileId = 'XXXXXXXX';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 14:59:55 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-05-24T14:59:55Z</dc:date>
    <item>
      <title>Append variable in Path String</title>
      <link>https://community.qlik.com/t5/App-Development/Append-variable-in-Path-String/m-p/1132811#M19889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using QV Source for fetching Google Analytics data with the help of Qlik Sense.&lt;/P&gt;&lt;P&gt;Task is to fetch the data from yesterday to today on words . So I have created two Variables :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vtemp = Date(timestamp(now(1)));&lt;/P&gt;&lt;P&gt;let vtempP = Date(timestamp(now(1))-1);&lt;/P&gt;&lt;P&gt;let vprofileId = 'XXXXXXXX';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;After Running the script in Browser I copied it and pasted it to script editor of Qlik sense and trying to execute it&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After Running the script in Browser I copied it and pasted it to script editor of Qlik sense and trying to execute it&lt;/P&gt;&lt;P&gt;GoogleAnalyticsConnectorV3_DataFromTemplateQuery:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim_country as Country,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; metric_visits as metric_visits&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:5555/QVSource/GoogleAnalyticsConnectorV3/?table=DataFromTemplateQuery&amp;amp;profileId=105153571&amp;amp;prebuiltQuery=dimensions%3dga%253acountry%26metrics%3dga%253avisits&amp;amp;startDate=01-01-2016&amp;amp;endDate=31-01-2016&amp;amp;appID=" rel="nofollow" target="_blank"&gt;http://localhost:5555/QVSource/GoogleAnalyticsConnectorV3/?table=DataFromTemplateQuery&amp;amp;profileId=105153571&amp;amp;prebuiltQuery=dimensions%3dga%253acountry%26metrics%3dga%253avisits&amp;amp;startDate=01-01-2016&amp;amp;endDate=31-01-2016&amp;amp;appID=&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(qvx);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then replaced the static value to variables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GoogleAnalyticsConnectorV3_DataFromTemplateQuery:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim_country as Country,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; metric_visits as metric_visits&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:5555/QVSource/GoogleAnalyticsConnectorV3/?table=DataFromTemplateQuery&amp;amp;profileId=$(vprofileId)&amp;amp;prebuiltQuery=dimensions%3dga%253acountry%26metrics%3dga%253avisits&amp;amp;startDate=$(vtempP)&amp;amp;endDate=$(vtemp)&amp;amp;appID=" rel="nofollow" target="_blank"&gt;http://localhost:5555/QVSource/GoogleAnalyticsConnectorV3/?table=DataFromTemplateQuery&amp;amp;profileId=$(vprofileId)&amp;amp;prebuiltQuery=dimensions%3dga%253acountry%26metrics%3dga%253avisits&amp;amp;startDate=$(vtempP)&amp;amp;endDate=$(vtemp)&amp;amp;appID=&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(qvx);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is giving me error that data has been not loaded. Can you please tell me what exactly I am missing or doing wrong ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 10:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Append-variable-in-Path-String/m-p/1132811#M19889</guid>
      <dc:creator />
      <dc:date>2016-05-24T10:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Append variable in Path String</title>
      <link>https://community.qlik.com/t5/App-Development/Append-variable-in-Path-String/m-p/1132812#M19890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assumed your script runs fine with the hard coded values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked that the dollar sign expansion replaces your variables with text values in the same format as the hard coded values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe add a date format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vtemp = Date(Today(1),'DD-MM-YYYY');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vtempP = Date(Today(1)-1&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,'DD-MM-YYYY'&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vprofileId = 'XXXXXXXX';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 14:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Append-variable-in-Path-String/m-p/1132812#M19890</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-24T14:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Append variable in Path String</title>
      <link>https://community.qlik.com/t5/App-Development/Append-variable-in-Path-String/m-p/1132813#M19891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;Thanks for the help ,It is working fine , what I notice If i use your idea and put a variable of Today's date , It works fine now but later or next day it shows me error like data has been not loaded. Can you please tell me how to fetch data from a particular date to today , as I am looking to create an application which fetch data until today. But I don't wana do all the stuff , like go to QV source every time , select query there ,copy code and paste it here, If this I need to do , this is not a real time application. &lt;/P&gt;&lt;P&gt;Please help me as this is an urgent requirement. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 May 2016 08:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Append-variable-in-Path-String/m-p/1132813#M19891</guid>
      <dc:creator />
      <dc:date>2016-05-28T08:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Append variable in Path String</title>
      <link>https://community.qlik.com/t5/App-Development/Append-variable-in-Path-String/m-p/1132814#M19892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do it manually and then compare the code with the variables being expanded (you should see this in the script editor debug window), do you see any differences?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you get a specific error message when running the code multiple times?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe there is a limitation from the data source provider in the number of times you can call the API.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 May 2016 13:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Append-variable-in-Path-String/m-p/1132814#M19892</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-28T13:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Append variable in Path String</title>
      <link>https://community.qlik.com/t5/App-Development/Append-variable-in-Path-String/m-p/1132815#M19893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, your suggestion are really helpful. What i Noticed , we must run first QVSource and then run authenticate after that if we run the script it loads the data from Google Analytics Source. So Now the question is&amp;nbsp; Do I need to run always QVSource manually or there is any way which makes qv source always run at back end&amp;nbsp; , for this time I am using a desktop application , May be on server side , If i run QVSource once so it will always run at&amp;nbsp; back end. Please correct me if I am on wrong Path.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 May 2016 16:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Append-variable-in-Path-String/m-p/1132815#M19893</guid>
      <dc:creator />
      <dc:date>2016-05-28T16:55:24Z</dc:date>
    </item>
  </channel>
</rss>

