<?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 use List box selected value in Store Proc parameter ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-use-List-box-selected-value-in-Store-Proc-parameter/m-p/518427#M686918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the Answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is full scenario.&lt;/P&gt;&lt;P&gt;I have a List box or may be some other controls which have multiple values.&lt;/P&gt;&lt;P&gt;e.g. ABC,XYX, XXX, EEE, DDD etc&lt;/P&gt;&lt;P&gt;In script&lt;/P&gt;&lt;P&gt;I have created a variable vAPP&lt;/P&gt;&lt;P&gt;LET vAPP ='ABC';&lt;/P&gt;&lt;P&gt;now I passed this variable to my SP.&lt;/P&gt;&lt;P&gt;SQL EXECUTE RP_ERRORREPORT '$(vAPP)'; === SQL EXECUTE RP_ERRORREPORT 'ABC';&lt;/P&gt;&lt;P&gt;it works fine and load data in the chart.&lt;BR /&gt;But when I select some different value from List box say 'XXX', then I want variable vAPP value changed to 'XXX' and my SP called again.&lt;/P&gt;&lt;P&gt;SQL EXECUTE RP_ERRORREPORT 'XXX' and load the data on chart based up on my current value of vAPP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Dec 2013 07:34:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-05T07:34:44Z</dc:date>
    <item>
      <title>How use List box selected value in Store Proc parameter ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-use-List-box-selected-value-in-Store-Proc-parameter/m-p/518425#M686916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list box having two values (ABC, XYZ). I am using a Store Procedure to bind the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;EXECUTE RP_ERRORREPORT @APP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@APP is either =''ABC' or 'XYZ' or may some other values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use this @APP value in my store procedure. So I would like to know how I can use the List box selected value in above store procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 08:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-use-List-box-selected-value-in-Store-Proc-parameter/m-p/518425#M686916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-03T08:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: How use List box selected value in Store Proc parameter ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-use-List-box-selected-value-in-Store-Proc-parameter/m-p/518426#M686917</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;If you need to do this in the load script, then you can't use the list box selection as the list box does not "exist" until the load script completes. To get the value to the load script, you can set a variable using an input box, or create a trigger on the list box field to save the current selection value in a variable - and then use the variable in the script. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL EXECUTE RP_ERRORREPORT '$(vAppCode)';&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HTH&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 09:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-use-List-box-selected-value-in-Store-Proc-parameter/m-p/518426#M686917</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-12-03T09:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: How use List box selected value in Store Proc parameter ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-use-List-box-selected-value-in-Store-Proc-parameter/m-p/518427#M686918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the Answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is full scenario.&lt;/P&gt;&lt;P&gt;I have a List box or may be some other controls which have multiple values.&lt;/P&gt;&lt;P&gt;e.g. ABC,XYX, XXX, EEE, DDD etc&lt;/P&gt;&lt;P&gt;In script&lt;/P&gt;&lt;P&gt;I have created a variable vAPP&lt;/P&gt;&lt;P&gt;LET vAPP ='ABC';&lt;/P&gt;&lt;P&gt;now I passed this variable to my SP.&lt;/P&gt;&lt;P&gt;SQL EXECUTE RP_ERRORREPORT '$(vAPP)'; === SQL EXECUTE RP_ERRORREPORT 'ABC';&lt;/P&gt;&lt;P&gt;it works fine and load data in the chart.&lt;BR /&gt;But when I select some different value from List box say 'XXX', then I want variable vAPP value changed to 'XXX' and my SP called again.&lt;/P&gt;&lt;P&gt;SQL EXECUTE RP_ERRORREPORT 'XXX' and load the data on chart based up on my current value of vAPP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 07:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-use-List-box-selected-value-in-Store-Proc-parameter/m-p/518427#M686918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-05T07:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: How use List box selected value in Store Proc parameter ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-use-List-box-selected-value-in-Store-Proc-parameter/m-p/518428#M686919</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;1) Create a variable that will be equal to the Listbox, sth like&lt;/P&gt;&lt;P&gt;vMonth = "=Month"&amp;nbsp; (should be a formula)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) As you already did, use this variable into your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Create a button or a trigger action that will reload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 08:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-use-List-box-selected-value-in-Store-Proc-parameter/m-p/518428#M686919</guid>
      <dc:creator />
      <dc:date>2013-12-05T08:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: How use List box selected value in Store Proc parameter ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-use-List-box-selected-value-in-Store-Proc-parameter/m-p/518429#M686920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;create variable in front end &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; vAPP =SP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;where SP is a listbox contains field values :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"ABC"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'XXX'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;etc&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 10:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-use-List-box-selected-value-in-Store-Proc-parameter/m-p/518429#M686920</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2013-12-05T10:10:35Z</dc:date>
    </item>
  </channel>
</rss>

