Binding properties of a DropDown widget within a compound widget

Hello,
does anybody have experience with dataProvider property binding in a compound widget (CW)? My code looks like this:


After a successful transfer, I can find the dataProvider property in the Data category.
The problem is that it does not work. First, there is no text assignment window, but that is not the main issue. The real problem is that even a correct string does not populate the dropdown.

The syntax is correct and was extracted from a simple dropdown:
[{'value':'0','text':'$IAT/SetUp/parBasic'},{'value':'1','text':'$IAT/SetUp/parDoor'}]

It cannot be populated even when the defaultValue is set in NonBindableProperty or directly in the CW widget’s dataProvider property.

Do you have any idea how to make the dropdown work in a CW?

Thank you.
Regards

Last time I made a compound widget with a dropdown I used this for the dataprovider and it worked:

       <Property xsi:type="BindableProperty" name="dataProvider" type="ItemCollection" defaultValue="[{'value':'a','text':'Add your'},{'value':'b','text':'dataprovider'},{'value':'c','text':'to me'},{'value':'d','text':'please'}]" required="false" category="Settings" localizable="false">

        <Description>Dropdown</Description>
        <Mappings>

            <Mapping widget="DropDown" property="dataProvider" mode="oneWay"/>

        </Mappings>

    </Property>

The type needs to be ItemCollection

1 Like

In case you have a similar issue in mappView in CompoundWidgets head to the widget description in the help:
https://help.br-automation.com/#/en/6/visualization/mappview/widgets/selector/dropdownbox/dropdownbox.html

Then check the type here:

Hi Philipp,
Thank you very much for the quick and precise answer! It works correctly now.
Best regards
Michal Malek