<?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 selection is lost after a Copy State Contents event is triggered in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/selection-is-lost-after-a-Copy-State-Contents-event-is-triggered/m-p/1607157#M736204</link>
    <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I have a simple data model with below fields:&lt;/P&gt;&lt;P&gt;data:&lt;BR /&gt;load * Inline&lt;BR /&gt;[&lt;BR /&gt;cob_date,country,value&lt;BR /&gt;'4/30/2019', 'US', 100&lt;BR /&gt;'5/31/2019', 'US', 120&lt;BR /&gt;'6/30/2019', 'US', 115&lt;BR /&gt;'4/30/2019', 'JP', 10&lt;BR /&gt;'5/31/2019', 'JP', 20&lt;BR /&gt;'6/30/2019', 'JP', 50&lt;BR /&gt;'4/30/2019', 'HK', 50&lt;BR /&gt;'5/31/2019', 'HK', 70&lt;BR /&gt;'6/30/2019', 'HK', 90&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;In my dashboard, I want to compare the values for the countries for different cob_date, so I create two pairs of cob_date list box and bar chart, and put them side by side. I assign each pair a separate alternate state - State1 and State2 accordingly. Below is the screen shot when I select 5/31/2019 in State1 and 4/30/2019 in State2:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="state2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16157i1B82157721AB2EC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="state2.PNG" alt="state2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to add a country list, and this list should work for both states, meaning when I select a country, both bar chart should show data for this country only.&lt;/P&gt;&lt;P&gt;What I did is,&lt;/P&gt;&lt;P&gt;1. Add a Listbox of country field. the List Box is in &amp;lt;inherited&amp;gt; state.&lt;/P&gt;&lt;P&gt;2. Add a triggers in "Document Properties" on country field event. In this event, I copy the state to State1 and State2.&lt;/P&gt;&lt;P&gt;The issue is, whenever I make a selection in the country list, the two cob_date listboxes will be reset to all. So any prior selections I made in the cob_date boxed will be lost after I click in the country list box..&lt;/P&gt;&lt;P&gt;So my question is how to make it work so the selections in each state will keep when a country is selected?&lt;/P&gt;&lt;P&gt;Pls find attached my dashboard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>msmichael</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>selection is lost after a Copy State Contents event is triggered</title>
      <link>https://community.qlik.com/t5/QlikView/selection-is-lost-after-a-Copy-State-Contents-event-is-triggered/m-p/1607157#M736204</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I have a simple data model with below fields:&lt;/P&gt;&lt;P&gt;data:&lt;BR /&gt;load * Inline&lt;BR /&gt;[&lt;BR /&gt;cob_date,country,value&lt;BR /&gt;'4/30/2019', 'US', 100&lt;BR /&gt;'5/31/2019', 'US', 120&lt;BR /&gt;'6/30/2019', 'US', 115&lt;BR /&gt;'4/30/2019', 'JP', 10&lt;BR /&gt;'5/31/2019', 'JP', 20&lt;BR /&gt;'6/30/2019', 'JP', 50&lt;BR /&gt;'4/30/2019', 'HK', 50&lt;BR /&gt;'5/31/2019', 'HK', 70&lt;BR /&gt;'6/30/2019', 'HK', 90&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;In my dashboard, I want to compare the values for the countries for different cob_date, so I create two pairs of cob_date list box and bar chart, and put them side by side. I assign each pair a separate alternate state - State1 and State2 accordingly. Below is the screen shot when I select 5/31/2019 in State1 and 4/30/2019 in State2:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="state2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16157i1B82157721AB2EC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="state2.PNG" alt="state2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to add a country list, and this list should work for both states, meaning when I select a country, both bar chart should show data for this country only.&lt;/P&gt;&lt;P&gt;What I did is,&lt;/P&gt;&lt;P&gt;1. Add a Listbox of country field. the List Box is in &amp;lt;inherited&amp;gt; state.&lt;/P&gt;&lt;P&gt;2. Add a triggers in "Document Properties" on country field event. In this event, I copy the state to State1 and State2.&lt;/P&gt;&lt;P&gt;The issue is, whenever I make a selection in the country list, the two cob_date listboxes will be reset to all. So any prior selections I made in the cob_date boxed will be lost after I click in the country list box..&lt;/P&gt;&lt;P&gt;So my question is how to make it work so the selections in each state will keep when a country is selected?&lt;/P&gt;&lt;P&gt;Pls find attached my dashboard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selection-is-lost-after-a-Copy-State-Contents-event-is-triggered/m-p/1607157#M736204</guid>
      <dc:creator>msmichael</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: selection is lost after a Copy State Contents event is triggered</title>
      <link>https://community.qlik.com/t5/QlikView/selection-is-lost-after-a-Copy-State-Contents-event-is-triggered/m-p/1607249#M736205</link>
      <description>&lt;P&gt;Never mind. I solved the problem by using set analysis in the expressions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 21:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selection-is-lost-after-a-Copy-State-Contents-event-is-triggered/m-p/1607249#M736205</guid>
      <dc:creator>msmichael</dc:creator>
      <dc:date>2019-07-29T21:36:20Z</dc:date>
    </item>
  </channel>
</rss>

