Using the latest UniversalDashboard. I am unable to get the search working for New-UDTable. Search box is displayed but all searches are empty results. Guidance is requested. Code used is below.
$PageInactive = New-UDPage -Name "Inactive" -Content {
New-UDDynamic -Id 'InactiveGrid' -Content {
$Result = Get-InactiveUsers
$Columns = @(
New-UDTableColumn -Title "" -Property 'enabled' -Render {
if ($EventData.enabled) { New-UDIcon -Icon "user" } Else { New-UDIcon -Icon "UserSlash" }
}
New-UDTableColumn -Title 'Name' -Property 'Name'
New-UDTableColumn -Title 'UserName' -Property 'SAMAccountName'
New-UDTableColumn -Title 'Title' -Property 'title'
New-UDTableColumn -Title 'Manager' -Property 'managerName'
New-UDTableColumn -Title 'LastMod' -Property 'whenChanged' -render { New-UDDateTime $EventData.whenChanged -format "MM/DD/YYYY"}
New-UDTableColumn -Title 'Count' -Property 'GCount' -Render {
New-UDTooltip -Place right -Type info -Effect float -TooltipContent { New-UDHtml -Markup "$($EventData.UserGroupsHtml)" } -Content { New-UDHtml -Markup ($EventData.UserGroupsCount) }
}
New-UDTableColumn -Title 'Archive' -Property 'Archive' -Render {
$ADUser = $EventData
New-UDButton -icon (New-UDIcon -Icon warehouse -size "lg") -Style @{ backgroundColor = 'red' } -OnClick {
Show-UDToast -Message ("Moving : " + $ADUser.displayName) -Duration 4000 -Position center
ArchiveUser -aduser (Get-ADUser $ADuser.samaccountname)
Sync-UDElement -Id "InactiveGrid" -Broadcast
}
}
)
New-UDTable -Title 'Inactive Users' -Data $Result -Columns $Columns -dense -showpagination -pagesize 10 -ShowSort -ShowSearch
} -AutoRefresh -AutoRefreshInterval 600 -loadingcomponent {
New-UDCenter {
New-UDTypography -Paragraph 'Loading Users' -Variant h5 -GutterBottom
New-UDProgress -Circular
}
}
}