<?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: How to use value of the variable in load script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-value-of-the-variable-in-load-script/m-p/479667#M1301373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to store your selection in a table and then have to reload the application...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise there is no direct way to include the UI variables into script directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Nov 2013 05:25:36 GMT</pubDate>
    <dc:creator>sushil353</dc:creator>
    <dc:date>2013-11-05T05:25:36Z</dc:date>
    <item>
      <title>How to use value of the variable in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-value-of-the-variable-in-load-script/m-p/479665#M1301365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to let users to reload data by company level they selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable:&lt;/P&gt;&lt;P&gt;vCom_L = GetFieldSelections(com_level,',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL select company,com_level from Dim_Company&lt;/P&gt;&lt;P&gt;where com_level in $(vCom_L); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL select distinct com_level from Dim_Company;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-value-of-the-variable-in-load-script/m-p/479665#M1301365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use value of the variable in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-value-of-the-variable-in-load-script/m-p/479666#M1301369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't get the field selection in the script directly like you tried. Have a look at &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/11/01/loading-data-into-input-boxes"&gt;this link&lt;/A&gt; , explained very nicely.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 05:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-value-of-the-variable-in-load-script/m-p/479666#M1301369</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-11-05T05:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use value of the variable in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-value-of-the-variable-in-load-script/m-p/479667#M1301373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to store your selection in a table and then have to reload the application...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise there is no direct way to include the UI variables into script directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 05:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-value-of-the-variable-in-load-script/m-p/479667#M1301373</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-11-05T05:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use value of the variable in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-value-of-the-variable-in-load-script/m-p/479668#M1301377</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;There are a few ways of doing this.&amp;nbsp; I'll quickly list them as you may prefer one over another;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Your code above looks almost sound as long as you only allow one&amp;nbsp; selection on com_Level.&amp;nbsp; But I'd advise not loading from your SQL DB directly as this may affect performance of your source system.&amp;nbsp; It would be more efficient and simpler to have this SQL table stored into a qvd and load from this, use formula;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCom_L= GetFieldSelections(com_Level)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Hide all your tabs and only show them after your use has performed a data reduction (i.e. Have them open the fully populated qvw but do not allow them access to any functionality via conditional hides until they have performed this data reduction).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&amp;nbsp; Provide a selection box and a reload button to make the selection easier for you users.&amp;nbsp; (This is similar to option 1).&amp;nbsp; I have attached an example so that you may see the logic of the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps, let me know how you get on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 10:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-value-of-the-variable-in-load-script/m-p/479668#M1301377</guid>
      <dc:creator />
      <dc:date>2013-11-05T10:14:42Z</dc:date>
    </item>
  </channel>
</rss>

