<?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 Page variable binded to boolean doesn't work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/page-variable-binded-to-boolean-doesn-t-work/m-p/13650420#M2039477</link>
    <description>&lt;P&gt;Any page variable binded as boolean works, if i have two containers and bind them to a boolean state, one false and the other true, and bind a button to change the variable on click it does no work&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2024 19:08:59 GMT</pubDate>
    <dc:creator>Josephrezende</dc:creator>
    <dc:date>2024-03-26T19:08:59Z</dc:date>
    <item>
      <title>Page variable binded to boolean doesn't work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/page-variable-binded-to-boolean-doesn-t-work/m-p/13650420#M2039477</link>
      <description>&lt;P&gt;Any page variable binded as boolean works, if i have two containers and bind them to a boolean state, one false and the other true, and bind a button to change the variable on click it does no work&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 19:08:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/page-variable-binded-to-boolean-doesn-t-work/m-p/13650420#M2039477</guid>
      <dc:creator>Josephrezende</dc:creator>
      <dc:date>2024-03-26T19:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Page variable binded to boolean doesn't work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/page-variable-binded-to-boolean-doesn-t-work/m-p/13651382#M2039478</link>
      <description>&lt;P&gt;It's not clear to me what you mean:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"two containers and bind them to a boolean state" - do you mean you bind the Visible property to the boolean variable?&lt;/LI&gt;&lt;LI&gt;"one false and the other true" - you have 2 variables? Or you use a formula with a NOT operation?&lt;/LI&gt;&lt;LI&gt;"two containers" - one inside the other, parallel? one after each other?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is the scenario you have 2 containers you want to bind its Visible property to a variable and then click to show one, then the other?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 13:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/page-variable-binded-to-boolean-doesn-t-work/m-p/13651382#M2039478</guid>
      <dc:creator>Dan_Wroblewski</dc:creator>
      <dc:date>2024-03-27T13:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Page variable binded to boolean doesn't work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/page-variable-binded-to-boolean-doesn-t-work/m-p/13651485#M2039479</link>
      <description>&lt;P&gt;Hello Dan,&lt;/P&gt;&lt;P&gt;Sorry for the confused report, I'll send print to help illustrate what i want to say:&lt;/P&gt;&lt;P&gt;I have a variable called pageVars.booleanVar with the initial value = true&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_24.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/87508i6B776B2F5F472908/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_24.png" alt="Screenshot_24.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; My canvas has a photo, 2 containers (one with a spinner and the other with the credentials input) and a button:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_27.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/87509iB7A6FB30FD4A922B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_27.png" alt="Screenshot_27.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I binded the variable to the spinner container visibility and the inverse value to the login container visibility so when show one don't show the other&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_22.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/87513i05A26EB2131EFC25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_22.png" alt="Screenshot_22.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_23.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/87515i20B6855172863807/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_23.png" alt="Screenshot_23.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; After I binded a flowfunction to invert the variable when tap on the button and a toast with "Done" after:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_25.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/87517iE1E583459870D067/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_25.png" alt="Screenshot_25.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but when tapping the button nothing works, even setting the function to set the variable to false, still don't work:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_26.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/87519i30D5A5A3DE888B5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_26.png" alt="Screenshot_26.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And the toast doesn't pop up, but if i use an appVars it works.&lt;/P&gt;&lt;P&gt;I tried to share a screen record i did but i don't have permission to do that...&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 14:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/page-variable-binded-to-boolean-doesn-t-work/m-p/13651485#M2039479</guid>
      <dc:creator>Josephrezende</dc:creator>
      <dc:date>2024-03-27T14:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Page variable binded to boolean doesn't work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/page-variable-binded-to-boolean-doesn-t-work/m-p/13654096#M2039480</link>
      <description>&lt;P&gt;I was able to do exactly what you wanted with the page variable. I even created the third-party authentication, which I assume you used, and created it with those components/page. Not sure what is happening for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you say nothing happens, do you see the spinner and the login screen at the beginning? Can you show with Alert the value of the boolean (you'll have to use a formula and IF function)?&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 12:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/page-variable-binded-to-boolean-doesn-t-work/m-p/13654096#M2039480</guid>
      <dc:creator>Dan_Wroblewski</dc:creator>
      <dc:date>2024-03-31T12:41:46Z</dc:date>
    </item>
  </channel>
</rss>

