<?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: Selecting values which are included in a script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288134#M107190</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;for the other case,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does nobody has any solution for following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT SAARTNR&amp;nbsp; as REF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAARTBEZ1 as Articledescription,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAMEDIK as AMKZ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SACHARKZ as LOTKZ&lt;/P&gt;&lt;P&gt;FROM QS36F.DLSSA where SAMEDIK=&lt;SPAN style="color: #3366ff;"&gt;getfieldselections(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;vMPdata&lt;SPAN style="color: #3366ff;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not working. What do I do wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Nov 2011 12:28:51 GMT</pubDate>
    <dc:creator>newqlikie</dc:creator>
    <dc:date>2011-11-01T12:28:51Z</dc:date>
    <item>
      <title>Selecting values which are included in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288126#M107182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any possibility, that I can select different values (for example earliest year of a delivery (2009 or 2010 or 2011), medicinal product (Y / N),&amp;nbsp; etc) before I start a script? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) So I need to set some values which have to take account in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a "medicinal product"? Y / N&amp;nbsp; =&amp;gt; If I take Y, the data will be set in a variable (e.g. &lt;SPAN style="color: #ff0000;"&gt;vMPdata&lt;/SPAN&gt;='Y')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script should be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT SAARTNR&amp;nbsp; as REF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAARTBEZ1 as Articledescription,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAMEDIK as AMKZ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SACHARKZ as LOTKZ&lt;/P&gt;&lt;P&gt;FROM QS36F.DLSSA where SAMEDIK=&lt;SPAN style="color: #ff0000;"&gt;vMPdata&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.) Also should there any checkup for all values I have to add. Only if I have added all values, I am able to run the sript&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 10:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288126#M107182</guid>
      <dc:creator>newqlikie</dc:creator>
      <dc:date>2011-11-01T10:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values which are included in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288127#M107183</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;1) I am not sure of the objective in doing so but you can do this as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Variables as needed and add them to a inputbox for the users to select them.&lt;/P&gt;&lt;P&gt;Then if you reload (which also can be done thru a button action with macro), the reload script if contains any value will run the script with the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) While running the reload thru button with macro, add the necesary check in macro and reload only if the validation is passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 10:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288127#M107183</guid>
      <dc:creator />
      <dc:date>2011-11-01T10:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values which are included in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288128#M107184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) But how should the script look like? The one I added in the intro is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) How do I do the necessary checks for the variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reload-macro looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sub ReloadStuff&lt;/P&gt;&lt;P&gt;ActiveDocument.Reload&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 11:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288128#M107184</guid>
      <dc:creator>newqlikie</dc:creator>
      <dc:date>2011-11-01T11:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values which are included in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288129#M107185</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;&lt;/P&gt;&lt;P&gt;You can put a button for this macro code and use this on the action command by giving macro name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code jive-sql"&gt;Sub ReloadStuff&lt;BR /&gt;ActiveDocument.Reload&lt;BR /&gt;&lt;SPAN class="jive-sql-keyword" style="color: navy; font-weight: bold;"&gt;End&lt;/SPAN&gt; Sub&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 11:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288129#M107185</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-11-01T11:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values which are included in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288130#M107186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Do I have to do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT SAARTNR&amp;nbsp; as REF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAARTBEZ1 as Articledescription,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAMEDIK as AMKZ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SACHARKZ as LOTKZ&lt;/P&gt;&lt;P&gt;FROM QS36F.DLSSA where SAMEDIK=&lt;SPAN style="color: #3366ff;"&gt;getfieldselections(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;vMPdata&lt;SPAN style="color: #3366ff;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in this way it is still not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 11:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288130#M107186</guid>
      <dc:creator>newqlikie</dc:creator>
      <dc:date>2011-11-01T11:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values which are included in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288131#M107187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sub ReloadStuff&lt;/P&gt;&lt;P&gt;validVariable = ActiveDocument.GetVariable &amp;lt;VariableName&amp;gt;.GetContent.String&lt;/P&gt;&lt;P&gt;if &amp;lt;Conditon on validVariable&amp;gt; then&lt;/P&gt;&lt;P&gt;ActiveDocument.Reload.&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 11:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288131#M107187</guid>
      <dc:creator />
      <dc:date>2011-11-01T11:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values which are included in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288132#M107188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2) What do I have to do with more than one variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would this be correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ReloadStuff&lt;/P&gt;&lt;P&gt;validVariable1 = ActiveDocument.GetVariable &amp;lt;VariableName1&amp;gt;.GetContent.String&lt;/P&gt;&lt;P&gt;validVariable2 = ActiveDocument.GetVariable &amp;lt;VariableName2&amp;gt;.GetContent.String&lt;/P&gt;&lt;P&gt;if &amp;lt;Conditon on validVariable1&amp;gt; and &amp;lt;Conditon on validVariable2&amp;gt; then&lt;/P&gt;&lt;P&gt;ActiveDocument.Reload.&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 11:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288132#M107188</guid>
      <dc:creator>newqlikie</dc:creator>
      <dc:date>2011-11-01T11:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values which are included in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288133#M107189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that would work. You can validate you VB Script in the below url:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.w3schools.com/vbscript/tryit.asp?filename=vbdemo_intro"&gt;http://www.w3schools.com/vbscript/tryit.asp?filename=vbdemo_intro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 11:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288133#M107189</guid>
      <dc:creator />
      <dc:date>2011-11-01T11:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values which are included in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288134#M107190</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;for the other case,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does nobody has any solution for following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT SAARTNR&amp;nbsp; as REF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAARTBEZ1 as Articledescription,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAMEDIK as AMKZ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SACHARKZ as LOTKZ&lt;/P&gt;&lt;P&gt;FROM QS36F.DLSSA where SAMEDIK=&lt;SPAN style="color: #3366ff;"&gt;getfieldselections(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;vMPdata&lt;SPAN style="color: #3366ff;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not working. What do I do wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 12:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288134#M107190</guid>
      <dc:creator>newqlikie</dc:creator>
      <dc:date>2011-11-01T12:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values which are included in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288135#M107191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When script is running, document isnt active hence getfieldselections which includes document operation as selecting will not work. While variables arent such and can be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear in the explanation,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 13:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288135#M107191</guid>
      <dc:creator />
      <dc:date>2011-11-01T13:33:51Z</dc:date>
    </item>
    <item>
      <title>Selecting values which are included in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288136#M107192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not undestand directly. Can you may be give me an example, or can you give me some script-commands which I need to use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 14:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288136#M107192</guid>
      <dc:creator>newqlikie</dc:creator>
      <dc:date>2011-11-01T14:23:30Z</dc:date>
    </item>
    <item>
      <title>Selecting values which are included in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288137#M107193</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;Say you have computed expression: max(sales), this wont work in script. You need to do some thing like Load max(sales) as maxSales Resident Sales; Peek() sales into a variable etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason is that while executing the script the fields sales is not intregrated will the entire datamodel and hence these functionality wont work. But variables are static values and can be passed during script execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I could not envision demostrating this with an example document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 14:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-which-are-included-in-a-script/m-p/288137#M107193</guid>
      <dc:creator />
      <dc:date>2011-11-01T14:47:43Z</dc:date>
    </item>
  </channel>
</rss>

