Multistate Data Point in Virtual Source
-
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?
-
Could you export the JSON for the point and share it? How did you create a multistate virtual point without a start value?
-
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.
-
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
-
I am fairly certain the the multistate data point was created with the legacy interface in an older version of Mango.
-
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.
-
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.
-
@pyeager I have the same problem, could you solve it
? -
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:
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:
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.
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.
-
@pyeager Oh, I think it's not very intuitive, I hadn't realized that these values were chips.
I really appreciate your help, thanks!