<?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 Set date in script using input box in sheet in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192313#M502976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if this is a daft question but I just can't seem to get it working.&lt;/P&gt;&lt;P&gt;In my script I want to connect to a database table and get all the data for a specific day. I want the user to be able to set the date in the interface. So I have an input box in which I have put a variable called &lt;STRONG&gt;StartDate&lt;/STRONG&gt;, but how can I get this into the load script?&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Mar 2010 13:27:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-24T13:27:12Z</dc:date>
    <item>
      <title>Set date in script using input box in sheet</title>
      <link>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192313#M502976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if this is a daft question but I just can't seem to get it working.&lt;/P&gt;&lt;P&gt;In my script I want to connect to a database table and get all the data for a specific day. I want the user to be able to set the date in the interface. So I have an input box in which I have put a variable called &lt;STRONG&gt;StartDate&lt;/STRONG&gt;, but how can I get this into the load script?&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 13:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192313#M502976</guid>
      <dc:creator />
      <dc:date>2010-03-24T13:27:12Z</dc:date>
    </item>
    <item>
      <title>Set date in script using input box in sheet</title>
      <link>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192314#M502977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in load script you can use &lt;B&gt;input&lt;/B&gt; function.&lt;/P&gt;&lt;P style="font-style: italic"&gt;For example:&lt;BR /&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;let vDate=Input('Enter Date', 'Input box');&lt;BR /&gt;&lt;BR /&gt; SELECT *&lt;BR /&gt;FROM myDB where date=$(vDate);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 14:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192314#M502977</guid>
      <dc:creator />
      <dc:date>2010-03-24T14:06:23Z</dc:date>
    </item>
    <item>
      <title>Set date in script using input box in sheet</title>
      <link>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192315#M502978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alex, that's cool, and I got it to work.&lt;/P&gt;&lt;P&gt;But I'd still like to take the date from an on-screen input box. Any ideas on that one?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 16:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192315#M502978</guid>
      <dc:creator />
      <dc:date>2010-03-24T16:46:23Z</dc:date>
    </item>
    <item>
      <title>Set date in script using input box in sheet</title>
      <link>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192316#M502979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tony,&lt;BR /&gt;try this script:&lt;/P&gt;&lt;P&gt;SELECT *&lt;BR /&gt;FROM _DBTABLE_&lt;BR /&gt;WHERE _date_=$(StartDate);&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 17:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192316#M502979</guid>
      <dc:creator />
      <dc:date>2010-03-24T17:29:15Z</dc:date>
    </item>
    <item>
      <title>Set date in script using input box in sheet</title>
      <link>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192317#M502980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fantastic! who'd have thought it was as easy as that??!? I've been trying all this GetContent and SetContent stuff all day.... &lt;IMG alt="Surprise" src="http://community.qlik.com/emoticons/emotion-3.gif" /&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 18:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192317#M502980</guid>
      <dc:creator />
      <dc:date>2010-03-24T18:15:36Z</dc:date>
    </item>
    <item>
      <title>Set date in script using input box in sheet</title>
      <link>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192318#M502981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a similar problem in which i require input from a user (to add a date) this date is then used for the script reload.&lt;/P&gt;&lt;P&gt;I got the the input box to work but i get following error:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Field not found - &amp;lt;ReportStartDate&amp;gt;&lt;/P&gt;&lt;P&gt;My script is below&lt;/P&gt;&lt;P&gt;------------&lt;/P&gt;&lt;P&gt;let rDate=Input('Enter Report Date (format DD/MM/YYYY', 'Input box');&lt;BR /&gt;LOAD [Sort Date],&lt;BR /&gt; &lt;B&gt;ReportStartDate&lt;/B&gt; - [Sort Date] as [Days Outstanding],&lt;BR /&gt; DATTYP_ID,&lt;BR /&gt; TRX_DAT,&lt;BR /&gt; TRX_ID AS [Transaction ID]&lt;BR /&gt;FROM data\TRANSACTION_DATES.qvd(qvd)&lt;BR /&gt;Where ReportStartDate=$(rDate);&lt;/P&gt;&lt;P&gt;-----------------&lt;/P&gt;&lt;P&gt;Any help would be great.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 19:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192318#M502981</guid>
      <dc:creator />
      <dc:date>2010-07-14T19:03:59Z</dc:date>
    </item>
    <item>
      <title>Set date in script using input box in sheet</title>
      <link>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192319#M502982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;Is &lt;STRONG&gt;ReportStartDate&lt;/STRONG&gt; a field in your qvd file? Because the error message you are getting would suggest to me that it is not. If it is not a field then you might want to try using $(rDate) in its place directly. Or, alternately, set ReportStartDate = $(rDate) ealier in the script.&lt;/P&gt;&lt;P&gt;Either way, you may also need to look at inter record functions to see if you can do the calculation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;ReportStartDate - [Sort Date]&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;as part of the script. I don't know much about inter record functions but search the help files and you might find something useful.&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 09:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-date-in-script-using-input-box-in-sheet/m-p/192319#M502982</guid>
      <dc:creator />
      <dc:date>2010-07-15T09:27:13Z</dc:date>
    </item>
  </channel>
</rss>

