• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 4 Documentation Website Mango 5 Documentation Website Radix IoT LinkedIn

    Show/hide entity on graphical pages

    Scheduled Pinned Locked Moved User help
    6 Posts 2 Posters 2.7k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      skiv71
      last edited by

      hi,

      what would be the easiest way to show or hide an entity on the pages?

      i.e. simple point showing mins remaning... but no relevant when the process is not running...

      i've had a look and not been able to see anything other than making a white image block and covering the item in question based on simple point integer value.

      thanks

      Neil

      1 Reply Last reply Reply Quote 0
      • S Offline
        skiv71
        last edited by

        if i cannot do this, i know i can do this, but i dont know the code :-/

        server side script... holding register tag...

        test tag > 0 then show text box but embed tag value next to text

        else show nothing...

        i been messing with some syntax but not working..

        any pointers please...

        thanks

        1 Reply Last reply Reply Quote 0
        • S Offline
          skiv71
          last edited by

          i got this but i dont know how to display the value within the <span> bit :-/

          please help

          [code]

          if (value>0)
          return '<span style="background-color:#F8BB00;font-size:10px;font-weight:regular;border:1px solid #F07800;padding:1px 5px 1px 5px;">defrost time left: <span style="font-weight:bold"> 0 mins</span>'
          else;

          1 Reply Last reply Reply Quote 0
          • M Offline
            mlohbihler
            last edited by

            Try this:

            
            var s = &quot;&quot;;
            if (value &gt 0) {
              s += '&lt;span style="background-color:#F8BB00;font-size:10px;';
              s += 'font-weight:regular;border:1px solid #F07800;';
              s += 'padding:1px 5px 1px 5px;"&gt;defrost time left: &lt;span style="';
              s += 'font-weight:bold"&gt; '+ value +' mins&lt;/span&gt;';
            }
            return s;
            
            

            Best regards,
            Matthew

            1 Reply Last reply Reply Quote 0
            • S Offline
              skiv71
              last edited by

              thanks, that worked fine... like to say i understood it lol.....

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post