Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Creating a toggle favorite for a variable

Featured Replies

Posted

I'd like to create a favorite that can enable/disable a behavior, using a state variable.  Swear I had this work before, but now I can't replicate it.

What I've tried to do in UD Mobile is to create a favorite from a state variable I have in IoX.  I'm using that variable as a condition to enable a program folder.  I've tried to change the properties of that node's View Type to "switch", as I'd like to create some sort of toggle.

What I've seen doing this is that the switch toggle then flips the value of the state variable between -2 and +2 (depending on precision - higher precision shows like -2.14 and 2.14 for instance).  I also note that the toggling isn't completely deterministic - sometimes the state of the toggle doesn't correspond to the numeric value, as in toggling the switch from 2 (on) to -2 (off) shows the switch graphic go to off, then back on, even if the value is -2.

I assume this isn't a supported way to control a state variable, but is there some way to create such an effect?  Thanks in advance. 

Solved by Javi

Go to solution
  • Author

Thanks, that's helpful, got it working.  The note about the variable/program startup refresh was good.

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.