Jump to content

Creating a toggle favorite for a variable


webminster
Go to solution Solved by Javi,

Recommended Posts

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. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37.3k
    • Total Posts
      373.4k
×
×
  • Create New...