• 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 storing selected datapoint value across the pages of the mango dashboards.

    Dashboard Designer & Custom AngularJS Pages
    3
    3
    2.1k
    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.
    • S
      SabariGhosh
      last edited by

      How can I store selected datapoint value across the pages of the mango dashboards.

      1 Reply Last reply Reply Quote 0
      • G
        gary
        last edited by

        It sounds like this is not really a Mango related question but a web development related one.

        You probably want to use localStorage. Alternatively you could use cookies but I think you're most likely to want to use localStorage. Cookies are sent to the server with every HTTP request, which would be pointless in the case of a Mango dashboard.

        These APIs allow you to store data on the client machine for use at a later time. They have limitations and risks. The user can remove this data and it can expire when the user closes their browser or after a predefined period of time. You shouldn't store anything sensitive on the client side and when retrieving data, it should be treated with the same caution as any other input because it is easy for a malicious user to manipulate.

        Gary

        1 Reply Last reply Reply Quote 0
        • Will GellerW
          Will Geller
          last edited by Will Geller

          Have you had a look at the <ma-json-store> component? Adding this component to the html markup of your code provides a way of storing and retrieving data in realtime across pages, clients and web browsers. Unlike local storage data is stored in Mango's database and is synced in realtime across all screens.

          More info here:
          http://localhost:8080/dashboards/examples/utilities/json-store

          http://localhost:8080/dashboards/docs/ma-dashboards/ma-json-store

          Infinite Automation - UI Developer

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