<?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: Passing the variable into SQL script in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Passing-the-variable-into-SQL-script-in-qlikview/m-p/994007#M971082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan, altough i don't think it's a best practice, you can set a trigger to the field (In document properties-&amp;gt;triggers), this trigger can assign the value to the variable (action --&amp;gt; external --&amp;gt; set variable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In variable set the name of the variable and in value set "=FieldName" or "=Concat(FieldName, [separator])" if you want to allow multiple values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way the variable will contain the values, the other way the variable still contains the string "GetFieldSelections(fm)"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Nov 2015 15:35:47 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2015-11-10T15:35:47Z</dc:date>
    <item>
      <title>Passing the variable into SQL script in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-the-variable-into-SQL-script-in-qlikview/m-p/994005#M971080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to Qlikview. I created two variables in my qvw file. Here is my variable names&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vSelectedValue = GetFieldSelections(fm)&lt;/P&gt;&lt;P&gt;vPassedValue = GetFieldSelections(pm)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i select the list box i got the values and displayed in text object. My question is i am going to use these variables into my sql script where clause.&amp;nbsp; Here is my sql script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&amp;nbsp; *&lt;/P&gt;&lt;P&gt;from&amp;nbsp;&amp;nbsp;&amp;nbsp; mvdate md,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mvpicture mv&lt;/P&gt;&lt;P&gt;where&amp;nbsp;&amp;nbsp; trunc(md.day)=trunc(mv.dates)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;and mv.mvpicture='$(fm)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know anyone how to pass the variable in my sql script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Venkata&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 15:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-the-variable-into-SQL-script-in-qlikview/m-p/994005#M971080</guid>
      <dc:creator />
      <dc:date>2015-09-21T15:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the variable into SQL script in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-the-variable-into-SQL-script-in-qlikview/m-p/994006#M971081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get solution for this ? I am looking for similar question. Let me know if you get any possible solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 14:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-the-variable-into-SQL-script-in-qlikview/m-p/994006#M971081</guid>
      <dc:creator />
      <dc:date>2015-11-10T14:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the variable into SQL script in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-the-variable-into-SQL-script-in-qlikview/m-p/994007#M971082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan, altough i don't think it's a best practice, you can set a trigger to the field (In document properties-&amp;gt;triggers), this trigger can assign the value to the variable (action --&amp;gt; external --&amp;gt; set variable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In variable set the name of the variable and in value set "=FieldName" or "=Concat(FieldName, [separator])" if you want to allow multiple values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way the variable will contain the values, the other way the variable still contains the string "GetFieldSelections(fm)"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 15:35:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-the-variable-into-SQL-script-in-qlikview/m-p/994007#M971082</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-11-10T15:35:47Z</dc:date>
    </item>
  </channel>
</rss>

