• 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

    How-to Expose a filtered point through ng-model?

    Dashboard Designer & Custom AngularJS Pages
    2
    6
    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.
    • P
      Phillip Weeks
      last edited by Phillip Weeks

      Would anyone know how to take a watchlist filtered point such as below and expose it using ng-model?
      point="designer.points | filter:{name:'SETPOINT'}:true | maFirst"
      And expose it as ... ng-model="mypoint"

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

        @phillip-weeks said in How-to Expose a filtered point through ng-model?:

        Would anyone know how to take a watchlist filtered point such as below and expose it using ng-model?
        point="designer.points | filter:{name:'SETPOINT'}:true | maFirst"
        And expose it as ... ng-model="mypoint"

        Perhaps you could give us some context as to what you are trying to achieve. ng-model for what component? It is not possible to use a non-assignable expression for a ng-model attribute.

        Developer at Radix IoT

        1 Reply Last reply Reply Quote 0
        • P
          Phillip Weeks
          last edited by Phillip Weeks

          Jared I want to pass the watch list point selected by the filter to a statistics object and then set the to and from of that object with the output of a date range object that i pass a date preset to depending on the button clickedby the user. Thus I would like to get this point into a variable which the statistics object can see.

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

            @phillip-weeks said in How-to Expose a filtered point through ng-model?:

            Jared I want to pass the watch list point selected by the filter to a statistics object and then set the to and from of that object with the output of a date range object that i pass a date preset to depending on the button clickedby the user. Thus I would like to get this point into a variable which the statistics object can see.

            Are you talking about <ma-point-statistics>? It does not use the ng-model attribute, it has a point or point-xid attribute.

            Developer at Radix IoT

            P 1 Reply Last reply Reply Quote 0
            • P
              Phillip Weeks @Jared Wiltshire
              last edited by Phillip Weeks

              @jared-wiltshire I created a watchlist that contains points from on a query that selects across multiple devices. Ie. (PointA1, PointA2, PointA3... PointD1,PointD2,PointD3) I want to take specific points (using point-xid if necessary) that exist in this designer.points array and I want to provide it to <ma-point-statistics>... How do I do this?

              P 1 Reply Last reply Reply Quote 0
              • P
                Phillip Weeks @Phillip Weeks
                last edited by Phillip Weeks

                @phillip-weeks
                for an easy example lets say I select across 10 devices and found 20 points, 10 APARTMENT points and 10 TEMP points and they exist in designer.points.
                So the correct method is to filter these points based on the device relevant index.
                with a filter like...
                <ma-point-statistics id="STATS1" from="dateBar.from" to="dateBar.to" first-last="false" rendered="true" style="position: absolute; left: 762px; top: 515px; width: 232.641px; height: 35px;" point="designer.points | filter:name:UnitElemVar,deviceName:designer.parameters.UnitNumber.substring(0,8)+'1'}
                :true | maFirst" statistics="statsObj1"></ma-point-statistics>
                Using the W/L parameter as the base index I can select any point through the array. Yay
                And this retrieves the right record. sorry for my confusion.

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