Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    • 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 4 Documentation Website Mango 5 Documentation Website Radix IoT LinkedIn

    Duration in the format of W days X hours Y minutes Z seconds in Events page

    Scheduled Pinned Locked Moved User help
    2 Posts 2 Posters 1.5k Views 2 Watching
    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.
    • ricardoR Offline
      ricardo
      last edited by ricardo

      Hi,

      I would like to know if it is possible to configure Mango so that the Duration field can be shown in the format of W:X:Y:Z (W days X hours Y minutes Z seconds) in the Events page.

      For example, instead of showing (1) a few seconds, (2) 16 hours, (3) 24 minutes, etc, it will show (1) 00:00:00:03, (2) 00:00:16:15, (3) 00:00:24:12.

      0_1538130622876_db6917e5-5547-4a26-bcbf-280f8b32f933-image.png

      BR,
      Ricardo

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

        Hi Ricardo,

        There is not a setting to modify how that duration is formatted currently.

        If one wanted to achieve something like this, they could create a modified, custom version of the <ma-events-table></ma-events-table> directive and modify the Moment.js function invoked on the duration in the durationFilter.js from 'humanize' at https://github.com/infiniteautomation/ma-dashboards/blob/main/UI/web-src/ngMango/directives/eventsTable.html#L72 to a function that results in the format you seek. Then you could use this modified directive (you'd have to give it a different name) on custom pages.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post