<?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: clarify how cmdln variable gets used within qvw-file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99095#M759803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/ideas/3669.pdf" title="https://community.qlik.com/ideas/3669.pdf"&gt;https://community.qlik.com/ideas/3669.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Aug 2018 10:44:04 GMT</pubDate>
    <dc:creator>BalaBhaskar_Qlik</dc:creator>
    <dc:date>2018-08-18T10:44:04Z</dc:date>
    <item>
      <title>clarify how cmdln variable gets used within qvw-file</title>
      <link>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99093#M759800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to QlikView.&amp;nbsp; I've just taken over maintenance of a big project from a now-former colleague.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to determine how a variable he's setting on the cmdln in a batch-script (using the "/v" option) get's used within the relevant qvw-file, so I can add a variable and set a different dimension similarly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see the variable defined (with a static default value) in "Variable Overview", and I see it being used in an expression in "Expression Overview" (not associated with any Sheet, so apparently it's a global variable), but, beyond that, I don't see how any value for that variable (that might be set on the cmdln) get's associated with any dimension or UI-component on the relevant Sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do see a UI-component (a search component) that set's the value of the dimension that I'm concerned with, based on a value chosen from a list of suggested values, but I don't see there any mention of the relevant variable; so, I don't see how any value set on the cmdln could get set for that dimension, though it seems to be happening somehow.&amp;nbsp; I don't see the relevant variable mentioned anywhere else, in any of the dialogs in QlikView when the relevant qvw-file is loaded into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have any code to show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, this is really a general matter of how to use a variable set at the cmdln.&amp;nbsp; I'm clear about how to set it at the cmdln; I'm just not clear about how to then make use of it within the qvw-file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assistance would be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99093#M759800</guid>
      <dc:creator>llefever</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: clarify how cmdln variable gets used within qvw-file</title>
      <link>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99094#M759801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;If I understood correctly&lt;/SPAN&gt;,&amp;nbsp; every variable in the qvw is global and is available &lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;everywhere&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;. &lt;SPAN lang="en"&gt;Once you set&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt; a value at the cmdln or somewhere else&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;, it &lt;SPAN lang="en"&gt;can be used &lt;SPAN lang="en"&gt; &lt;/SPAN&gt;in&lt;/SPAN&gt; any sheet and any object. But you can not create a &lt;SPAN lang="en"&gt;variable &lt;SPAN lang="en"&gt; by &lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;cmdln, at first you have to create it in "Variable Overview" or in LoadScript&amp;nbsp; &lt;STRONG&gt;(LET, SET)&lt;/STRONG&gt; &lt;STRONG&gt;SomeVar = SomeValue; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Aug 2018 06:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99094#M759801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-18T06:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: clarify how cmdln variable gets used within qvw-file</title>
      <link>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99095#M759803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/ideas/3669.pdf" title="https://community.qlik.com/ideas/3669.pdf"&gt;https://community.qlik.com/ideas/3669.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Aug 2018 10:44:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99095#M759803</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-08-18T10:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: clarify how cmdln variable gets used within qvw-file</title>
      <link>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99096#M759805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; I've seen that document before.&amp;nbsp; However, it doesn't really show how a (global) variable might be associated with a given dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 17:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99096#M759805</guid>
      <dc:creator>llefever</dc:creator>
      <dc:date>2018-08-20T17:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: clarify how cmdln variable gets used within qvw-file</title>
      <link>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99097#M759806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback.&amp;nbsp; However, I still don't see how the relevant variable is associated with the relevant dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable in question is "rptcust":&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlikview-rptcust-not-associated.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/211330_qlikview-rptcust-not-associated.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And the field is "S1CUSTID":&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlikview-rptcust-not-associated-2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/211337_qlikview-rptcust-not-associated-2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I see the relevant field (S1CUSTID) in that dropdown in the above screenshot, but I don't see how it's connected in any way to the variable.&amp;nbsp; None of the dialogs I've opened seem to show any such association.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the "Current Selections" component on the "Selection" Sheet, I see the S1CUSTID field, with its value set to the value specified on the cmdln.&amp;nbsp; There's another field, which I see there, that I need to set at the cmdln with a new variable, but I don't see how to associate that field with that other variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 17:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99097#M759806</guid>
      <dc:creator>llefever</dc:creator>
      <dc:date>2018-08-20T17:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: clarify how cmdln variable gets used within qvw-file</title>
      <link>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99098#M759807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure that I understand your description and in your case the variable might be just a dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A variable in Qlik is always global and could contain anything and there are a lot of places in which they could be used. It starts within the script (which is the common place for a cmd-line variable) to macros (did you look in script and macro?) and further to each kind of dimension, expression, condition, color or any statement respectively as part of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beside of this it might be that this variable is out-dated and not adjusted/removed within the cmd by any maintaining-step because their existence is not obvious within the qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 06:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99098#M759807</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-08-21T06:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: clarify how cmdln variable gets used within qvw-file</title>
      <link>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99099#M759808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just took another look in the relevant qvw-file, but I again didn't find anywhere where that variable is used, other than in the Variables Overview and the Expressions Overview, and nowhere where its expression is used either.&amp;nbsp; However, I know it's in use, because passing in a different value for that variable has the intended effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I've decided I'm going to get the e-book version of "QlikView 11 for Developers" and try to use one or another approach described in it for doing what I need to do; and I expect, at least in the short-term, I'll just leave the existing variable as-is, regardless of how my predecessor managed to make it work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 15:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99099#M759808</guid>
      <dc:creator>llefever</dc:creator>
      <dc:date>2018-08-21T15:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: clarify how cmdln variable gets used within qvw-file</title>
      <link>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99100#M759809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've finally found the answer to my own question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable is noted as set within &lt;STRONG&gt;Document Properties =&amp;gt; Triggers =&amp;gt; OnOpen =&amp;gt; Select In Field&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therein there's a dialog that shows the association between the relevant column and that variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this by way of triggering a dump of all the configuration of the relevant qvw-file (via creating a directory ending in "-prj" and Saving the file) and doing a text-search throughout the thereby generated files for the relevant variable's name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable is mentioned in a file named DocumentProperties.xml in an element that's a descendant of an element named "OnOpenActionItems".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me, the only way for a variable specified at the cmdln to filter a dimension while it's not mentioned in an expression is by means of one such OnOpen Action.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 15:39:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clarify-how-cmdln-variable-gets-used-within-qvw-file/m-p/99100#M759809</guid>
      <dc:creator>llefever</dc:creator>
      <dc:date>2018-10-02T15:39:29Z</dc:date>
    </item>
  </channel>
</rss>

