<?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: Call SQL or LOAD on button click in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Call-SQL-or-LOAD-on-button-click/m-p/378349#M703064</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While reloading the data if you want users to pass the dates then in that case you can use 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 _jivemacro_uid_13451089009103202" jivemacro_uid="_13451089009103202"&gt;&lt;P&gt;Input( str cue [, str caption] )&lt;/P&gt;&lt;P&gt;This function can be used in the script only and opens an input box&lt;/P&gt;&lt;P&gt;that prompts the user for a value during the script execution. The&lt;/P&gt;&lt;P&gt;parameters cue and caption are used as message and caption texts,&lt;/P&gt;&lt;P&gt;respectively. The function returns the entered value.&lt;/P&gt;&lt;P&gt;The input box function returns NULL if the dialog is cancelled,&lt;/P&gt;&lt;P&gt;closed or cannot be shown.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Input('Enter value', 'Input box') as v,&lt;/P&gt;&lt;P&gt;Recno () as r&lt;/P&gt;&lt;P&gt;autogenerate 3;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2012 09:22:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-16T09:22:49Z</dc:date>
    <item>
      <title>Call SQL or LOAD on button click</title>
      <link>https://community.qlik.com/t5/QlikView/Call-SQL-or-LOAD-on-button-click/m-p/378346#M703061</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;I have two calendar controls where users can select the date range. I need to create a button which when clicked will trigger a SQL/Load statement in QlikView everytime. Also, I need to pass the dates selected by the user on button click to the sql/load statement. Any help would really be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Load:&lt;/P&gt;&lt;P&gt;Load * &lt;/P&gt;&lt;P&gt;from file.qvd&lt;/P&gt;&lt;P&gt;where date &amp;gt;= $(vStartDate) and date &amp;lt;= $(vEndDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;RC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 06:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-SQL-or-LOAD-on-button-click/m-p/378346#M703061</guid>
      <dc:creator />
      <dc:date>2012-08-16T06:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Call SQL or LOAD on button click</title>
      <link>https://community.qlik.com/t5/QlikView/Call-SQL-or-LOAD-on-button-click/m-p/378347#M703062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not possible for users to directly trigger a reload. You may be able to achieve it by writing to a file that triggers an EDX-load. Search on this forum for other posts asking the same thing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 07:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-SQL-or-LOAD-on-button-click/m-p/378347#M703062</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-08-16T07:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Call SQL or LOAD on button click</title>
      <link>https://community.qlik.com/t5/QlikView/Call-SQL-or-LOAD-on-button-click/m-p/378348#M703063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; See the example attached. You can create a file in the same manner but it will work only locally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jason is right, the users won't be able to perform the reload from the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 07:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-SQL-or-LOAD-on-button-click/m-p/378348#M703063</guid>
      <dc:creator>daveamz</dc:creator>
      <dc:date>2012-08-16T07:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Call SQL or LOAD on button click</title>
      <link>https://community.qlik.com/t5/QlikView/Call-SQL-or-LOAD-on-button-click/m-p/378349#M703064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While reloading the data if you want users to pass the dates then in that case you can use 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 _jivemacro_uid_13451089009103202" jivemacro_uid="_13451089009103202"&gt;&lt;P&gt;Input( str cue [, str caption] )&lt;/P&gt;&lt;P&gt;This function can be used in the script only and opens an input box&lt;/P&gt;&lt;P&gt;that prompts the user for a value during the script execution. The&lt;/P&gt;&lt;P&gt;parameters cue and caption are used as message and caption texts,&lt;/P&gt;&lt;P&gt;respectively. The function returns the entered value.&lt;/P&gt;&lt;P&gt;The input box function returns NULL if the dialog is cancelled,&lt;/P&gt;&lt;P&gt;closed or cannot be shown.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Input('Enter value', 'Input box') as v,&lt;/P&gt;&lt;P&gt;Recno () as r&lt;/P&gt;&lt;P&gt;autogenerate 3;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 09:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-SQL-or-LOAD-on-button-click/m-p/378349#M703064</guid>
      <dc:creator />
      <dc:date>2012-08-16T09:22:49Z</dc:date>
    </item>
  </channel>
</rss>

