<?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 Load data from a macro or button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-data-from-a-macro-or-button/m-p/251110#M1185254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vlad, thats working exactly as envisioned. Thank you very much, greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Oct 2011 11:47:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-16T11:47:45Z</dc:date>
    <item>
      <title>Load data from a macro or button</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-a-macro-or-button/m-p/251106#M1185248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im looking for a way fo trigger a load of data from a user interaction. It will be a different data load from the initial load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario is this: Data load initially is Sales data, this data is then passed out to another tool that carries out some further analysis and then returns a result.&lt;/P&gt;&lt;P&gt;I wish to then load this result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The button, triggers the external app to carry out its analysis .. then loads the new data set back in to populate a graph .. etc ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any support gratefully received.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 19:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-a-macro-or-button/m-p/251106#M1185248</guid>
      <dc:creator />
      <dc:date>2011-10-14T19:06:56Z</dc:date>
    </item>
    <item>
      <title>Load data from a macro or button</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-a-macro-or-button/m-p/251107#M1185249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can accomplish this with a Partial Reload. You can read more about the syntax ("add" and "replace") in the help file. I believe there's also a function "ispartialreload" that you can use to exclude your partial reload logic from the main data load. Then you can trigger this with a button if you want. If users are opening the application in server, you would have to create a partial reload task, enable EDX, and then trigger the EDX with the button. If they're opening it in QV Desktop, it's easier since reloads are permitted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 19:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-a-macro-or-button/m-p/251107#M1185249</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2011-10-14T19:56:24Z</dc:date>
    </item>
    <item>
      <title>Load data from a macro or button</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-a-macro-or-button/m-p/251108#M1185250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vlad, thanks for the reply, being new Im not sure of the scripting context .. &lt;/P&gt;&lt;P&gt;could you let me see an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently initial load does the following - excuse the syntax on the SQL - we are working on a unique application adapter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Integration:&lt;/P&gt;&lt;P&gt;LOAD * ;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM view_rows?eid=38&amp;amp;max_rows=30000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store Integration into c:\Data\Insurance\Transactions_qv.txt (txt); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above file is then consumed by the external application...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I keep the script below distinct from the initial load.. and make it only run on the button?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validate:&lt;/P&gt;&lt;P&gt;LOAD "Entity ID"as [Entity ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Entity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Attribute = '','Context','Content') as [Business Rule Type],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Attribute,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Rule Name" as [Rule Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Threshold,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Result,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Passing Fraction" as [Pasing Fraction],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Failing Rows" as [Failing Rows],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Passing Rows" as [Passing Rows],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Passing Aggregate" as [Passing Aggregate],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Failing Aggregate" as [Failing Aggregate],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date("Date Created",'DD/MM/YYYY') as [Date Created];&lt;/P&gt;&lt;P&gt;SQL SELECT "Entity ID",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Entity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Attribute,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Rule Name",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Threshold,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Result,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Passing Fraction",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Failing Rows",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Passing Rows",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Passing Aggregate",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Failing Aggregate",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Date Created",&lt;/P&gt;&lt;P&gt;FROM show_all_br?pid=39;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Oct 2011 11:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-a-macro-or-button/m-p/251108#M1185250</guid>
      <dc:creator />
      <dc:date>2011-10-15T11:08:44Z</dc:date>
    </item>
    <item>
      <title>Load data from a macro or button</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-a-macro-or-button/m-p/251109#M1185252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Integration:&lt;/P&gt;&lt;P&gt;LOAD * ;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM view_rows?eid=38&amp;amp;max_rows=30000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store Integration into c:\Data\Insurance\Transactions_qv.txt (txt); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ispartialreload() THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ErrorMode = 0;&lt;/P&gt;&lt;P&gt;DROP TABLE Validate;&lt;/P&gt;&lt;P&gt;SET ErrorMode = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validate:&lt;/P&gt;&lt;P&gt;ADD LOAD "Entity ID"as [Entity ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Entity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Attribute = '','Context','Content') as [Business Rule Type],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Attribute,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Rule Name" as [Rule Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Threshold,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Result,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Passing Fraction" as [Pasing Fraction],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Failing Rows" as [Failing Rows],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Passing Rows" as [Passing Rows],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Passing Aggregate" as [Passing Aggregate],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Failing Aggregate" as [Failing Aggregate],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date("Date Created",'DD/MM/YYYY') as [Date Created];&lt;/P&gt;&lt;P&gt;SQL SELECT "Entity ID",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Entity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Attribute,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Rule Name",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Threshold,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Result,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Passing Fraction",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Failing Rows",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Passing Rows",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Passing Aggregate",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Failing Aggregate",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Date Created",&lt;/P&gt;&lt;P&gt;FROM show_all_br?pid=39;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The enclosing IF statement is necessary to make sure that the Validate table is only read during a partial reload and not during a regular reload. To execute a Partial Reload, you can create a new button, add an External Action of Reload, and check the "Partial" checkbox. Again, keep in mind that this will only work in QV Desktop. To execute a partial reload when the application is open in QVS, you will need to use EDX triggers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you may find it easier to create a separate "validation" application that will use this file and avoid the partial reload confusion altogether.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Oct 2011 00:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-a-macro-or-button/m-p/251109#M1185252</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2011-10-16T00:16:07Z</dc:date>
    </item>
    <item>
      <title>Load data from a macro or button</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-a-macro-or-button/m-p/251110#M1185254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vlad, thats working exactly as envisioned. Thank you very much, greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Oct 2011 11:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-a-macro-or-button/m-p/251110#M1185254</guid>
      <dc:creator />
      <dc:date>2011-10-16T11:47:45Z</dc:date>
    </item>
  </channel>
</rss>

