<?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: Retrieve selected value in a selection list in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564627#M683936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the thing is, when i write this in the script:&lt;/P&gt;&lt;P&gt;set fichier = GetCurrentSelections(&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[Nom du fichier]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;it doesn't execute the function GetCurrentSelections but like a simple string&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All i want to do is to find a way to differentiate which value is selected because it must have another treatment.&lt;/P&gt;&lt;P&gt;If 'Jour.qvd' is selected, i have to execute some lines of my script and if 'Mois.qvd' is selected, i have to execute other lines of my script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2014 10:58:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-10T10:58:24Z</dc:date>
    <item>
      <title>Retrieve selected value in a selection list</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564622#M683931</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 have a selection list like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/52884_Capture.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;and i want to fill a variable with the value which is selected (blank, 'Jour.qvd' or 'Mois.qvd').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried GetCurrentSelections but this only works in expressions and not in the script so i don't know how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an idea please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Loïc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 10:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564622#M683931</guid>
      <dc:creator />
      <dc:date>2014-02-10T10:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve selected value in a selection list</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564623#M683932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with&lt;/P&gt;&lt;P&gt;=only([Nom du fichier])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to set the variablein the script&lt;/P&gt;&lt;P&gt;let variable='=only([Nom du fichier])';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 10:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564623#M683932</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-10T10:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve selected value in a selection list</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564624#M683933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use concat or p (possible values). However, you need to fill the variable that then will be used in the next reload? is that the case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 10:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564624#M683933</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-02-10T10:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve selected value in a selection list</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564625#M683934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to pass the variable from UI to script? or you have a field with these values and in you need your script to take these values and use it. if that is the case then try using FOR loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 10:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564625#M683934</guid>
      <dc:creator />
      <dc:date>2014-02-10T10:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve selected value in a selection list</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564626#M683935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want a selection in a list to influence script execution, then use an InputField and attach a variable to the field. Other lists based on fields will not survive the script start as the first thing the script will do is wipe the data model clean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 10:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564626#M683935</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-02-10T10:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve selected value in a selection list</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564627#M683936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the thing is, when i write this in the script:&lt;/P&gt;&lt;P&gt;set fichier = GetCurrentSelections(&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[Nom du fichier]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;it doesn't execute the function GetCurrentSelections but like a simple string&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All i want to do is to find a way to differentiate which value is selected because it must have another treatment.&lt;/P&gt;&lt;P&gt;If 'Jour.qvd' is selected, i have to execute some lines of my script and if 'Mois.qvd' is selected, i have to execute other lines of my script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 10:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564627#M683936</guid>
      <dc:creator />
      <dc:date>2014-02-10T10:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve selected value in a selection list</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564628#M683937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, your first remark boils down to the difference between SET and LET.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SET will treat everything behind the equal sign as text. Whetever you put there, it will not be evaluated. $-sign substitution however will take place as always. Note that strings don't need delimiters because everything is a string.&lt;/LI&gt;&lt;LI&gt;LET will treat everything behind the equal sign as part of an expression and evaluate the right hand side. Strings need delimiters to be treated like string.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the trick with the InputField to control script behavior. It's pretty simple and works lilke a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 11:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564628#M683937</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-02-10T11:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve selected value in a selection list</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564629#M683938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use, chart functions in the script. As Peter said, you have to create a input field and attach the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Nom du fichier]&lt;/SPAN&gt; to this variable. and then pass this variable to script and use in IF and ELSE condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 11:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564629#M683938</guid>
      <dc:creator />
      <dc:date>2014-02-10T11:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Retrieve selected value in a selection list</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564630#M683939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 11:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-selected-value-in-a-selection-list/m-p/564630#M683939</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-02-10T11:16:43Z</dc:date>
    </item>
  </channel>
</rss>

