<?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: Problem saving variables that contain GetFieldSelections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-saving-variables-that-contain-GetFieldSelections/m-p/904229#M314388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at this post, &lt;A href="https://community.qlik.com/thread/65816"&gt;Why variable with formula in script don't have the value , but the formula?&lt;/A&gt;‌, this should guide you in the right direction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2015 18:17:20 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-06-25T18:17:20Z</dc:date>
    <item>
      <title>Problem saving variables that contain GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-saving-variables-that-contain-GetFieldSelections/m-p/904228#M314387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two list boxes where user can select single value, and an input box. I have variables that pick up values using GetFieldSelections. When script is reloaded, a table containing one row is created, which is then joined to existing table values. My problem is that variables which set values using GetFieldSelections come across as formula not as value, i.e. '=GetFieldSelections(UserName)', instead of 'John'.&lt;/P&gt;&lt;P&gt;I've tried different syntax but could not get it working, any idea why? The app attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14352541864887800 jive_text_macro" jivemacro_uid="_14352541864887800" modifiedtitle="true"&gt;
&lt;P&gt;Scenario:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;'$(vSelectedName)' as User,&lt;/P&gt;
&lt;P&gt;'$(vSelectedPeriod)' as ScenarioDate,&lt;/P&gt;
&lt;P&gt;'$(vInput)' as [My Variable]&lt;/P&gt;
&lt;P&gt;AutoGenerate (1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Scenario:&lt;/P&gt;
&lt;P&gt;LOAD *&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;Scenario.qvd&lt;/P&gt;
&lt;P&gt;(qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;STORE Scenario into Scenario.qvd (qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;IMG alt="screenshot1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90857_screenshot1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screenshot2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/90858_screenshot2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 17:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-saving-variables-that-contain-GetFieldSelections/m-p/904228#M314387</guid>
      <dc:creator>martyn_birzys</dc:creator>
      <dc:date>2015-06-25T17:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem saving variables that contain GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-saving-variables-that-contain-GetFieldSelections/m-p/904229#M314388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at this post, &lt;A href="https://community.qlik.com/thread/65816"&gt;Why variable with formula in script don't have the value , but the formula?&lt;/A&gt;‌, this should guide you in the right direction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 18:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-saving-variables-that-contain-GetFieldSelections/m-p/904229#M314388</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-25T18:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem saving variables that contain GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-saving-variables-that-contain-GetFieldSelections/m-p/904230#M314389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, I guess trigger is the option for this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 18:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-saving-variables-that-contain-GetFieldSelections/m-p/904230#M314389</guid>
      <dc:creator />
      <dc:date>2015-06-25T18:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem saving variables that contain GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-saving-variables-that-contain-GetFieldSelections/m-p/904231#M314390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the link Sunny, it works using triggers. &lt;/P&gt;&lt;P&gt;For anyone who is new to triggers like me, go to Settings / Document Properties / Trigger tab. Select Document Event Trigger called OnAnySelect, click Edit Action and create SetVariable Action.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="90945" alt="screenshot3.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90945_screenshot3.PNG" style="height: 458px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;and then edit the script:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14353129276583275 jive_text_macro" jivemacro_uid="_14353129276583275"&gt;
&lt;P&gt;let vSelectedName = '$(vaSelectedName)';&lt;/P&gt;
&lt;P&gt;let vSelectedPeriod = '$(vaSelectedPeriod)';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Scenario:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;'$(vSelectedName)' as User,&lt;/P&gt;
&lt;P&gt;'$(vSelectedPeriod)' as ScenarioDate,&lt;/P&gt;
&lt;P&gt;'$(vInput)' as [My Variable]&lt;/P&gt;
&lt;P&gt;AutoGenerate (1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Scenario:&lt;/P&gt;
&lt;P&gt;LOAD *&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;Scenario.qvd&lt;/P&gt;
&lt;P&gt;(qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;STORE Scenario into Scenario.qvd (qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;Final app attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The SAVE button only works in QlikView Desktop environment, it does not work on Access Point. There may be ways of doing it, but it is sufficient for me to have it working in Desktop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 10:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-saving-variables-that-contain-GetFieldSelections/m-p/904231#M314390</guid>
      <dc:creator>martyn_birzys</dc:creator>
      <dc:date>2015-06-26T10:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem saving variables that contain GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-saving-variables-that-contain-GetFieldSelections/m-p/904232#M314391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem, I am glad I was able to guide you in the right direction &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 10:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-saving-variables-that-contain-GetFieldSelections/m-p/904232#M314391</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-26T10:07:52Z</dc:date>
    </item>
  </channel>
</rss>

