• 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

    Multistate Data Point in Virtual Source

    User help
    3
    12
    2.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.
    • P
      pyeager
      last edited by pyeager

      I had a data point in a virtual datasource that had been misdefined as binary.

      I tried to edit the data point to make it multistate, but ran into a problem.

      The edit data point dialog insisted that I define a start value.

      While this is desirable and reasonable, when I click in the field for the start value, it appears that an empty dropdown is presented right over the field.

      I also tried to do the same thing in the legacy interface. While I was able to enter a start value, there was an error notification when I tried to save it:

      No contextual field found for key textRenderer.textRenderer.multistateValues

      It seems possible that, for a multistate data point, a set of states need to be defined, but I haven't seen a place to do that.

      The behavior appears to be the same whether I try to modify a binary data point to make it multistate, or create a new multistate data point.

      The one multistate data point that I have was created a Mango version or two ago. Perhaps this problem recently appeared?

      Edit: It seems that this problem also renders already existing multistate data points as uneditable, as in this case, setting a start value is required and the same behavior prevents setting one.

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

        Hi pyeager,

        It may not be so intuitive, but you can define states which will appear in the drop down by hitting the enter button when typing in the "Values" field in the new UI. Using the latest released Mango, I was able to change a virtual binary point to multistate and back.

        Edit: It seems that this problem also renders already existing multistate data points as uneditable, as in this case, setting a start value is required and the same behavior prevents setting one.

        Can you share a screenshot? If I open an existing multistate point the save button is not disabled, and I don't need to change anything to be able to save it.

        No contextual field found for key textRenderer.textRenderer.multistateValues

        I saw this as well, but it's unlikely to be fixed as it works in the new UI. It is attempting to complain about text renderer validation, but it looks like there's an extra textRenderer. in identifying where the issue is. If the text renderer were valid, I would expect it to be able to save. In the case of that message, it probably meant that no states were defined in the multistate text renderer.

        P 1 Reply Last reply Reply Quote 0
        • P
          pyeager @phildunlap
          last edited by pyeager

          It may not be so intuitive, but you can define states which will appear in the drop down by hitting the enter button when typing in the "Values" field in the new UI. Using the latest released Mango, I was able to change a virtual binary point to multistate and back.

          Indeed. Not very intuitive. But it does indeed work as you explain.

          Can you share a screenshot? If I open an existing multistate point the save button is not disabled, and I don't need to change anything to be able to save it.

          In the situation I describe, the save button is not disabled. Clicking it results in a "Please fix errors on form before saving". Hard to give you a screenshot, as the message clears itself in a few seconds.

          Edit: To reproduce this, you would have to attempt to edit a multistate data point that has no start value defined.

          Second Edit: How do I add screenshots without making them available on a webserver?

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

            Could you export the JSON for the point and share it? How did you create a multistate virtual point without a start value?

            0_1563906902007_exportPointNewUi.png

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

              You should be able to drag and drop them on the forum's reply window, but that would upload them to imgur. So, if that's a concern, don't upload the screenshot.

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

                Ah, I was able to see the issue with the no start value. I had to delete the state that was set to be the start value, then save the point. Thanks for bringing that to our attention: https://github.com/infiniteautomation/ma-modules-public/issues/53

                1 Reply Last reply Reply Quote 0
                • P
                  pyeager
                  last edited by

                  I am fairly certain the the multistate data point was created with the legacy interface in an older version of Mango.

                  1 Reply Last reply Reply Quote 0
                  • P
                    pyeager @phildunlap
                    last edited by

                    You should be able to drag and drop them on the forum's reply window, but that would upload them to imgur. So, if that's a concern, don't upload the screenshot.

                    Hmmm.... didn't work the first time I tried it.

                    0_1563916540857_multistate1.png

                    0_1563916560738_multistate2.png

                    J 1 Reply Last reply Reply Quote 0
                    • P
                      pyeager @phildunlap
                      last edited by

                      Could you export the JSON for the point and share it?

                      Since you showed me how to define values for a multistate data point, I no longer have one without a start value.

                      1 Reply Last reply Reply Quote 0
                      • J
                        johana crisbany gamez @pyeager
                        last edited by

                        @pyeager I have the same problem, could you solve it
                        ?

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          pyeager @johana crisbany gamez
                          last edited by pyeager

                          @johana-crisbany-gamez

                          Don't feel bad. It took me a while to figure this out.

                          If you define a multistate data point in a virtual data source, you need to define values for the states. On the Virtual data point dialog shown above, when you mouse over the area under Values, up and down arrows will appear at the right side of that field. You can use those arrows to adjust to your first value, or just enter a number directly.

                          Once the correct number shows for your first value, hit enter. Your first value will now appear on a white background, like this:

                          0_1565901899384_vdpvalues.png

                          You will note that the dialog is now helpfully suggesting 2 as the next value. If that works for you, just hit enter, and you will see this:

                          0_1565902029284_vdpvalues2.png

                          Repeat this process until you have defined all your values for the multistate data point.

                          Now when you click in the Start value field, you should see a list of the values you just defined appear over the field. Select the desired value.

                          0_1565902718664_vdpstart.png

                          The above is what is working for me. However, there is a known bug with this dialog.

                          Once you define your multistate data point and save it, if the change type is "no change", when you try to edit it you will not see the state values or the start value you defined. The dialog will not let you save changes until you again enter state values and a start value. This again is a known bug that I expect will be fixed in a future release.

                          J 1 Reply Last reply Reply Quote 1
                          • J
                            johana crisbany gamez @pyeager
                            last edited by

                            @pyeager Oh, I think it's not very intuitive, I hadn't realized that these values ​​were chips.

                            I really appreciate your help, thanks!

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