<?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 Text to Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-to-Variable/m-p/261552#M1182244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok i have managed a solution, which was make 3 Load Inline staments, and then on the Front end, &lt;/P&gt;&lt;P&gt;Settings&amp;gt;&amp;gt; Document Properties, On select Load inline 1 set variable to &lt;CODE class="jive-code jive-sql"&gt;Company_ID=1 on select Load inline 2 set variable to &lt;CODE class="jive-code jive-sql"&gt;Company_ID=2 whilst applying rules to deselect the other List boxes when a new is selected.&lt;/CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this Helps Someone. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2011 21:32:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-28T21:32:39Z</dc:date>
    <item>
      <title>Text to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Text-to-Variable/m-p/261551#M1182243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys im having a bit of a problem here is the deal, i have a table from a database with a field called "Company_ID" and at the end of the load script i have a where clause that goes like &lt;/P&gt;&lt;P&gt;&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;From report_data.Table1 where Company_ID=1 or Company_ID=2;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want the user to be able to choose the companies to load, the only problem is i cant use a predefined value on a variable as the user doesnt not know the Company IDs but only names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using a load inline like:&lt;/P&gt;&lt;P&gt;&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;Load * inline[&lt;/P&gt;&lt;P&gt;ID, Name&lt;/P&gt;&lt;P&gt;Company_ID=1, Intel&lt;/P&gt;&lt;P&gt;Company_ID=2, Microsoft&lt;/P&gt;&lt;P&gt;Company_ID=1 or Company_ID=2, Both&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and setting a list box on the front end with the "Name" of the listbox and a variable that equals the ID field, the problem is when i do this either with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var1=ID&lt;/P&gt;&lt;P&gt;or Var ID&lt;/P&gt;&lt;P&gt;etc the variable on the script pick the word "ID" instead of picking the value selected for the field ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i make this work for the user to have company names and the script loads the ID's??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 19:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-to-Variable/m-p/261551#M1182243</guid>
      <dc:creator />
      <dc:date>2011-11-28T19:01:29Z</dc:date>
    </item>
    <item>
      <title>Text to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Text-to-Variable/m-p/261552#M1182244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok i have managed a solution, which was make 3 Load Inline staments, and then on the Front end, &lt;/P&gt;&lt;P&gt;Settings&amp;gt;&amp;gt; Document Properties, On select Load inline 1 set variable to &lt;CODE class="jive-code jive-sql"&gt;Company_ID=1 on select Load inline 2 set variable to &lt;CODE class="jive-code jive-sql"&gt;Company_ID=2 whilst applying rules to deselect the other List boxes when a new is selected.&lt;/CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this Helps Someone. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 21:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-to-Variable/m-p/261552#M1182244</guid>
      <dc:creator />
      <dc:date>2011-11-28T21:32:39Z</dc:date>
    </item>
  </channel>
</rss>

