webui/cmbgroups.ps1

Get-SkParams

$PageTitle   = "CM Boundary Groups"
if (![string]::IsNullOrEmpty($Script:SearchValue)) {
    $PageTitle += ": $($Script:SearchValue)"
}
$content  = ""
$menulist = ""
$tabset   = ""
$pagelink = "cmbgroups.ps1"
try {
    $params = @{
        QueryFile = "cmboundarygroups.sql" 
        PageLink  = $pagelink 
        Columns   = ('BGName','GroupID','Description','Flags','DefaultSiteCode','CreatedOn','Boundaries','SiteSystems')
        Sorting   = "BGName"
    }
    $content = Get-SkQueryTableMultiple @params
    $content += Write-SkDetailView -PageRef $pagelink -Mode $Detailed
}
catch {
    $content = "<table id=table2><tr><td>Error: $($Error[0].Exception.Message)</td></tr></table>"
}
finally {
    Write-SkWebContent
}