• 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

    Using <ma-state-params

    Dashboard Designer & Custom AngularJS Pages
    4
    15
    4.3k
    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.
    • CraigWebC
      CraigWeb
      last edited by CraigWeb

      Hi Phillip

      First thing to confirm is when you registered the page in the edit menu page did you include ?DN in the URL path.
      The second thing, once that is confirmed what happens if you manually add the parameter into your browsers URL does it do what you expect/want?

      here is how I have done it in the past:
      My button on page 1:
      <md-button ui-state="'ui.site'" style=" font-size: 16px; " ui-state-params="{site: p.tags.Site}" ng-style="{'text-transform': 'none'}">{{p.deviceName}}</md-button>

      My page with a dynamic watchlist:

      <ma-watch-list-get ng-model="designer.watchList" parameters="designer.parameters" on-points- change="designer.points = $points" id="20969fc2-a491-4616-9130-35a2555b37c2" watch-list-xid="SystemQueryWL" auto-state-params="true"></ma-watch-list-get>
      <ma-watch-list-parameters id="ac84b0bc-6c9a-4963--3ae644855233" ng-model="designer.parameters" watch-list="designer.watchList" ng-change="updateParams = designer.parameters" ></ma-watch-list-parameters>
      
      

      I did not need to use <ma-state-params>

      1 Reply Last reply Reply Quote 0
      • P
        Phillip Weeks
        last edited by

        @craigweb said in Using <ma-state-params:

        <ma-watch-list-parameters id="ac84b0bc-6c9a-4963--3ae644855233" ng-model="designer.parameters" watch-list="designer.watchList" ng-change="updateParams = designer.parameters" ></ma-watch-list-parameters>

        Thank you Thank you I followed your suggestion and got it working correctly now.

        1 Reply Last reply Reply Quote 0
        • C
          Christophe
          last edited by

          @craigweb said in Using <ma-state-params:

          ner.parameters" watch-list="designer.watchList" ng-change="updateParams = design

          Hello.
          I would like to realize the same thing but it does not work. I have to make a mistake but I do not know

          Page 1 with button

          <md-button id="3cb4a0ad-324b-429e-80d0-6421b1eeeeea" style="position: absolute; left: -8px; top: -6px;" ui-state="'ui.test-recup'" ui-state-params="{dn: RDCR1}"></md-button>
          

          Page 2 with a dynamic watchlist

          <ma-watch-list-get ng-model="designer.watchList" parameters="designer.parameters" on-points-change="designer.points = $points" id="20969fc2-a491-4616-9130-35a2555b37c2" watch-list-xid="WL_e4a7a8d5-fa26-481d-8cad-adc4b2b4108a" auto-state-params="true"></ma-watch-list-get>
          
          <ma-watch-list-parameters id="fb3697ef-1e89-4461-aaf3-5681d1bc3087" ng-model="designer.parameters" watch-list="designer.watchList" ng-change="updateParams = designer.parameters" ></ma-watch-list-parameters>
          
          <ma-gauge-chart id="b43733ee-c528-48a6-99cd-9745036dddb5" style="position: absolute; width: 200px; height: 200px; left: 481px; top: 191px;" point="designer.points | filter:{name:'CoolingValve'}:true | maFirst"></ma-gauge-chart>
          

          The link does not work
          And on page 2, if I add the parameter in the browser URL it does not work

          Thank you

          1 Reply Last reply Reply Quote 0
          • CraigWebC
            CraigWeb
            last edited by

            Hi Christophe

            To troubleshoot your button open your browser's console and look for errors when you click on the button.

            For your page 2 make sure you registered the page to take parameters as in the picture below:
            0_1555598392289_untitled (10).png

            C 1 Reply Last reply Reply Quote 0
            • C
              Christophe @CraigWeb
              last edited by

              HI @craigweb

              Thanks for your help

              The link of the function button I made a mistake in the link

              0_1555600082019_Capture.PNG
              0_1555600066396_Capture1.PNG

              The problem would not come from the fact that the expected parameter is Point Hierarchy

              Thank you

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

                @Christophe It wont work with the "Point hierarchy" parameter type. I suggest using a tag instead. Also I think the parameter names are case sensitive, so DN != dn

                Developer at Radix IoT

                C 1 Reply Last reply Reply Quote 0
                • C
                  Christophe @Jared Wiltshire
                  last edited by

                  @jared-wiltshire said in Using <ma-state-params:

                  It wont work with the "Point hierarchy" parameter type. I suggest using a tag instead. Also I think the parameter names are case sensitive, so

                  Thanks for your return
                  For the tag instead, how to set it up because I don't understand
                  Thank you

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

                    @Christophe Use the "Bulk data point editor" under the administration menu. Select hierarchy folders using the left panel then apply a tag to them using the right panel.

                    • Click this icon 0_1555689095312_1837d971-3c6e-454d-a6fe-6c53678a5c5b-image.png
                    • Enter a tag name
                    • Type the tag value in the column header
                    • Select all the data points in the table by clicking the top checkbox
                    • Click "Start bulk edit"

                    Note this process will change a little in the upcoming 3.6 release.

                    Developer at Radix IoT

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      Christophe @Jared Wiltshire
                      last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • C
                        Christophe
                        last edited by

                        @Jared-Wiltshire

                        Hello
                        I try the solution of "Bulk data point editor"
                        but I can not make it work.
                        So I change the "watch list" using the name of the device.
                        It works
                        or maybe my mistake with "Bulk data point editor"

                        Thank you for your help

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

                          I have no idea what you have tried, you have given me almost no information to go off. Did you try the steps I gave you? At what point did you go wrong? Have you checked that you applied the tags correctly?

                          Developer at Radix IoT

                          1 Reply Last reply Reply Quote 0
                          • C
                            Christophe
                            last edited by

                            Hello
                            Sorry for my lack of explanation

                            • In "Bulk data point edit" creation of the parameter "Regul" with as parameter Regul1 and Regul2 0_1556092361919_Capture1.PNG
                            • In "Edit Menu" on page 2 add in the url "? Regul"
                              0_1556092410061_Capture.PNG
                            • In page 1 buttons creation with parmatre Regul1
                            <md-button id="3cb4a0ad-324b-429e-80d0-6421b1eeeeea" style="position: absolute; left: 32px; top: 20px; width: 97px; height: 42px; text-align: center;" ui-state="'ui.testRecup'" ui-state-params="{Regul:'Regul1'}">Regulateur 1</md-button>
                            
                            • In page 2
                            <ma-watch-list-get ng-model="designer.watchList" parameters="designer.parameters" on-points-change="designer.points = $points" id="20969fc2-a491-4616-9130-35a2555b37c2" watch-list-xid="WL_Test" auto-state-params="true"></ma-watch-list-get>
                            
                            <ma-watch-list-parameters id="17e52579-3f62-4a94-8397-586316fda6d0" ng-model="designer.parameters" watch-list="designer.watchList" style="position: absolute; width: 100%; left: 0px; top: 0px;"></ma-watch-list-parameters>
                            
                            <!--Display Gauge-->
                            <ma-gauge-chart id="b43733ee-c528-48a6-99cd-9745036dddb5" style="position: absolute; width: 200px; height: 200px; left: 291px; top: 131px;" point="designer.points | filter:{name:'CoolingValve'}:true | maFirst"></ma-gauge-chart>
                            

                            Thank

                            1 Reply Last reply Reply Quote 0
                            • CraigWebC
                              CraigWeb
                              last edited by

                              HI @Christophe

                              Your watchlist also needs to use the tags in its query:
                              0_1556098811660_untitled (11).png
                              0_1556098816189_untitled (12).png

                              Becarefull, parameters are case sensitive.

                              1 Reply Last reply Reply Quote 0
                              • C
                                Christophe
                                last edited by

                                @Jared-Wiltshire
                                @CraigWeb

                                Thank you for your help it works perfectly

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