I’ve got the following code in the columns list of a UDTable which is in a UDDynamic. The $scope
variable is set from a session variable. The table loads with the team property showing. If I change the scope, I get the toast saying that the column will be hidden, but the column still shows up. Same thing if I uncomment the New-UDTableColumn command.
Any ideas?
if ($scope -in 'None', 'All', 'Rich') {
show-udtoast -Message "Team should be showing"
New-UDTableColumn -Property Team -FilterType Select -Filter -IncludeInExport
}
else {
show-udtoast -Message "Team should be hidden"
#New-UDTableColumn -Property Team -Hidden
}
Product: PowerShell Universal
Version: 3.5.5