Why cant’ i see and set my VIS as a binding for data provider?
But i can for selectedIndex.
(On V4 it was workingfor DataProvider)
Why cant’ i see and set my VIS as a binding for data provider?
I’m moving this to a new topic because I’m able to replicate what you’re seeing but I’m not sure of the answer myself.
In my test project, the dataProvider (array of strings) is nested inside of an array of custom datatypes. In AS 4.12, I can add this dataProvider to a list binding:
I created the same datatypes and variables in AS 6.0, but I no longer have that option:
Interestingly, I do have the option to do a normal OpcUa binding in AS 6.0 with the same variables:
I can’t find any reasons for this change in the AS 6 release version information. I’m hoping someone sees this and is able to tell us.
It could be that the project was upgraded from version 4.x to 6.0, and the OPC UA variables may not have been enabled recursively. Can you verify this scenario?
@kovarj in my case, I created two separate projects from scratch and was able to replicate it.
Ok Marcus, can you report it?
All OPCUA variables have been enabled recursively.
Please inform me if you have any feedback.
Thanks for your help.
Hi @antonin.capriglione I’m working on a Support ticket to see if this is a known issue and I’ll update when I have more details.
In the meantime, I did find a workaround. Even though the visual binding editor will not let you create the list binding, you can still update the .binding text file. I created a binding in AS 4.12 and copied the text from the .binding file to AS 6 and the selection list works. Here is my example:
<?xml version="1.0" encoding="utf-8"?>
<BindingsSet id="content_0" xmlns="http://www.br-automation.com/iat2015/binding/engineering/v2" xmlns:bt="http://www.br-automation.com/iat2015/bindingListTypes/engineering/v2" xmlns:be="http://www.br-automation.com/iat2015/bindingListEmbedded/engineering/v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Bindings>
<Binding mode="twoWay">
<Source xsi:type="listElement">
<Selector xsi:type="opcUa" refId="::Program:ValueSelector" attribute="value" />
<be:List xmlns:be="http://www.br-automation.com/iat2015/bindingListEmbedded/engineering/v2" xsi:type="be:opcUa" attribute="value">
<bt:Element index="0" refId="::Program:ListboxValues[0].dataProvider" />
<bt:Element index="1" refId="::Program:ListboxValues[1].dataProvider" />
<bt:Element index="2" refId="::Program:ListboxValues[2].dataProvider" />
</be:List>
</Source>
<Target xsi:type="brease" contentRefId="content_0" widgetRefId="ListBox1" attribute="dataProvider" />
</Binding>
</Bindings>
</BindingsSet>
Development team claimed that another workaround is just to restart Automation Studio.