<?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 can I hardcode and store GetFieldSelections() in a variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588295#M218146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use input box instead of getfieldselection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2014 09:18:04 GMT</pubDate>
    <dc:creator>sushil353</dc:creator>
    <dc:date>2014-05-02T09:18:04Z</dc:date>
    <item>
      <title>How can I hardcode and store GetFieldSelections() in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588293#M218144</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;I have a field called ProductID. Say I select ProductID = { "5" , "6" }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to GetFieldSelections(ProductID) --&amp;gt; and store it in a variable (vProductSelection1) , but &lt;STRONG&gt;hardcoded&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that when my selections change (i.e. values in GetFieldSelections(ProductID) would change too), my variable value stays the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. if I now select ProductID = { "8" , "9" }, although GetFieldSelections(ProductID) now shows "8 , 9",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my variable (vProductSelection1) still shows "5 , 6"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 09:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588293#M218144</guid>
      <dc:creator />
      <dc:date>2014-05-02T09:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hardcode and store GetFieldSelections() in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588294#M218145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When do you want to store the values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a button to trigger writing the values to the variable in the trigger action.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 09:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588294#M218145</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-05-02T09:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hardcode and store GetFieldSelections() in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588295#M218146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use input box instead of getfieldselection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 09:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588295#M218146</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2014-05-02T09:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hardcode and store GetFieldSelections() in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588296#M218147</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;You have not said exactly when you want to store the field selections in the variable. By hardcoded I assume you mean that it should ALWAYS have this value. If so, then use the variable overview (Settings | Variable Overview) to set the variable contents and then save your document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 09:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588296#M218147</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-05-02T09:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hardcode and store GetFieldSelections() in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588297#M218148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well actually, my ultimate aim is to keep appending new selections to an existing bookmark without overwriting the old bookmark selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;(1) BM01: ProductID = { "5" , "6" }&lt;/P&gt;&lt;P&gt;(2) I apply BM01, and my straight table shows the corresponding values.&lt;/P&gt;&lt;P&gt;(3) I now select ProductID = { "8" , "9" } from my straight table&lt;/P&gt;&lt;P&gt;(4) I want to now be able to replace BM01 with the new selections &lt;STRONG&gt;without &lt;/STRONG&gt;losing the old ones. i.e. BM01 should now save selections: ProductID = { "5" , "6" ,&amp;nbsp; "8" , "9" }.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I was unable to do this, I thought of trying this instead:&lt;/P&gt;&lt;P&gt;(1) store BM01's selections, ProductID = { "5" , "6" }, in a variable (say v1) (somehow. I don't know how to do this yet).&lt;/P&gt;&lt;P&gt;(2) Select my new selection, ProductID = { "8" , "9" } from my straight table&lt;/P&gt;&lt;P&gt;(3) Click a button&amp;nbsp; - it will do 3 things:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (a) set a variable (say v2) to = GetFieldSelections(ProductID)&amp;nbsp;&amp;nbsp; (so its value would =&amp;nbsp; "8" , "9")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (b) use trigger: Select in Field: Field = ProductID, Search String = v1 + v2&amp;nbsp; (with appropriate dollar-sign expansions etc.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (c) use trigger: replace bookmark BM01 with the current selections (which should now be v1 + v2 = { "5" , "6" ,&amp;nbsp; "8" , "9" }.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and repeat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that putting v2 into the Search String does not work because v2 is tied to GetFieldSelections(ProductID), which I think gets cleared when trigger (b) is actioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help with trying to replace a bookmark without losing the historical bookmark information (i.e. keep appending the bookmark with new selections) would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 09:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588297#M218148</guid>
      <dc:creator />
      <dc:date>2014-05-02T09:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How can I hardcode and store GetFieldSelections() in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588298#M218149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 10:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588298#M218149</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-05-02T10:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hardcode and store GetFieldSelections() in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588299#M218150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh wow, it works great. I spent so long trying to figure this out.&lt;/P&gt;&lt;P&gt;Really, thank you so much!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 11:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-hardcode-and-store-GetFieldSelections-in-a-variable/m-p/588299#M218150</guid>
      <dc:creator />
      <dc:date>2014-05-02T11:54:24Z</dc:date>
    </item>
  </channel>
</rss>

