<?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: Using a button to set a variable that's alternate state dependent in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-set-a-variable-that-s-alternate-state/m-p/2117131#M1224562</link>
    <description>&lt;P&gt;So there's this link here:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Alternate%20States.htm#:~:text=Variables%20in%20Alternate%20States,expanded%20in%20the%20default%20state" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Alternate%20States.htm#:~:text=Variables%20in%20Alternate%20States,expanded%20in%20the%20default%20state&lt;/A&gt;. but I guess I'm not sure how to integrate the expansion into the button logic.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 19:29:06 GMT</pubDate>
    <dc:creator>jwaligora</dc:creator>
    <dc:date>2023-09-14T19:29:06Z</dc:date>
    <item>
      <title>Using a button to set a variable that's alternate state dependent</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-set-a-variable-that-s-alternate-state/m-p/2116201#M1224540</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In its simplest form, what I'm after is a toggle variable that has two versions, one per alternate state; each version is set by a separate button. Essentially the easy solution is just to have two separate variables (one per state), but I'm just trying to understand if sticking with a single variable would be at all possible.&lt;/P&gt;
&lt;P&gt;Scenario:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternate State A has button A that 'Sets Variable' vToggle using equation = if(vToggle=0,1,0)&lt;BR /&gt;Alternate State B has button B that 'Sets Variable' vToggle using equation = if(vToggle=0,1,0)&lt;/P&gt;
&lt;P&gt;Note: In my implementation, Alternate States A &amp;amp; B are in separate tabs with all objects relying on alternate state inheritance.&lt;/P&gt;
&lt;P&gt;I thought that relying on 'Alternate State' = &amp;lt;inherited&amp;gt; in the General tab of the buttons along with 'Alternate State'=A (or B, depending on button location), would be sufficient to control these toggles independently, but they still seem to be tied together. Perhaps my problem goes back to creation of the variable. Either way, I'm looking for feedback / suggestions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 18:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-set-a-variable-that-s-alternate-state/m-p/2116201#M1224540</guid>
      <dc:creator>jwaligora</dc:creator>
      <dc:date>2023-09-12T18:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using a button to set a variable that's alternate state dependent</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-set-a-variable-that-s-alternate-state/m-p/2116215#M1224541</link>
      <description>&lt;P&gt;As far as I know, variables don't have states, meaning you would need to create two variables.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 19:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-set-a-variable-that-s-alternate-state/m-p/2116215#M1224541</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-09-12T19:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using a button to set a variable that's alternate state dependent</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-set-a-variable-that-s-alternate-state/m-p/2117131#M1224562</link>
      <description>&lt;P&gt;So there's this link here:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Alternate%20States.htm#:~:text=Variables%20in%20Alternate%20States,expanded%20in%20the%20default%20state" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Alternate%20States.htm#:~:text=Variables%20in%20Alternate%20States,expanded%20in%20the%20default%20state&lt;/A&gt;. but I guess I'm not sure how to integrate the expansion into the button logic.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 19:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-set-a-variable-that-s-alternate-state/m-p/2117131#M1224562</guid>
      <dc:creator>jwaligora</dc:creator>
      <dc:date>2023-09-14T19:29:06Z</dc:date>
    </item>
  </channel>
</rss>

