<?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 User input and servers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/User-input-and-servers/m-p/409111#M152127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a number of reports where the user is asked to input start and end dates. We have moved those on to our server, but quickly found that the reports did not refresh - when faced with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Let vStartDate = Input('Enter Start Date (MM/DD/YYYY)', 'Input required');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The server just hangs. It was enough to default this to the previous month's start, but it does take away some flexibility from the user.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I was wondering if there was a way to implement something like this (metacode)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vStartDate =Input('Enter StartDate')&lt;/P&gt;&lt;P&gt;Wait (30 seconds)&lt;/P&gt;&lt;P&gt;If vStartDate is null then vStartdate = MonthStart(today(),-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;This gives the user a chance to respond but also accomodates a server environment. Not sure if this functionality exists &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;in QV though. Does anyone know?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2012 14:49:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-12T14:49:33Z</dc:date>
    <item>
      <title>User input and servers</title>
      <link>https://community.qlik.com/t5/QlikView/User-input-and-servers/m-p/409111#M152127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a number of reports where the user is asked to input start and end dates. We have moved those on to our server, but quickly found that the reports did not refresh - when faced with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Let vStartDate = Input('Enter Start Date (MM/DD/YYYY)', 'Input required');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The server just hangs. It was enough to default this to the previous month's start, but it does take away some flexibility from the user.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I was wondering if there was a way to implement something like this (metacode)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vStartDate =Input('Enter StartDate')&lt;/P&gt;&lt;P&gt;Wait (30 seconds)&lt;/P&gt;&lt;P&gt;If vStartDate is null then vStartdate = MonthStart(today(),-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;This gives the user a chance to respond but also accomodates a server environment. Not sure if this functionality exists &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;in QV though. Does anyone know?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 14:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-input-and-servers/m-p/409111#M152127</guid>
      <dc:creator />
      <dc:date>2012-10-12T14:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: User input and servers</title>
      <link>https://community.qlik.com/t5/QlikView/User-input-and-servers/m-p/409112#M152128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're using Publisher you can add a parameter to the reload task. In the qlikview document you can use this parameter to decide if you have to show the inputbox or not. If you do reloads from the command line (or batch files) you can use the /v option to pass a variable for the same purpose. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 14:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-input-and-servers/m-p/409112#M152128</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-12T14:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: User input and servers</title>
      <link>https://community.qlik.com/t5/QlikView/User-input-and-servers/m-p/409113#M152129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, that almost helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was very easy to just default the date within the script. So my question is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I pass parameters from the command line, what happens with the input boxes? Does the /v option fill in the input boxes, or do I still have to remove them from my script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 15:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-input-and-servers/m-p/409113#M152129</guid>
      <dc:creator />
      <dc:date>2012-10-12T15:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: User input and servers</title>
      <link>https://community.qlik.com/t5/QlikView/User-input-and-servers/m-p/409114#M152130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have to remove them.You check for the parameter and if it exist you don't ask for input, if it doesn't exist you do ask for input. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF (Len(Trim(vStartDate))=0 or IsNull(vStartDate)) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vStartDate = Input('Enter Start Date (MM/DD/YYYY)', 'Input required');&lt;/P&gt;&lt;P&gt;ENDIF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the end of the script after you're done using vStartDate reset it so it has no value next time you reload:&lt;/P&gt;&lt;P&gt;LET vStartDate = Null();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 16:25:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-input-and-servers/m-p/409114#M152130</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-12T16:25:41Z</dc:date>
    </item>
  </channel>
</rss>

