<?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: Parameter and empty value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Parameter-and-empty-value/m-p/350278#M1170443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;I tried it. I have the same results: already DB0. I think, I have the opposite problem, I have in condition the empty DB - parameter from command line not set it.&lt;/P&gt;&lt;P&gt;Do you have any idea?&lt;/P&gt;&lt;P&gt;O.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Jul 2012 06:36:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-14T06:36:06Z</dc:date>
    <item>
      <title>Parameter and empty value</title>
      <link>https://community.qlik.com/t5/QlikView/Parameter-and-empty-value/m-p/350276#M1170441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm QlikView begginer. I can reload QVW with many different databases. I can set the database by command line parameter:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;"c:\Program Files\QlikView\qv.exe" /r /vDB=DB1 j:\QLIKVIEW\DEVELOPMENT\TEST.qvw&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case the parameter is'nt set (by reload from Desktop), I can use the deafult database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this line before connect to database:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;IF (Len(Trim(DB))=0 or IsNull(DB)) THEN &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp; SET SetDB = 'DB0';&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ELSE&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp; SET SetDB = $(DB);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ENDIF;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I connect to &lt;EM&gt;SetDB&lt;/EM&gt; database.&lt;/P&gt;&lt;P&gt;But... SetDB is already set as DB0, so script don't take the value from parameter DB. Do you see some mistake? Can you help me?&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Olda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 14:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameter-and-empty-value/m-p/350276#M1170441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-13T14:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter and empty value</title>
      <link>https://community.qlik.com/t5/QlikView/Parameter-and-empty-value/m-p/350277#M1170442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Its because previously assigned values is stored in that variable&lt;/P&gt;&lt;P&gt;set variable for the DB after&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;&lt;EM&gt;IF (Len(Trim(DB))=0 or IsNull(DB)) THEN&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp; SET SetDB = 'DB0';&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;&lt;EM&gt;ELSE&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp; SET SetDB = $(DB);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;&lt;EM&gt;ENDIF;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SET DB=;//or LET DB = Null();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 14:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameter-and-empty-value/m-p/350277#M1170442</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-07-13T14:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter and empty value</title>
      <link>https://community.qlik.com/t5/QlikView/Parameter-and-empty-value/m-p/350278#M1170443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;I tried it. I have the same results: already DB0. I think, I have the opposite problem, I have in condition the empty DB - parameter from command line not set it.&lt;/P&gt;&lt;P&gt;Do you have any idea?&lt;/P&gt;&lt;P&gt;O.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2012 06:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameter-and-empty-value/m-p/350278#M1170443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-14T06:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter and empty value</title>
      <link>https://community.qlik.com/t5/QlikView/Parameter-and-empty-value/m-p/350279#M1170444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I found many possibilities how to set the parameter. Finally I has a correct script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;LET SetDB=NULL()&lt;/SPAN&gt;;&lt;/STRONG&gt; // delete old value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;&lt;EM&gt;IF (Len(Trim(DB))=0 or IsNull(DB)) THEN&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;LET&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt; SetDB = 'DB0';&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;&lt;EM&gt;ELSE&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;LET&lt;/SPAN&gt;&lt;EM&gt; SetDB = $(DB);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;&lt;EM&gt;ENDIF;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;LET DB=NULL();&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp; //delete old value&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;VERY IMPORTANT!&lt;/STRONG&gt; I have to add new parameter DB into &lt;SPAN style="text-decoration: underline;"&gt;Settings - Variable Overview!&lt;/SPAN&gt; My parameter did'nt exist before.&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 21:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameter-and-empty-value/m-p/350279#M1170444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-16T21:19:57Z</dc:date>
    </item>
  </channel>
</rss>

