<?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 How to make a selection based on another selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-a-selection-based-on-another-selection-dynamically/m-p/164787#M37362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Luckas, I don't want to use a button with an action for selection. The idea is when I choose lets say FirstCC from a listbox in another listbox dynamically to be choosen let's say 100 values starting with 1 (100, 101, 102, etc.) I think that answers blase question, too. (May be blase didn't see the * after the digits)&lt;/P&gt;&lt;P&gt;I found a solution and it was to use "ToggleSelect", instead of "Select" and also had to add "CodeField.clear" before the loop so that it deselects the codes when I deselect the Cost Center.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Mar 2010 16:42:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-02T16:42:56Z</dc:date>
    <item>
      <title>How to make a selection based on another selection (dynamically)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-selection-based-on-another-selection-dynamically/m-p/164784#M37359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have the following problem: I have two listboxes: Code and Cost Center and I want when I make selection in Cost Center a several codes to be selected in Code list box.&lt;/P&gt;&lt;P&gt;I decided to make a macro:&lt;/P&gt;&lt;P&gt;sub SelectFirstLevelCodes&lt;BR /&gt;&lt;BR /&gt; set CodeField = ActiveDocument.Fields("AccountCode")&lt;BR /&gt; set CostCenterFirstLevelField = ActiveDocument.Fields("CostCentersFirstLevel").getSelectedValues&lt;BR /&gt; for i=0 to CostCenterFirstLevelField.Count - 1&lt;BR /&gt;&lt;BR /&gt; if CostCenterFirstLevelField.Item(i).Text="FirstCC" then&lt;BR /&gt; CodeField.Select "1*"&lt;BR /&gt; end if&lt;BR /&gt;&lt;BR /&gt; if CostCenterFirstLevelField.Item(i).Text="SecondCC" then&lt;BR /&gt; CodeField.Select "2*"&lt;BR /&gt; end if&lt;BR /&gt;&lt;BR /&gt; if CostCenterFirstLevelField.Item(i).Text="ThirdCC" then&lt;BR /&gt; CodeField.Select "3*"&lt;BR /&gt; end if&lt;BR /&gt; next&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;and it is working, except that I can select only one Cost Center. If I select two, Codes are selected only for the last selected CostCenter, not for both. How can I avoid this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 10:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-selection-based-on-another-selection-dynamically/m-p/164784#M37359</guid>
      <dc:creator />
      <dc:date>2010-03-02T10:42:31Z</dc:date>
    </item>
    <item>
      <title>How to make a selection based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-selection-based-on-another-selection-dynamically/m-p/164785#M37360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;can you please take a look at this post and let me know if this what you try to achieve?&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/t/25932.aspx"&gt;http://community.qlik.com/forums/t/25932.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 14:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-selection-based-on-another-selection-dynamically/m-p/164785#M37360</guid>
      <dc:creator />
      <dc:date>2010-03-02T14:49:41Z</dc:date>
    </item>
    <item>
      <title>How to make a selection based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-selection-based-on-another-selection-dynamically/m-p/164786#M37361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May I ask why you dont join an inline table to your data tables instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;CostCenterLevel:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;CostCenterFirstLevel,CodeField&lt;BR /&gt;FirstCC,1&lt;BR /&gt;SecondCC,2&lt;BR /&gt;ThirdCC,3&lt;BR /&gt;];&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Otherwise (using your code) try changing the .Select to .ToggleSelect. Make sure to do a Field.Clear first, above the loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 16:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-selection-based-on-another-selection-dynamically/m-p/164786#M37361</guid>
      <dc:creator>blaise</dc:creator>
      <dc:date>2010-03-02T16:04:10Z</dc:date>
    </item>
    <item>
      <title>How to make a selection based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-selection-based-on-another-selection-dynamically/m-p/164787#M37362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Luckas, I don't want to use a button with an action for selection. The idea is when I choose lets say FirstCC from a listbox in another listbox dynamically to be choosen let's say 100 values starting with 1 (100, 101, 102, etc.) I think that answers blase question, too. (May be blase didn't see the * after the digits)&lt;/P&gt;&lt;P&gt;I found a solution and it was to use "ToggleSelect", instead of "Select" and also had to add "CodeField.clear" before the loop so that it deselects the codes when I deselect the Cost Center.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 16:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-selection-based-on-another-selection-dynamically/m-p/164787#M37362</guid>
      <dc:creator />
      <dc:date>2010-03-02T16:42:56Z</dc:date>
    </item>
    <item>
      <title>How to make a selection based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-selection-based-on-another-selection-dynamically/m-p/164788#M37363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for not seeing the wildcards. If you do a left(AccountCode,1) as key_AccountCode you can use my suggestion. Worth i try if the data is rather small or you do other "non qvd optimized" conversions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 23:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-selection-based-on-another-selection-dynamically/m-p/164788#M37363</guid>
      <dc:creator>blaise</dc:creator>
      <dc:date>2010-03-03T23:45:43Z</dc:date>
    </item>
  </channel>
</rss>

