• Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    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

    ma-point-list - Any way to alter the display text

    Dashboard Designer & Custom AngularJS Pages
    2
    4
    393
    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.
    • cmusselm
      cmusselm last edited by cmusselm

      Hello,

      I'm using the ma-point-list successfully, but the information it shows for the point can get to be too much and confuse the customer with the default formatting (Device - Name - Tags).

      Is there a property similar to display-type that would allow me to alter what is shown for each data point that my query returns?

      In the screenshot below, I'd like to only have the data point name display, not the device name and tag info.
      0_1596808416896_7c9f7dca-924a-45c6-8842-19a7f24e9044-image.png

      Thanks,
      Chad

      1 Reply Last reply Reply Quote 0
      • MattFox
        MattFox last edited by

        Use the ma-point-query to pull through the points you require or a ma-watch-list-get to pull info from a pre-configured watchlist. Use angularJS's ng repeat to push the values into an md-select item.

        <ma-point-query query="'eq(xid,...)'"  points="pts"></ma-point-query>
        <md-select ng-model="selectedPt">
         <md-option ng-repeat="pt in pts" ng-value="pt">{{pt.name}} - {{pt.tags.join(',')}}</md-option>
        </md-select>
        

        Fox

        Do not follow where the path may lead; go instead where there is no path.
        And leave a trail - Muriel Strode

        1 Reply Last reply Reply Quote 0
        • cmusselm
          cmusselm last edited by

          Great idea, thank you!

          1 Reply Last reply Reply Quote 0
          • MattFox
            MattFox last edited by

            Just realised in my own silly way that the tags is an object. Not an array.. Need more coffee!
            pt.tags.join(',') Will not work.
            I believe you can usept.tags|json or you can choose what tags you want to show with pt.tags.tag1 or whatever naming convention you used...

            Fox

            Do not follow where the path may lead; go instead where there is no path.
            And leave a trail - Muriel Strode

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