<?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: What is the use of Script Parameters in QMC? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-is-the-use-of-Script-Parameters-in-QMC/m-p/1249064#M395593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Hector Garcia. This is very useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 May 2017 17:11:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-09T17:11:08Z</dc:date>
    <item>
      <title>What is the use of Script Parameters in QMC?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-the-use-of-Script-Parameters-in-QMC/m-p/1249062#M395591</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;What is the use of Script Parameters in QMC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select a field (Say Financial year and it has 3 values 2001,2002 and 2003) by using the option "open document". Does the server create 3 new source document at the time of reload?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When can we use Parameter name and value. Any use case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do not copy paste the description from the manual. I did not understand from that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karthick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 23:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-the-use-of-Script-Parameters-in-QMC/m-p/1249062#M395591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-09T23:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: What is the use of Script Parameters in QMC?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-the-use-of-Script-Parameters-in-QMC/m-p/1249063#M395592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let's say that you have a qvw to be reloaded and need to create several copies of the same document with different set of data.&amp;nbsp; For example you need to have one document with data between date1 and date 2&amp;nbsp; and other with the data between data 3 and data 4...etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you have to define a variable that allows you to loop between the&amp;nbsp; data ranges. For example:&lt;/P&gt;&lt;P&gt;for p=3 to 6&lt;/P&gt;&lt;P&gt;let ini=$(p);&lt;/P&gt;&lt;P&gt;let fin=$(ini)+5;&lt;/P&gt;&lt;P&gt;let vMinDate= Num(Monthstart(addmonths(today(1),-$(fin))));&lt;/P&gt;&lt;P&gt;let vMaxDate= Num (floor((MonthEnd(addmonths(today(1),-$(ini))))));&lt;/P&gt;&lt;P&gt;let vMinDateString=date($(vMinDate),'YYYYMM');&lt;/P&gt;&lt;P&gt;let vMaxDateString=date($(vMaxDate),'YYYYMM');&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;your path (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in the QMC you put in the parameter name the name of the variable p&lt;/P&gt;&lt;P&gt;an in the parameter value you put 3-6 or 3;4;5;6.&lt;/P&gt;&lt;P&gt;Make sure you create a way to differentiate the name of the distributed documents &lt;/P&gt;&lt;P&gt;for example %SourceDocumentName% _ %DocumentField,Min% _ %DocumentField,max%, if you do not do this you will overwrite the same document &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Hope this help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-the-use-of-Script-Parameters-in-QMC/m-p/1249063#M395592</guid>
      <dc:creator>hectorgarcia</dc:creator>
      <dc:date>2017-04-25T13:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: What is the use of Script Parameters in QMC?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-the-use-of-Script-Parameters-in-QMC/m-p/1249064#M395593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Hector Garcia. This is very useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 17:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-the-use-of-Script-Parameters-in-QMC/m-p/1249064#M395593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-09T17:11:08Z</dc:date>
    </item>
  </channel>
</rss>

