<?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: Variables in Edit Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-in-Edit-Script/m-p/1726341#M722000</link>
    <description>&lt;P&gt;Hi, you can't access field selections from script but you can access variable values.&lt;/P&gt;&lt;P&gt;As a workaorund you can add a button to add years to a variable, and use this variable in script.&lt;/P&gt;&lt;P&gt;You can also use triggers on &lt;SPAN&gt;Checkbx_Scenario&amp;nbsp;&lt;/SPAN&gt;field selections to assign values to a variable.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2020 07:19:15 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2020-07-09T07:19:15Z</dc:date>
    <item>
      <title>Variables in Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-Edit-Script/m-p/1724788#M721999</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I'm currently trying to tag Years as 'Include'. The premise is that the user will select an option in the check box, and it will tag the years depending on the selection in the check box.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Variables.png" style="width: 263px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36888i378EA3D10725162B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Variables.png" alt="Variables.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But it seems that I am not getting the value of the variable in the if statements, thus not tagging the Year accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my syntax:&lt;/P&gt;&lt;P&gt;Set vIncludeYear = '=GetFieldSelections(Checkbx_Scenario)';&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;if('$( vIncludeYear)' = 'Include Current Year' and Year(today())+1 = [Year Due] , Dual('Include',1),&lt;/P&gt;&lt;P&gt;if('$( vIncludeYear)' = 'Top Risk Year') and RangeFractile([Year Due Score], 0.10, Dual('Include',1))) as IncludeTag&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-Edit-Script/m-p/1724788#M721999</guid>
      <dc:creator>AngieO2019</dc:creator>
      <dc:date>2024-11-16T00:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-Edit-Script/m-p/1726341#M722000</link>
      <description>&lt;P&gt;Hi, you can't access field selections from script but you can access variable values.&lt;/P&gt;&lt;P&gt;As a workaorund you can add a button to add years to a variable, and use this variable in script.&lt;/P&gt;&lt;P&gt;You can also use triggers on &lt;SPAN&gt;Checkbx_Scenario&amp;nbsp;&lt;/SPAN&gt;field selections to assign values to a variable.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 07:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-Edit-Script/m-p/1726341#M722000</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-07-09T07:19:15Z</dc:date>
    </item>
  </channel>
</rss>

