• 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

    Indirect addressing

    Dashboard Designer & Custom AngularJS Pages
    2
    4
    1.7k
    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.
    • B
      Bhanner
      last edited by

      Hi,
      I'm wanting to setup up a dashboard so it displays the values from different data points based on on the value of a different data point.
      E.g. if data point X has a value of 1 then the value from data point 1 should be displayed, DPX has a value of 2 then the value from data point 2 should be displayed and so on and so forth.
      Thanks in advance
      Billy

      Jared WiltshireJ 1 Reply Last reply Reply Quote 0
      • Jared WiltshireJ
        Jared Wiltshire @Bhanner
        last edited by

        @bhanner You should look at the AngularJS directives ng-if, ng-show, and ng-hide.

        e.g.

        <ma-get-point-value point-xid="source-point-xid" point="sourcePoint"></ma-get-point-value>
        
        <ma-point-value ng-show="sourcePoint.value === 1" point-xid="point-one"></ma-point-value>
        <ma-point-value ng-show="sourcePoint.value === 2" point-xid="point-two"></ma-point-value>
        

        Developer at Radix IoT

        1 Reply Last reply Reply Quote 0
        • B
          Bhanner
          last edited by Bhanner

          Hi Jared,

          Thats part of the way there at what i'm after is there a way to edit it so i can change which point-xid is used for the ma point value?
          Or insert the value of a varible inside the name of the Point xid refference e.g. Point-xide="point-{1}"
          With {1} being the varible
          Kind regards
          Billy H

          Jared WiltshireJ 1 Reply Last reply Reply Quote 0
          • Jared WiltshireJ
            Jared Wiltshire @Bhanner
            last edited by

            @bhanner You can use a point value inside the point-xid attribute

            <ma-get-point-value point-xid="source-point-xid" point="sourcePoint"></ma-get-point-value>
            
            <ma-point-value point-xid="point-{{sourcePoint.value}}"></ma-point-value>
            

            Developer at Radix IoT

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