<?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: Recursive Data Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295435#M1321939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are some examples here on the forum on how to call a web service using macros. You can also use the script load from URL method if the service supports GET parameters. There are some examples here as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One issue that comes up is parsing the returned XML. The QV script xml parser does not support strings as input, only files (last time I checked). So you have two alternatives I know of:&lt;/P&gt;&lt;P&gt;1. Write the returned XML to a file and load using the script support. You can do the writing with an FSO object in the macro. Script STORE doesn't work because it wants to create CSV format which is not proper XML. &lt;/P&gt;&lt;P&gt;2. Parse it yourself using string functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2013 07:31:24 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2013-01-22T07:31:24Z</dc:date>
    <item>
      <title>Recursive Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295426#M1321928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a load process which makes a SOAP call (currently via a macro using xmlhttp.open "POST") to retrieve XML data. The macro then kicks off a reload of the document. It's working well, except the SOAP call limits my data retrieval to a maximum of 100 items at a time. If the XML has a value in an element that we shall for purposes of this discussion call "NextID", then I need to pass that ID back to another SOAP request, and continue retrieving data until NextID comes back null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I did so far:&lt;/P&gt;&lt;P&gt;1) OnOpen trigger sets a cycle count variable to 1 and vNextID variable to nothing then calls the macro.&lt;/P&gt;&lt;P&gt;2) Macro makes initial SOAP call and reloads doc. If the cycle count is 1, it sends no special next ID (defaults to beginning of data).&lt;/P&gt;&lt;P&gt;3) Load script sets vNextID variable to whatever the last NextID was in the XML (with a peek).&lt;/P&gt;&lt;P&gt;4) I have an OnPostReload trigger set to run the same macro but it never re-runs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions of how to handle this? I can't figure out how to get the macro/load to keep rerunning until there is no more data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also concerned about comments I've seen on the QV Community that macros do not run in server mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently on v.10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help!? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;Sue&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295426#M1321928</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295427#M1321930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe OnPostReload cannot run a macro in the server environment, but I can't find the doc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another approach might be to do the looping thing in the vbs module and call it once as a function. So in your load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD DoSoapCall() as x AUTOGENERATE 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * FROM soapout.xml;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in your module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Function DoSoapCall&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Make SOAP calls, looping through 100 recs at a time and write all output to file "soapout.xml"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DoSoapCall = "whatever"&amp;nbsp; ' could be count of records or whatever.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;End Function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 04:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295427#M1321930</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-12-13T04:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295428#M1321932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome idea, Rob. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime, I kept playing with it and got it to work by putting a "call x" in the sub x macro. The macro then checks the variable updated at the end of the reload to see whether it should keep going. Loops continuously until it hits that "all done" flag...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sue&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 14:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295428#M1321932</guid>
      <dc:creator />
      <dc:date>2011-12-13T14:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295429#M1321933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;P.S., based on the behavior I was getting, I don't think the "ActiveDocument.DoReload" in the macro triggers the OnPostReload action. If I would manually reload, the action was triggered but not via the macro's doing the reload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 14:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295429#M1321933</guid>
      <dc:creator />
      <dc:date>2011-12-13T14:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295430#M1321934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, Rob. I hope you're still out there... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using your idea and it's working great in devel. But when I deploy it to QEMC (v.10), it looks like QlikView is not able to use FSO to write out the XML file. I'm guessing that QEMC doesn't have access to the File System Object (unless there's some setting someplace???).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FileName = "Try3.xml"&lt;/P&gt;&lt;P&gt;set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;set s = fso.CreateTextFile(FileName, True)&lt;/P&gt;&lt;P&gt;s.writeline(xmlhttp.responseText)&lt;/P&gt;&lt;P&gt;s.Close()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to get the data from the SOAP response into a file???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 22:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295430#M1321934</guid>
      <dc:creator />
      <dc:date>2012-01-17T22:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295431#M1321935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to set the equivalent of "Allow System Access" in QEMC to allow the CreateObject call to work on server reloads. The setting in QEMC is "Allow unsafe macro execution on server" in System, Setup, Qlikview Servers, Security.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 01:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295431#M1321935</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-01-18T01:40:14Z</dc:date>
    </item>
    <item>
      <title>Recursive Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295432#M1321936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK YOU so much Rob!!! You're a life saver!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 14:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295432#M1321936</guid>
      <dc:creator />
      <dc:date>2012-01-19T14:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295433#M1321937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome. I take mine with cream &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 16:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295433#M1321937</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-01-19T16:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295434#M1321938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem because I have a SOAP web service that sent me five parameters and returns the information in an xml, I need to know is how I can do to send the parameters and return me xml file by QlikView using macros, read the information and to use&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 17:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295434#M1321938</guid>
      <dc:creator>omarlq20</dc:creator>
      <dc:date>2013-01-17T17:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Data Load</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295435#M1321939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are some examples here on the forum on how to call a web service using macros. You can also use the script load from URL method if the service supports GET parameters. There are some examples here as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One issue that comes up is parsing the returned XML. The QV script xml parser does not support strings as input, only files (last time I checked). So you have two alternatives I know of:&lt;/P&gt;&lt;P&gt;1. Write the returned XML to a file and load using the script support. You can do the writing with an FSO object in the macro. Script STORE doesn't work because it wants to create CSV format which is not proper XML. &lt;/P&gt;&lt;P&gt;2. Parse it yourself using string functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 07:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-Data-Load/m-p/295435#M1321939</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-01-22T07:31:24Z</dc:date>
    </item>
  </channel>
</rss>

