Hi - This question is kind of a follow-on to my other post about linked table rows (Out-UDGridData with selectable rows?) - but this question is about trying to get the UDPage example to work using the “Dynamic Pages” example here: https://docs.universaldashboard.io/components/pages .
I can’t get it to work. When using the very first Dynamic Page example, with the following modifications, it won’t even load using Start-UDDashboard. It throws the error shown below the following example. I’m just trying to load the page so I can manually enter the URL in the address bar and get it to render.
New-UDPage -Name "aduser" -Url "/aduser/:username" -Endpoint {
param ($username)
New-UDCard -Title "Active Directory User`: $username" -Id "card1"
}
Error message during dashboard loading…
New-UDPage : Parameter set cannot be resolved using the specified named parameters.
At C:\testing\pages\aduser.ps1:1 char:1
- New-UDPage -Name “aduser” -Url “/aduser/:username” -Endpoint {
-
+ CategoryInfo : InvalidArgument: (:) [New-UDPage], ParameterBindingException + FullyQualifiedErrorId : AmbiguousParameterSet,UniversalDashboard.Cmdlets.NewPageCommand
Am I missing something?