<?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 Loading Data via button? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-Data-via-button/m-p/328790#M710719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wouldn't it be better to have a selection when the user opens the document so all data is available but only the selected dates are shown? I mean, it may take a lot of time to continuously reload the document depending on user selections when you can have a similar result using bookmarks or something similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2011 11:04:10 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-06-29T11:04:10Z</dc:date>
    <item>
      <title>Loading Data via button?</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Data-via-button/m-p/328789#M710718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try to write a macro that loads the script with variable data. but I don't have any idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user should click the button, after that choose to different dates and all data between these dates will be loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;by starting the document all data between the 1.1.2011 and 31.12.2011 will be loaded, but the user should be able to use another period by clicking the button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 10:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Data-via-button/m-p/328789#M710718</guid>
      <dc:creator />
      <dc:date>2011-06-29T10:33:43Z</dc:date>
    </item>
    <item>
      <title>Loading Data via button?</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Data-via-button/m-p/328790#M710719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wouldn't it be better to have a selection when the user opens the document so all data is available but only the selected dates are shown? I mean, it may take a lot of time to continuously reload the document depending on user selections when you can have a similar result using bookmarks or something similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 11:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Data-via-button/m-p/328790#M710719</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-06-29T11:04:10Z</dc:date>
    </item>
    <item>
      <title>Loading Data via button?</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Data-via-button/m-p/328791#M710720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for that advise. that seems to be a good solution, but I have another problem with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by starting the document, the user should input two dates, after that the script should load the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the script it looks like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV_RESOURCES:&lt;/P&gt;&lt;P&gt;sql select * from resources where schedule_date &amp;lt;= max and schedule_date &amp;gt;=min;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;min and max are variables, but how can I fill them with the data from the user?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 11:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Data-via-button/m-p/328791#M710720</guid>
      <dc:creator />
      <dc:date>2011-06-29T11:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data via button?</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Data-via-button/m-p/328792#M710721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use something like the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;// Preceding anything else in the script&lt;/P&gt;&lt;P&gt;LET vMin = Input('Input the min value', 'Warning');&lt;/P&gt;&lt;P&gt;LET vMax = Input('Input the max value', 'Warning');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Field, Value&lt;/P&gt;&lt;P&gt;A, 1&lt;/P&gt;&lt;P&gt;B, 2&lt;/P&gt;&lt;P&gt;C, 3&lt;/P&gt;&lt;P&gt;D, 4&lt;/P&gt;&lt;P&gt;E, 5&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;WHERE Value &amp;gt;= $(vMin) and Value &amp;lt;= $(vMax);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every time you reload, you will be prompted for a min and max values and they will be stored in variables and used in the WHERE clause on the LOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It won't work in a server enviroment since the users cannot reload the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 11:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Data-via-button/m-p/328792#M710721</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-06-29T11:37:04Z</dc:date>
    </item>
  </channel>
</rss>

