Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Get-UDElement Not working cross-tabs in PreRelease version 2.8.2 #1454

Closed
leeberg opened this issue Jan 17, 2020 · 0 comments
Closed

Get-UDElement Not working cross-tabs in PreRelease version 2.8.2 #1454

leeberg opened this issue Jan 17, 2020 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@leeberg
Copy link
Contributor

leeberg commented Jan 17, 2020

Describe the Issue

I have a dashboard with a variety of tabbed controls. Get-UDElement is then utilized to retrieve the values across the tabs loaded in my modal. Starting with PreRelease 2.8.2 Get-UDElement is no longer able to retrieve the values and instead returns null.

To Reproduce

New-UDTab -Text 'General' -Content {
    New-UDCard -Content {
        New-UDTextbox -Id "Option1" -Label "Name" -Type text
        New-UDTextbox -Id "Option2" -Label "Description" -Type text 
    }
}

New-UDTab -Text 'Different Tab' -Content {
    New-UDButton -Text "Create A Thing" -Icon folder_plus -OnClick {
    
        # Get Input Data
        $Name = ((Get-UDElement -Id 'Option1').Attributes["value"])
        $Description = ((Get-UDElement -Id 'Option2').Attributes["value"])
                            
    }
}

You will find that in 2.8.2 $Name and $Description will always be null whereas in the previous version this worked fine.

I have not done extensive testing but my guess is either a change in Get-UDElement or UDTab.

Required for v2.8.2 as dashboards built in <2.8.2 will run into breaking changes.

@leeberg leeberg added the bug Something isn't working label Jan 17, 2020
@leeberg leeberg added this to the 2.8.2 milestone Jan 17, 2020
@AlonGvili AlonGvili assigned AlonGvili and unassigned adamdriscoll Jan 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants