<?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: How to avoid using DocumentTitle() and use parameter in the sub-routine to execute the piece of code? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-avoid-using-DocumentTitle-and-use-parameter-in-the-sub/m-p/599471#M221909</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;Not sure if I've understood you correctly, but is this it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB Calendar(zSuppress)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[CALENDAR]: &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period as AsOfPeriod&lt;/P&gt;&lt;P&gt;Resident [Calendar];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if zSuppress = 0 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Concatenate([CALENDAR])&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Period,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 'Dummy' as Check&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resident [CALENDAR];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then call it using &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;CA&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LL Calendar(0) or C&lt;/SPAN&gt;ALL Calendar(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2014 09:58:41 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2014-03-20T09:58:41Z</dc:date>
    <item>
      <title>How to avoid using DocumentTitle() and use parameter in the sub-routine to execute the piece of code?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-using-DocumentTitle-and-use-parameter-in-the-sub/m-p/599469#M221907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I avoid using the DocumentTitle() in the below sub-routine? I know we can pass the parameter in sub-routine but is it possible to pass the parameter to execute the piece of code? Please suggest!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB Calendar&lt;/P&gt;&lt;P&gt; [CALENDAR]: &lt;BR /&gt; LOAD &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period as AsOfPeriod&lt;BR /&gt; Resident [Calendar];&lt;/P&gt;&lt;P&gt; &lt;BR /&gt; if DocumentTitle()='XYZ' then&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; Concatenate([CALENDAR])&lt;BR /&gt;&amp;nbsp; LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Period,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 'Dummy' as Check&lt;BR /&gt;&amp;nbsp; Resident [CALENDAR];&lt;BR /&gt; &lt;BR /&gt; end if &lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 07:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-using-DocumentTitle-and-use-parameter-in-the-sub/m-p/599469#M221907</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2014-03-20T07:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid using DocumentTitle() and use parameter in the sub-routine to execute the piece of code?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-using-DocumentTitle-and-use-parameter-in-the-sub/m-p/599470#M221908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any update on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 09:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-using-DocumentTitle-and-use-parameter-in-the-sub/m-p/599470#M221908</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2014-03-20T09:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid using DocumentTitle() and use parameter in the sub-routine to execute the piece of code?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-using-DocumentTitle-and-use-parameter-in-the-sub/m-p/599471#M221909</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;Not sure if I've understood you correctly, but is this it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB Calendar(zSuppress)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[CALENDAR]: &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period as AsOfPeriod&lt;/P&gt;&lt;P&gt;Resident [Calendar];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if zSuppress = 0 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Concatenate([CALENDAR])&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Period,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 'Dummy' as Check&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resident [CALENDAR];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then call it using &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;CA&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LL Calendar(0) or C&lt;/SPAN&gt;ALL Calendar(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 09:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-using-DocumentTitle-and-use-parameter-in-the-sub/m-p/599471#M221909</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-03-20T09:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid using DocumentTitle() and use parameter in the sub-routine to execute the piece of code?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-using-DocumentTitle-and-use-parameter-in-the-sub/m-p/599472#M221910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellant Jonathan! Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me one more example by passing the 2 or more parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 12:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-using-DocumentTitle-and-use-parameter-in-the-sub/m-p/599472#M221910</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2014-03-20T12:04:57Z</dc:date>
    </item>
  </channel>
</rss>

