• 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

    Simple html Table containing all values of alphanumeric datapoint

    Mango Automation general Discussion
    3
    9
    2.2k
    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.
    • E
      etantonio
      last edited by

      Hy,
      I want to create a point to insert the description of a maintenance work each time it is done, it is not the same as mango "maintanance events" because we stop completely the plant and we need just to know what is the job and when.

      So I created a alphanumeric datapoint named "maintenanceJob" in a virtual datasource, I can insert new values directly on the datapoints form, but I want also to show on a web page a table with all the values of this point named "maintenanceJob". Is there a template about this simple table?
      Thanks,
      Antonio

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by

        Hi Antonio,

        Have you seen the dashboard examples? You need to enable the Examples and API Docs menu items in on the /ui/adminiistration/edit-menu page.

        You could navigate to /ui/examples/basics/latest-point-values to see one such example of getting the latest N values for a point, and placing them in a table.

        1 Reply Last reply Reply Quote 0
        • E
          etantonio
          last edited by

          @phildunlap said in Simple html Table containing all values of alphanumeric datapoint:

          /ui/adminiistration/edit-menu

          It seems it is not for mango 2.8.8 , maybe I've to download latest mango and try with it

          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            Yes, definitely, that would only be a feature in Mango 3.x, where the dashboarding tools have improved substantially over 2.8

            1 Reply Last reply Reply Quote 0
            • E
              etantonio
              last edited by

              I'm interested to just a predefined point, for example
              internal_mango_num_excel_reports, the following code is running with mango 3.5 instead it is not running with Mango 2.8.8 infact the rows are not showed,
              where's my error?
              Antonio

              <ma-point-values point-xid="FML01-maintenanceJob" values="point1Values" latest="5" rendered="true">
              </ma-point-values>
              
              <md-table-container>
                  <table md-table>
                      <thead md-head>
                      <tr>
                          <th md-column>Time</th>
                          <th md-column>Value</th>
                      </tr>
                      </thead>
                      <tbody md-body>
                      <tr ng-repeat="value in point1Values | orderBy:'-timestamp'">
                          <td md-cell>{{value.timestamp | maMoment:'format':'ll LTS'}}</td>
                          <td md-cell>{{value.value}}</td>
                      </tr>
                      </tbody>
                  </table>
              </md-table-container>
              
              1 Reply Last reply Reply Quote 0
              • Jared WiltshireJ
                Jared Wiltshire
                last edited by

                First step in debugging is to ensure that the data is there and what you think it is. Put this on your page -
                <pre ng-bind="point1Values | json"></pre>

                Developer at Radix IoT

                1 Reply Last reply Reply Quote 0
                • E
                  etantonio
                  last edited by etantonio

                  yes, data is there and available:

                  this is the page showed,

                  [
                    {
                      "value": "In data 15/02/2019 è stato eseguito un intervento di manutenzione straordinaria su 4 di 80 concentratori 1000X, della stringa montata sul tracker di Formello. Su tutti e 4 i concentratori è stata tolta l’umidità, che appariva sulla faccia interna delle lenti, ed è stato ripristinato il vuoto a –0.08 bar alla temperatura ambiente di circa 20 °C. Inoltre è stato riempito di nuovo il circuito idraulico e messo alla pressione di circa 1,3 bar.",
                      "timestamp": 1550653959276
                    },
                    {
                      "value": "In data 15/02/2019 è stato eseguito un intervento di manutenzione straordinaria su 4 di 80 concentratori 1000X, della stringa montata sul tracker di Formello. Su tutti e 4 i concentratori è stata tolta l’umidità, che appariva sulla faccia interna delle lenti, ed è stato ripristinato il vuoto a –0.08 bar alla temperatura ambiente di circa 20 °C. Inoltre è stato riempito di nuovo il circuito idraulico e messo alla pressione di circa 1,3 bar.",
                      "timestamp": 1550653960276
                    },
                    {
                      "value": "In data 15/02/2019 è stato eseguito un intervento di manutenzione straordinaria su 4 di 80 concentratori 1000X, della stringa montata sul tracker di Formello. Su tutti e 4 i concentratori è stata tolta l’umidità, che appariva sulla faccia interna delle lenti, ed è stato ripristinato il vuoto a –0.08 bar alla temperatura ambiente di circa 20 °C. Inoltre è stato riempito di nuovo il circuito idraulico e messo alla pressione di circa 1,3 bar.",
                      "timestamp": 1550653961276
                    },
                    {
                      "value": "In data 15/02/2019 è stato eseguito un intervento di manutenzione straordinaria su 4 di 80 concentratori 1000X, della stringa montata sul tracker di Formello. Su tutti e 4 i concentratori è stata tolta l’umidità, che appariva sulla faccia interna delle lenti, ed è stato ripristinato il vuoto a –0.08 bar alla temperatura ambiente di circa 20 °C. Inoltre è stato riempito di nuovo il circuito idraulico e messo alla pressione di circa 1,3 bar.",
                      "timestamp": 1550653962276
                    },
                    {
                      "value": "In data 15/02/2019 è stato eseguito un intervento di manutenzione straordinaria su 4 di 80 concentratori 1000X, della stringa montata sul tracker di Formello. Su tutti e 4 i concentratori è stata tolta l’umidità, che appariva sulla faccia interna delle lenti, ed è stato ripristinato il vuoto a –0.08 bar alla temperatura ambiente di circa 20 °C. Inoltre è stato riempito di nuovo il circuito idraulico e messo alla pressione di circa 1,3 bar.",
                      "timestamp": 1550653963276
                    }
                  ]
                  
                  Time 	Value
                  

                  and also is it not exactly the required because this datapoint have two different rows:

                  0_1550654230726_Screenshot - 20_02_2019 , 10_16.png

                  1 Reply Last reply Reply Quote 0
                  • phildunlapP
                    phildunlap
                    last edited by phildunlap

                    I think what you're seeing (as far as the record repeating in the JSON you have posted there) is caused by your data source (virtual data source?) polling and the websocket pushing the results of that polling out as latest values even though it was not logged and was not entered into the cache (although it would now be the timestamp in a script if you did the p.time for a point logging value changes). The old UI doesn't have websockets updating the latest values table, which is why you don't see them appear there. But, you should have seen the timestamp on the data point details page flashing with the updates.

                    If your virtual data source only has alphanumeric points, one thing you could do is disable polling on the data source such that it doesn't produce updates unless a user sets a value.

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

                      @etantonio I tried your code and it works perfectly on Mango 3.5, I can't see anything wrong with your markup. The data is there and the markup for the table is correct.

                      I can only suggest inspecting the elements of the table using the debugger to ensure the ng-repeat is working.

                      0_1550681980826_00c24f8c-429f-457b-95d9-b85a2d83da51-image.png

                      Developer at Radix IoT

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