<?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 Reading an &amp;quot;Inputparameter&amp;quot; Array in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reading-an-quot-Inputparameter-quot-Array/m-p/153985#M30771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;this Code works, but it's not nice - how can i do it better?&lt;/P&gt;&lt;P&gt;// This will be later set by the Publisher&lt;BR /&gt;Set Inputparameter = '20090930','20090831','20081231';&lt;BR /&gt;//&lt;BR /&gt;&lt;BR /&gt;set i = 0;&lt;BR /&gt;&lt;BR /&gt;For each v IN $(Inputparameter)&lt;BR /&gt; if i= 0 then&lt;BR /&gt; Set RevaluationDate = $(v);&lt;BR /&gt; end if&lt;BR /&gt; if i= 1 then&lt;BR /&gt; Set PrevMonthDate = $(v);&lt;BR /&gt; end if&lt;BR /&gt; if i= 2 then&lt;BR /&gt; Set EndYearDate = $(v);&lt;BR /&gt; end if&lt;BR /&gt; Let i = i + 1;&lt;BR /&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2011 14:20:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-10T14:20:35Z</dc:date>
    <item>
      <title>Reading an "Inputparameter" Array</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-an-quot-Inputparameter-quot-Array/m-p/153985#M30771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;this Code works, but it's not nice - how can i do it better?&lt;/P&gt;&lt;P&gt;// This will be later set by the Publisher&lt;BR /&gt;Set Inputparameter = '20090930','20090831','20081231';&lt;BR /&gt;//&lt;BR /&gt;&lt;BR /&gt;set i = 0;&lt;BR /&gt;&lt;BR /&gt;For each v IN $(Inputparameter)&lt;BR /&gt; if i= 0 then&lt;BR /&gt; Set RevaluationDate = $(v);&lt;BR /&gt; end if&lt;BR /&gt; if i= 1 then&lt;BR /&gt; Set PrevMonthDate = $(v);&lt;BR /&gt; end if&lt;BR /&gt; if i= 2 then&lt;BR /&gt; Set EndYearDate = $(v);&lt;BR /&gt; end if&lt;BR /&gt; Let i = i + 1;&lt;BR /&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 14:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-an-quot-Inputparameter-quot-Array/m-p/153985#M30771</guid>
      <dc:creator />
      <dc:date>2011-03-10T14:20:35Z</dc:date>
    </item>
    <item>
      <title>Reading an "Inputparameter" Array</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-an-quot-Inputparameter-quot-Array/m-p/153986#M30772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can have multiple input parameters, both from the command line and from Publisher, without the need in parsing a single parameter...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 15:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-an-quot-Inputparameter-quot-Array/m-p/153986#M30772</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-03-10T15:11:15Z</dc:date>
    </item>
    <item>
      <title>Reading an "Inputparameter" Array</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-an-quot-Inputparameter-quot-Array/m-p/153987#M30773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ole,&lt;/P&gt;&lt;P&gt;thanks fpr your replay! But this doesn't work! Under "Script Parameters" it is written:&lt;/P&gt;&lt;P&gt;A separate document will be created for each value. To use a sequence of data enter the start and stop values separated with a "-". Separate single values or sequences with a ";".If you select a field from the document all values in the field will be used.&lt;/P&gt;&lt;P&gt;But I need all parameters in on Projekt. The code I wrote work fine - but I think, there will be a better practice for that!&lt;/P&gt;&lt;P&gt;regards Volker&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 16:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-an-quot-Inputparameter-quot-Array/m-p/153987#M30773</guid>
      <dc:creator />
      <dc:date>2011-03-10T16:24:16Z</dc:date>
    </item>
    <item>
      <title>Reading an "Inputparameter" Array</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-an-quot-Inputparameter-quot-Array/m-p/153988#M30774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg's reponse may be more pertinent to your specific scenario, but as to the general question of parsing an array:&lt;/P&gt;&lt;P&gt;Set Inputparameter = '20090930','20090831','20081231';&lt;BR /&gt;LET RevaluationDate = pick(1,$(Inputparameter));&lt;BR /&gt;LET PrevMonthDate = pick(2,$(Inputparameter));&lt;BR /&gt;LET EndYearDate = pick(3,$(Inputparameter));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 05:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-an-quot-Inputparameter-quot-Array/m-p/153988#M30774</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-03-11T05:11:04Z</dc:date>
    </item>
  </channel>
</rss>

