<?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 command to be constructed dynamically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/BINARY-command-to-be-constructed-dynamically/m-p/1749834#M453527</link>
    <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating the variable using the variable-overview but it is not evaluating the expression at runtime. In my binary load statement, when I am using that variable; it is not using the evaluated value rather the expression as a string. Could you please suggest a workaround here?&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2020 06:52:03 GMT</pubDate>
    <dc:creator>swat_agar</dc:creator>
    <dc:date>2020-10-06T06:52:03Z</dc:date>
    <item>
      <title>BINARY command to be constructed dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/BINARY-command-to-be-constructed-dynamically/m-p/1276990#M400930</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;this is a follow-up to a previous thread that I had:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a report to be run locally that uses several tables, I want to load all those tables into an inbetween_app and then load it all BINARY. There are two databases, so there can be two different BINARY commands.&lt;/P&gt;&lt;P&gt;Currently, I have a dropdown_box on the GUI where the user has to select the BINARY command prior to starting the script, that's just fine. The only thing is, the user sees the entire statement in the box and has to select it, but only a very small part of the path to the inbetween_app is different - only the plant_ name - so I'd like to just have the user select one plant, and the statement would be constructed automatically.&lt;/P&gt;&lt;P&gt;I can do that using a LET statement in the script - but the BINARY command has to be the very first in the script, so I'd have to nest the two.&lt;/P&gt;&lt;P&gt;I think it is possible in QlikView to have like two dollar-sign-expansions nested into each other. That's where I need a little help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My LET_statement currently looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET v_Binary_command_v3 = '\\rgb1app202\production\01_qvd\qvd\versanddatensuche_' &amp;amp; '$(v_Werk)' &amp;amp; '_pre.qvw';&lt;/P&gt;&lt;P&gt;(v_Werk is the name of one of the plants, the user selects this on the GUI)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I'll now have to somehow integrate this LET statement into the BINARY statement itself.&lt;/P&gt;&lt;P&gt;That's just where I am with this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help here!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 10:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BINARY-command-to-be-constructed-dynamically/m-p/1276990#M400930</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2017-01-05T10:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY command to be constructed dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/BINARY-command-to-be-constructed-dynamically/m-p/1276991#M400931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you don't need to create the variable within the script per LET statement - it's sufficient to create these variable within the variable-overview and they will be persistent in the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 11:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BINARY-command-to-be-constructed-dynamically/m-p/1276991#M400931</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-05T11:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY command to be constructed dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/BINARY-command-to-be-constructed-dynamically/m-p/1276992#M400932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like Marcus said you can set your v_Werk in the GUI in the app. This can be done either via an InputBox or via actions and buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The the binary statement could look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BINARY [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;\\rgb1app202\production\01_qvd\qvd\versanddatensuche_$(v_Werk)_pre.qvw];&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could even do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;BINARY $(v_Path1)&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(v_Werk)$(v_Path2];&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;So you could then have full control of the other two parts of the path from the GUI too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 11:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BINARY-command-to-be-constructed-dynamically/m-p/1276992#M400932</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-05T11:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY command to be constructed dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/BINARY-command-to-be-constructed-dynamically/m-p/1749834#M453527</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating the variable using the variable-overview but it is not evaluating the expression at runtime. In my binary load statement, when I am using that variable; it is not using the evaluated value rather the expression as a string. Could you please suggest a workaround here?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 06:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BINARY-command-to-be-constructed-dynamically/m-p/1749834#M453527</guid>
      <dc:creator>swat_agar</dc:creator>
      <dc:date>2020-10-06T06:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY command to be constructed dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/BINARY-command-to-be-constructed-dynamically/m-p/1749916#M453531</link>
      <description>&lt;P&gt;Probably the only workaround is to use two variables - one with the expression and one with the fixed value. This could be done manually within the variable-overview or with a macro triggered by an OnChange of the variable or maybe an OnPostReload/OnOpen whereby I doubt that these logic fits very well in your binary-load approach - means you may need another in-between step in your workflow which may from an overall point of view rather disturbing as be helpful.&lt;/P&gt;&lt;P&gt;Nevertheless you could try if you could adapt something from the below code - which is a macro which runs through an inputbox and writes their expression-results as fixed values within a variable-twin:&lt;/P&gt;&lt;P&gt;sub TransferVariableValuesFromCalculatedVariablesToFixedVariables&lt;/P&gt;&lt;P&gt;set table = ActiveDocument.GetSheetObject( "IB03" )&lt;/P&gt;&lt;P&gt;for RowIter = 0 to table.GetRowCount-1&lt;BR /&gt;for ColIter =0 to table.GetColumnCount-1&lt;BR /&gt;set cell = table.GetCell(RowIter,ColIter)&lt;BR /&gt;if ColIter = 0 then&lt;BR /&gt;vVariable = cell.Text &amp;amp; ".v"&lt;BR /&gt;end if&lt;BR /&gt;if ColIter = 2 then&lt;BR /&gt;vVariableValue = cell.Text&lt;BR /&gt;end if&lt;BR /&gt;next&lt;BR /&gt;set v = ActiveDocument.Variables(vVariable)&lt;BR /&gt;v.SetContent vVariableValue, true&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 10:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BINARY-command-to-be-constructed-dynamically/m-p/1749916#M453531</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-10-06T10:47:26Z</dc:date>
    </item>
  </channel>
</rss>

