BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: ESD - Storing toggle value in Scroll Switch Page  (Read 8569 times)

ndsmith34

  • Newbie
  • *
  • Posts: 6
    • View Profile
ESD - Storing toggle value in Scroll Switch Page
« on: April 08, 2021, 08:56:07 PM »

I am adding a toggle to turn on dark mode for a set of screens in a Scroll Switch Page layout. I can get things to work as intended, but then if the pages loop around by swiping to the side several times, the toggle resets and turns off dark mode. I have tried using a variable, but I can never get it to both activate the dark mode and not reset. I'm trying to do all this in EVE Screen Designer. What method should I use to store the value of the toggle switch outside its page so it doesn't reset when the page gets reloaded?
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 744
    • View Profile
Re: ESD - Storing toggle value in Scroll Switch Page
« Reply #1 on: April 12, 2021, 01:54:56 PM »

Hello,

Thank you for your question.

Can you just clarify if you are using an ESD global variable or a global variable within your MCU to store the dark mode state of the page?

Best Regards,
BRT Community
Logged

ndsmith34

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: ESD - Storing toggle value in Scroll Switch Page
« Reply #2 on: April 12, 2021, 05:52:41 PM »

I don't know if it's a global variable or not. I'm using the block from Logic Interface > Variable.
Also, I'm using ESD 4.8.
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 744
    • View Profile
Re: ESD - Storing toggle value in Scroll Switch Page
« Reply #3 on: April 13, 2021, 12:06:17 PM »

Hello,

Thank you for the clarification, in this case the variable will be part of page structure, if page structure is freed, the variable will be reset.

Generally we would advise using a MCU variable to store the value of any toggle witches you wish to remain persistent across several pages.

Best Regards,
BRT Community
Logged