<?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: Binary inside IF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954716#M328199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks Saravana&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The problem was that the sentence Binary, in the script, must be the first.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I did it with a variable.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you very much,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2015 09:20:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-09T09:20:35Z</dc:date>
    <item>
      <title>Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954708#M328191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying reload a QVW file with the Binary sentence. But I need change the qvw file depending on the value of a variable.&lt;/P&gt;&lt;P&gt;I tried many things but I didn't success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script I have is soemthing like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF vR=0 THEN&lt;/P&gt;&lt;P&gt; Binary [\\PATH\QLIKVIEW.qvw];&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; Binary [\\PATH\QLIKVIEW2.qvw];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run this script I have this error message:&lt;/P&gt;&lt;P&gt;Unknown Sentence&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Binary [\\PATH\QLIKVIEW.qvw]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If I run the script without the IF condition goes well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I tried include the sentence in a text file and call it by: $(Must_Include=..\Scripts\Script1.txt);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This didn't go well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I hope someone knows what I'm doing wrong. Is not valid &lt;SPAN lang="en"&gt;writing poor English&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN lang="en"&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN lang="en"&gt;Fernando&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 17:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954708#M328191</guid>
      <dc:creator />
      <dc:date>2015-11-06T17:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954709#M328192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think Binary Load must be the first sentence in the script, and only one is allowed in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't think in a way to have 2 different binarys in the same script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 17:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954709#M328192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-06T17:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954710#M328193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you - instead of setting vR to 0 or something else - define a variable with the qlikview file name to load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Binary [\\PATH\$(vFile)];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 17:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954710#M328193</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-06T17:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954711#M328194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you passing the value for vR from publisher?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 17:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954711#M328194</guid>
      <dc:creator>prabhu0505</dc:creator>
      <dc:date>2015-11-06T17:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954712#M328195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also look into the solution suggested by Maxgro here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/793507"&gt;Re: BINARY load with dynamic file name&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This involves another QVW, so in server environment, you may need to first reload the first QVW with your vR passed to generate the include file, then reload the QVW with the include statement to execute the chosen binary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 17:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954712#M328195</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-06T17:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954713#M328196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my knowledge, the &lt;STRONG&gt;binary statement must be the first statement&lt;/STRONG&gt; in the LOAD script. so you cannot use it by preceding any other statement. This is applicable for the hidden script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems you are not using &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;any hidden script in the application. My suggestion is create an another variable something like,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable Name -&amp;gt; vFileName&lt;/P&gt;&lt;P&gt;Definition -&amp;gt; =if(vR=0, 'File1','File2')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the binary load as (should be very first statement)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Binary [\\Path\$(vFileName)];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Nov 2015 12:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954713#M328196</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-11-07T12:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954714#M328197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gabriel&lt;/P&gt;&lt;P&gt;I didn't remember that the senetnce Binary in the script must be the first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did it with a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 09:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954714#M328197</guid>
      <dc:creator />
      <dc:date>2015-11-09T09:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954715#M328198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swuehl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I did it with a variable.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you very much,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 09:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954715#M328198</guid>
      <dc:creator />
      <dc:date>2015-11-09T09:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954716#M328199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks Saravana&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The problem was that the sentence Binary, in the script, must be the first.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I did it with a variable.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you very much,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 09:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954716#M328199</guid>
      <dc:creator />
      <dc:date>2015-11-09T09:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954717#M328200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks Tamil&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I didn't remember that the sentence Binary in the script must be the first.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I did it with a variable as you told me.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you very much,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 09:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954717#M328200</guid>
      <dc:creator />
      <dc:date>2015-11-09T09:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954718#M328201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was anyone able to get the variable used in a binary working?&amp;nbsp; I keeping getting an error. &lt;/P&gt;&lt;P&gt;The value for my variable is:&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ComputerName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()='ABC','v:\models\modelRevenue.qvw','v:\models\modelRevenue.qvw') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My binary statement: &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;binary&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vbinarypath)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If I change my variable to just be the file path/name it works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 13:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954718#M328201</guid>
      <dc:creator />
      <dc:date>2016-02-23T13:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954719#M328202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you run your script in debug mode, to what statement is your first line with the dollar sign expansion expanded?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the error message you get?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 20:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954719#M328202</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-23T20:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954720#M328203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I click Debug the following error immediately comes up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cannot open file 'W:\applications\00.DirectPublished\Revenue\=if(ComputerName()='ABC','v:\models\modelRevenue.qvw','v:\models\modelRevenue.qvw')'&lt;/P&gt;&lt;P&gt;binary =if(ComputerName()='ABC','v:\models\modelRevenue.qvw','v:\models\modelRevenue.qvw')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 17:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954720#M328203</guid>
      <dc:creator />
      <dc:date>2016-02-24T17:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954721#M328204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like your variable is expanded to the expression, not to the evaluated value.&lt;/P&gt;&lt;P&gt;(and I think that's how it's done when you call the variable from the script context)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe Fernando can clarify how he's done the implementation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 17:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/954721#M328204</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-24T17:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Binary inside IF</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/1749828#M453526</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The above is not working. I am creating a variable from the variable overview and using that in the binary load statement. But, the variable expression does not get evaluated and in Binary load statement, it gives me the error because it is not taking the expression as a string instead of it's evaluated value.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 06:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-inside-IF/m-p/1749828#M453526</guid>
      <dc:creator>swat_agar</dc:creator>
      <dc:date>2020-10-06T06:30:17Z</dc:date>
    </item>
  </channel>
</rss>

