<?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 Store Variable (only) to text file?  (for cURL XML Query) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Store-Variable-only-to-text-file-for-cURL-XML-Query/m-p/244777#M711813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might repost this with a more holistic subject line, but here's my immediate question and then what I'm trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to write out a headerless text file from a variable?&lt;/P&gt;&lt;P&gt;Inline loads STORE'd to a text file contain a header.&amp;nbsp; And the header has a character limit, so I can't just put my variable on the header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overall, I'm trying to interface with a cloud service that has a picky Web-based API.&amp;nbsp; So, I'm using cURL to pass in an XML query.&amp;nbsp; To the best of my knowledge, the XML query is too big to pass directly into the cURL command line I'm using, so I'm passing it through a file.&amp;nbsp; This works fine.&amp;nbsp; But, the API only recognizes a one-line XML query (same query, just without the nice linefeeds and indentions), hence the reason I can't use a text file with a header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next hurdle is that the cloud service has a 1000-row limit, which is not a huge problem, because I can specify my row range in the XML query.&amp;nbsp; Currently, I would need to overestimate the number of rows coming back, and have a query set up for each potential 1000-row blocks of results.&amp;nbsp; But, this is inefficient and sloppy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, it would be awesome if I could increment the row range in QlikView, populate out an incremented query to the XML query text file and then re-run the cURL command.&amp;nbsp; That way, I could have QV watch the result sets coming back, and if they're a full 1000 rows, it'll increment and request the next 1000, or quit if there are fewer than 1000, indicating the end of the table.&amp;nbsp; But, this requires being able to dynamically generate the XML query in QV and write it out to a single-line text file, for cURL to pick up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;DJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2011 22:45:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-26T22:45:49Z</dc:date>
    <item>
      <title>Store Variable (only) to text file?  (for cURL XML Query)</title>
      <link>https://community.qlik.com/t5/QlikView/Store-Variable-only-to-text-file-for-cURL-XML-Query/m-p/244777#M711813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might repost this with a more holistic subject line, but here's my immediate question and then what I'm trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to write out a headerless text file from a variable?&lt;/P&gt;&lt;P&gt;Inline loads STORE'd to a text file contain a header.&amp;nbsp; And the header has a character limit, so I can't just put my variable on the header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overall, I'm trying to interface with a cloud service that has a picky Web-based API.&amp;nbsp; So, I'm using cURL to pass in an XML query.&amp;nbsp; To the best of my knowledge, the XML query is too big to pass directly into the cURL command line I'm using, so I'm passing it through a file.&amp;nbsp; This works fine.&amp;nbsp; But, the API only recognizes a one-line XML query (same query, just without the nice linefeeds and indentions), hence the reason I can't use a text file with a header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next hurdle is that the cloud service has a 1000-row limit, which is not a huge problem, because I can specify my row range in the XML query.&amp;nbsp; Currently, I would need to overestimate the number of rows coming back, and have a query set up for each potential 1000-row blocks of results.&amp;nbsp; But, this is inefficient and sloppy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, it would be awesome if I could increment the row range in QlikView, populate out an incremented query to the XML query text file and then re-run the cURL command.&amp;nbsp; That way, I could have QV watch the result sets coming back, and if they're a full 1000 rows, it'll increment and request the next 1000, or quit if there are fewer than 1000, indicating the end of the table.&amp;nbsp; But, this requires being able to dynamically generate the XML query in QV and write it out to a single-line text file, for cURL to pick up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;DJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 22:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-Variable-only-to-text-file-for-cURL-XML-Query/m-p/244777#M711813</guid>
      <dc:creator />
      <dc:date>2011-05-26T22:45:49Z</dc:date>
    </item>
  </channel>
</rss>

