Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
soloughlin opened this issue Nov 4, 2022 · 0 comments · May be fixed by #8940
Open

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

soloughlin opened this issue Nov 4, 2022 · 0 comments · May be fixed by #8940
Assignees
Projects

Comments

@soloughlin
Copy link

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

@ghost ghost added this to Not Triaged in Triage Nov 4, 2022
@jwoo-msft jwoo-msft moved this from Not Triaged to P2 in Triage Dec 5, 2022
@jwoo-msft jwoo-msft moved this from P2 to Investigating in Triage Dec 5, 2022
@anna-dingler anna-dingler linked a pull request Jun 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Triage
Investigating
Development

Successfully merging a pull request may close this issue.

2 participants