• 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

    Events Table for a Specific Data Source.

    How-To
    2
    11
    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.
    • MattFoxM
      MattFox
      last edited by MattFox

      This is really basic but:

      <ma-point-query query="'eq(dataSourceXid,[DATASOURCE_XID])&sort(deviceName,name)&limit(200)'" points="eventPoints"></ma-point-query>
      <md-table-container>
               <table md-table>
      <thead md-head >
                    <tr md-row>
                      <th md-column><span>Device name</span></th>
                      <th md-column><span>Point name</span></th>
                      <th md-column><span>Active Events</span></th>
                    </tr>
                  </thead>
      <tbody>
      <tr ng-repeat="pt in eventPoints">
      <td> {{pt.deviceName}} </td><td> {{pt.name}} </td><td><ma-get-point-value point="pt"></ma-get-point-value>  {{pt.activeEvents}} </td>
      
      </tr>
      </tbody>
      </table>
      </md-table-container>
      

      Am doing this off the top of my head here so not 100% sure it'll work as I haven't tested it...

      Fox

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

      Z 1 Reply Last reply Reply Quote 0
      • Z
        zenvakil @MattFox
        last edited by

        @mattfox said in Events Table for a Specific Data Source.:

        "
        Hey Matt,
        Thanks so much for the help, I've tried what you had there but it doesn't seem to work, I would appreciate a bit more help if you had the time.

        Thanks again :)
        0_1595989623676_ff51d7d8-62b3-4efa-b1cb-ecda581d5598-image.png

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

          Get rid of the [] around your datasource XID for a start -it needs to be the exact same as your datasource XID.
          2, if still nothing, write into the dashboard designer on the edit view: {{eventPoints}}

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

          Z 1 Reply Last reply Reply Quote 0
          • Z
            zenvakil @MattFox
            last edited by

            @mattfox
            Thanks a lot again Matt,
            Removing the square brackets has helped identify the Data Source, but the active Events of pt still doesn' t seem to be working.

            I've attached images for the events table and the result of {{eventPoints}}.

            0_1595995391413_31bcbf09-ffa5-4ca6-a025-a7086d05c2f1-image.png
            0_1595995461806_ff2426f5-456a-4b67-b6f7-1e58a5600670-image.png

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

              Looks like because there are no current active events, hence why it's empty. You have actually set up events for these individual points haven't you?

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

              Z 1 Reply Last reply Reply Quote 0
              • Z
                zenvakil @MattFox
                last edited by

                @mattfox
                Hey Matt,
                Yeah, there are currently active events on most of those point, they show up on <ma-events-table> method.

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

                  Ah I see.. looks like this has changed a bit since I've last commented on that thread..
                  Sorry about that!
                  Let's use the events table component... I have no idea how well this will sit in amongst the table I provided! Some styling may be in order...
                  In fact... you may be able to replace my table tds in entirety with just one <td></td> and plonk this in the middle!

                  <ma-events-table single-point="true" point-id="pt.id" limit="5" active-status="'active'"></ma-events-table>
                  

                  Use that in place of the ma-get-point-values, it's all written in the components api information in the dashboard menu.

                  /ui/docs/ng-mango/ma-events-table
                  

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

                  Z 1 Reply Last reply Reply Quote 0
                  • Z
                    zenvakil @MattFox
                    last edited by

                    @mattfox

                    Thanks Mate,
                    That looks like its worked, it needs a bit of a visual change up, as it shows a new events table for each individual data point, but it looks like thats not too bad.

                    0_1596079374726_c2bbb337-545f-4203-8128-33045d5e7cec-image.png

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

                      No worries, it might involve CSS to hide unwanted elements.
                      Alternatively...
                      perhaps hacking Jared's events viewer code to display a truncated version of this might be beneficial...
                      I'll consider it since it might be beneficial for my dashboard also....

                      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
                      • Z
                        zenvakil
                        last edited by

                        Any new ideas for this? I've just come back to the topic so was wondering if anyone had any insights?

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