<?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 User Defined variable. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203965#M61076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then just make a list box (or an input box) for GCNO and let them type in the report they want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are loading all of the reports anyway, then you don't need to pass anything to the script.&lt;/P&gt;&lt;P&gt;Imagine if the reports you are loading look like this:&lt;/P&gt;&lt;P&gt;[Account Number], [Balance],[GCNO]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you add an input box for the field [GCNO] and they type in 54, every row with a GCNO of 54 is going to show and the other reports will not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited to add details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2011 18:41:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-07T18:41:22Z</dc:date>
    <item>
      <title>User Defined variable.</title>
      <link>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203961#M61072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Is there a way to pass user defined values in qlikview script while loading or after loading.I am having the sql as below,Pls suggest how its possible in qlikview to implement the below logic.(@GCNO).User should be able to give the number to the report and report should display the result by taking the user defined number as input.&lt;/P&gt;&lt;P&gt;Select calendar_date, store_number, sequence_key, gc_buy_or_redeem, gc_card_number,&lt;BR /&gt;gc_amount, gc_balance, gc_pos_id, gc_auth_type, gc_store_trans_num,&lt;BR /&gt;gc_trans_timestamp, gc_trans_type, gc_activation_type from gift_card_fact f,&lt;BR /&gt;date_dim d, store_dim s&lt;BR /&gt;where f.date_key=d.date_key and&lt;BR /&gt;f.store_key=s.store_key and&lt;BR /&gt;gc_card_number in (@GCNo)&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swetha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 15:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203961#M61072</guid>
      <dc:creator />
      <dc:date>2011-04-07T15:30:28Z</dc:date>
    </item>
    <item>
      <title>User Defined variable.</title>
      <link>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203962#M61073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 18:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203962#M61073</guid>
      <dc:creator />
      <dc:date>2011-04-07T18:17:25Z</dc:date>
    </item>
    <item>
      <title>User Defined variable.</title>
      <link>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203963#M61074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want them to input a number, let's call it 54, and then the script only loads report with GCNO = 54? If so, try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set up an input box with a variable, we'll call it vScriptVar.&lt;/P&gt;&lt;P&gt;Now type 54 into the input box.&lt;/P&gt;&lt;P&gt;In the script, add the following below the table:&lt;/P&gt;&lt;P&gt;WHERE GCNo=$(vScriptVar);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the user types in the report number, reloads, and that report is reloaded. I've never tested that before, but I did the same thing with this and it worked fine (vScriptVar was defined by an input box as descibed above).&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;A,&lt;BR /&gt;$(vScriptVar)&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 18:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203963#M61074</guid>
      <dc:creator />
      <dc:date>2011-04-07T18:25:38Z</dc:date>
    </item>
    <item>
      <title>User Defined variable.</title>
      <link>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203964#M61075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jones,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;But the user should not reload ,everything needed to be preloaded while the script is executed and user just type in GCNO and the report should display the values accordingly.&lt;/P&gt;&lt;P&gt;And also I did not understand the below part:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;A,&lt;BR /&gt;$(vScriptVar)&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Basically I have pass all the values of field GCNO to the variable port,thats my requirement.I mean it should be preloaded.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 18:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203964#M61075</guid>
      <dc:creator />
      <dc:date>2011-04-07T18:34:47Z</dc:date>
    </item>
    <item>
      <title>User Defined variable.</title>
      <link>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203965#M61076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then just make a list box (or an input box) for GCNO and let them type in the report they want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are loading all of the reports anyway, then you don't need to pass anything to the script.&lt;/P&gt;&lt;P&gt;Imagine if the reports you are loading look like this:&lt;/P&gt;&lt;P&gt;[Account Number], [Balance],[GCNO]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you add an input box for the field [GCNO] and they type in 54, every row with a GCNO of 54 is going to show and the other reports will not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited to add details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 18:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203965#M61076</guid>
      <dc:creator />
      <dc:date>2011-04-07T18:41:22Z</dc:date>
    </item>
    <item>
      <title>User Defined variable.</title>
      <link>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203966#M61077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is assuming that GCNO is a field and if it isn't you'll just have to add it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 18:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203966#M61077</guid>
      <dc:creator />
      <dc:date>2011-04-07T18:41:59Z</dc:date>
    </item>
    <item>
      <title>User Defined variable.</title>
      <link>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203967#M61078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jones,&lt;/P&gt;&lt;P&gt;yes adding a list box is a good idea,I have n't even thought abt and thiniking in a sophisticated way.Is there a way where the liat can be represented as drop down box in qlikview?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 18:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203967#M61078</guid>
      <dc:creator />
      <dc:date>2011-04-07T18:54:30Z</dc:date>
    </item>
    <item>
      <title>User Defined variable.</title>
      <link>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203968#M61079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want a drop down instead of a list box you can use a search box and just click the little down arrow on the right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 18:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203968#M61079</guid>
      <dc:creator />
      <dc:date>2011-04-07T18:59:07Z</dc:date>
    </item>
    <item>
      <title>User Defined variable.</title>
      <link>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203969#M61080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;got it thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 19:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-Defined-variable/m-p/203969#M61080</guid>
      <dc:creator />
      <dc:date>2011-04-07T19:00:29Z</dc:date>
    </item>
  </channel>
</rss>

