Izenda Logo

This documentation is for the legacy Izenda 6 product. Documentation for the new Izenda 7 product can be found at https://www.izenda.com/docs/

About

This method is used on the report list page and returns a list of reports that are guaranteed to be available to the current user, taking into account all hidden filters and settings. This method can be overridden in your CustomAdHocConfig class as needed. Here is a sample of what an overridden implementation could look like.

Global.asax (C♯)

public override Dictionary<ReportInfo, ReportSet> FilteredListReportsDictionary()
{
    Dictionary<ReportInfo, ReportSet> reports = base.FilteredListReportsDictionary();
    Dictionary<ReportInfo, ReportSet> result = new Dictionary<ReportInfo, ReportSet>();
    foreach (ReportInfo info in reports.Keys)
    {
        if (info.Category == "Hidden reports")
            continue;
        if (reports[info] != null && reports[info].CanBeLoaded)
            result.Add(info, reports[info]);
    }
    return result;
}

Global.asax (VB.NET)

Public Overrides Function FilteredListReportsDictionary() As Dictionary(Of ReportInfo, ReportSet)
    Dim reports As Dictionary(Of ReportInfo, ReportSet) = MyBase.FilteredListReportsDictionary()
    Dim result As New Dictionary(Of ReportInfo, ReportSet)
    For Each info As ReportInfo In reports.Keys
        If info.Category = "Hidden reports" Then Continue For
        If reports(info) IsNot Nothing AndAlso reports(info).CanBeLoaded Then result.Add(info, reports(info))
    Next
    Return result
End Function

See Also