<?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: Alternate state and list box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alternate-state-and-list-box/m-p/625416#M478080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well Source would be your Alternate State A, the Target would be B (Check my example qvw, I use the default state ($) as source, and State1 for the target). The Alternate State box won't do anything in this instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This action however will copy the entire contents of your first state into your target state, not just one selection. If this is okay, then this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want one field to transfer to your B state, then you could use the trigger Select in Field instead, with Alternate State switched to state B and:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field: [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Cost Centre&lt;/SPAN&gt;]&lt;/P&gt;&lt;P&gt;Search String: ='(' &amp;amp; GetFieldSelections([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Cost Centre&lt;/SPAN&gt;], '|') &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, however with GetFieldSelections, it will only list out only about 8 or so selections. So you may need to put a number that's greater than the number of values you will select like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='(' &amp;amp; GetFieldSelections([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Cost Centre&lt;/SPAN&gt;], '|', 100) &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2014 16:20:53 GMT</pubDate>
    <dc:creator>jerem1234</dc:creator>
    <dc:date>2014-03-26T16:20:53Z</dc:date>
    <item>
      <title>Alternate state and list box</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-state-and-list-box/m-p/625412#M478076</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;&lt;/P&gt;&lt;P&gt;Is there any way that when I select Item in the &lt;STRONG&gt;List Box 1&lt;/STRONG&gt; (&lt;EM&gt;alternate state A&lt;/EM&gt;) &lt;/P&gt;&lt;P&gt;will automatically be selected in &lt;STRONG&gt;List Box 2&lt;/STRONG&gt; (&lt;EM&gt;alternate state B&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;* the same item (selection).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 14:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-state-and-list-box/m-p/625412#M478076</guid>
      <dc:creator />
      <dc:date>2014-03-26T14:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate state and list box</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-state-and-list-box/m-p/625413#M478077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes see attached example. You can add a trigger in document properties on the Trigger Tab for the field you want. Field -&amp;gt;On Select and/or Field-&amp;gt; OnChange. Then add the trigger Copy State Contents with Source state (maybe $) to target state (maybe State1). Then the selection of Listbox 1 should automatically set the listbox in the alternate state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 14:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-state-and-list-box/m-p/625413#M478077</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-03-26T14:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate state and list box</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-state-and-list-box/m-p/625414#M478078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a Field Event Trigger ('On Change' type) on the field of list box 1 with a Select in Field on field of list box 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 14:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-state-and-list-box/m-p/625414#M478078</guid>
      <dc:creator />
      <dc:date>2014-03-26T14:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate state and list box</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-state-and-list-box/m-p/625415#M478079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="QV_Help2.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/55947_QV_Help2.jpg" style="width: 620px; height: 517px;" /&gt;Hi there,&lt;/P&gt;&lt;P&gt;I still have some problems with this. Not sure what should be in "Source State" field and "Target State" field. Also what about "Alternate State" field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My List Boxes fields are:&lt;/P&gt;&lt;P&gt;Cost Centre A (alternate state A)&lt;/P&gt;&lt;P&gt;Cost Centre B (alternate state B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached picture:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 16:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-state-and-list-box/m-p/625415#M478079</guid>
      <dc:creator />
      <dc:date>2014-03-26T16:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate state and list box</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-state-and-list-box/m-p/625416#M478080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well Source would be your Alternate State A, the Target would be B (Check my example qvw, I use the default state ($) as source, and State1 for the target). The Alternate State box won't do anything in this instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This action however will copy the entire contents of your first state into your target state, not just one selection. If this is okay, then this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want one field to transfer to your B state, then you could use the trigger Select in Field instead, with Alternate State switched to state B and:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field: [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Cost Centre&lt;/SPAN&gt;]&lt;/P&gt;&lt;P&gt;Search String: ='(' &amp;amp; GetFieldSelections([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Cost Centre&lt;/SPAN&gt;], '|') &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, however with GetFieldSelections, it will only list out only about 8 or so selections. So you may need to put a number that's greater than the number of values you will select like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='(' &amp;amp; GetFieldSelections([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Cost Centre&lt;/SPAN&gt;], '|', 100) &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 16:20:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-state-and-list-box/m-p/625416#M478080</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-03-26T16:20:53Z</dc:date>
    </item>
  </channel>
</rss>

