Skip to content

[Designer] Data binding button produces invalid binding for arrays #8013

Open
@soloughlin

Description

@soloughlin

Problem Description

Clicking the ... or Bind... data binding button and selecting a property which is an array, or is contained in an array produces data binding strings in the form ${$root['propertyName[0]'}, which are not valid.

Card JSON

{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5",
    "body": [
        {
            "type": "TextBlock",
            "text": "${$root['employees[0]']['name']}",
            "wrap": true
        }
    ],
    "data": {
        "employees": [
            {
                "name": "Gabriela Leticia"
            },
            {
                "name": "Natalia Tercera"
            },
            {
                "name": "Waleska Cristobal"
            }
        ]
    }
}

Screenshot

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions