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 dashboards 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.

Note: For more on caching in Izenda, please see the UseCachedFilteredLists setting.

Global.asax (C♯)

public override ReportInfo[] FilteredListReports()
{
    ReportInfo[] reports = ListReports();
    ArrayList result = new ArrayList();
    foreach (ReportInfo info in reports)
    {
        if (info.Category == "Hidden reports")
            continue;
        ReportSet reportSet = LoadFilteredReportSet(info.Name);
        if (reportSet != null && reportSet.CanBeLoaded)
            result.Add(info);
    }
    return (ReportInfo[])result.ToArray(typeof(ReportInfo));
}

Global.asax (VB.NET)

Public Overrides Function FilteredListReports() As ReportInfo()
      Dim reports() As ReportInfo = ListReports()
      Dim result As New ArrayList()
      For Each info As ReportInfo in reports
        If info.Category = "Hidden reports" Then Continue For
        Dim reportSet As ReportSet = LoadFilteredReportSet(info.Name)
        If reportSet IsNot Nothing AndAlso reportSet.CanBeLoaded Then result.Add(info)
      Next
      Return DirectCast(result.ToArray(GetType(ReportInfo)), ReportInfo())
End Function

See Also