Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Reports Monitor (Reference) provides real-time visibility into server-side report generation operations for ReportForms and WebData objects during runtime. The Reports Monitor displays:

  • Report generation status
  • File save operations
  • Error tracking
  • Execution results
  • Server-side operations only

<ac:structured-macro ac:name="info"> ac:rich-text-body Only server-

Overview

The Reports Monitor allows you to manage and control report entries, providing an overview of the status and results of each report.

InfoOnly the Server

side operations are monitored.

Some methods of the Report Module can be fully executed on Client Computer, and will not be

Client-side report methods are not included in the Designer monitoring tool. </ac:rich-text-body> </ac:structured-macro>

Access via Reports → Reports Monitor when connected to runtime.

On

In this page:

Table of Contents
maxLevel

3

2
minLevel2
indent10px
excludeSteps
stylenone



Reports → Tutorial | Concept | How-to Guide | Reference



Monitor Table Properties

PropertyDescription

Access the Monitor page at  Reports → Reports Monitor.

Runtime Access
NameReport identifier@Report.Form.<Name>
DisableObject disabled state@Report.Form.<Name>.Disable
SavedFileNameOutput file path@Report.Form.<Name>.SavedFileName
LastStatusOperation result (Success/Running/Error)@Report.Form.<Name>.LastStatus
LastStatusMessageDetailed error description@Report.Form.<Name>.LastStatusMessage

Runtime Property Access

Access monitor properties in displays or scripts:

ReportForm Properties

csharp

// Get report status
string status = @Report.Form.ProductionReport.LastStatus;
string fileName = @Report.Form.ProductionReport.SavedFileName;
string error = @Report.Form.ProductionReport.LastStatusMessage;

// Check for errors
if (@Report.Form.ProductionReport.LastStatus == "Error")
{
    LogError(@Report.Form.ProductionReport.LastStatusMessage);
}

WebData Properties

csharp

// Monitor WebData operations
string apiStatus = @Report.WebData.APIReport.LastStatus;
bool isDisabled = @Report.WebData.APIReport.Disable;

// Validate execution
if (@Report.WebData.APIReport.LastStatus == "Success")
{
    ProcessReport();
}

Status Values

StatusDescriptionAction
SuccessReport generated successfullyProcess/distribute report
RunningGeneration in progressWait for completion
ErrorGeneration failedCheck LastStatusMessage
DisabledObject disabledEnable or skip

Monitoring Scope

Server Operations (Monitored)

  • Report generation triggered by server
  • Scheduled report creation
  • Server-side save operations
  • Batch report processing

Client Operations (Not Monitored)

  • Local report generation
  • Client-side PDF creation
  • Display-triggered reports
  • User-initiated saves

Using Monitor Data

Health Monitoring

csharp

// Check all reports health
public void CheckReportHealth()
{
    if (@Report.Form.DailyReport.LastStatus == "Error")
    {
        SendAlert("Daily Report Failed: " + 
                  @Report.Form.DailyReport.LastStatusMessage);
    }
}

Batch Status Tracking

csharp

// Monitor multiple reports
string[] reports = {"Daily", "Weekly", "Monthly"};
foreach(string report in reports)
{
    string status = @Report.Form[report].LastStatus;
    if (status != "Success")
    {
        // Handle failure
    }
}

Error Logging

csharp

// Log all report errors
public void LogReportErrors()
{
    if (@Report.Form.MyReport.LastStatus == "Error")
    {
        string error = string.Format(
            "{0}: Report {1} Error: {2}",
            DateTime.Now,
            "MyReport",
            @Report.Form.MyReport.LastStatusMessage
        );
        WriteToLog(error);
    }
}

Best Practices Guidelines

  •  Monitor critical reports - Check status regularly
  •  Log all errors - Track failure patterns
  •  Set up alerts - Notify on failures
  •  Verify file creation - Check SavedFileName
  •  Handle running state - Implement timeouts
  •  Document issues - Keep error history
  •  Create dashboards - Display report status

Troubleshooting

Report shows "Error":

  • Check LastStatusMessage for details
  • Verify file path permissions
  • Review report configuration
  • Check data availability

Status stuck on "Running":

  • Check server resources
  • Review report complexity
  • Monitor database queries
  • Implement timeout logic

No monitor data:

  • Verify server-side execution
  • Check Designer connection
  • Confirm runtime active
  • Review object configuration

File not created:

  • Check SaveFileName path
  • Verify write permissions
  • Review disk space
  • Check antivirus settings



In this section...

Page Tree
root@parent
spaces93DRAF

The monitoring table will show the status of the Server (not clients) operations performed by ReportForm and ReportWebData objects.

In addition to the monitor table, report information can be accessed via Display CodeBehind or Scripts, using the following syntax.

@Report.Form.<Name>.<PropertyName>

@Report.Query.<Name>.<PropertyName>

Report Monitor Table

Field

Description

Name

Unique name to identify the report entry.

Disable

 Flag to indicate the object is disabled. 

SavedFileName

Specifies the file name for storing the report's output data.

LastStatus

 Checks the most recent status of the report entry, which could be "Success," "Running," or "Error."

LastStatusMessage

 Access a detailed message that elaborates on the latest status of the report entry, providing further insights.

In this section:

Page Tree
rootV10:@parent
spacesV10