• 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 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Show/hide entity on graphical pages

    User help
    2
    6
    2.0k
    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
      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
        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
          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
            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
              skiv71
              last edited by

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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post