Redwood Documentation

Product Documentation

 

›Running Reports

RunMyJobsReporting

Reporting

  • Reporting

Running Reports

  • Creating and Running Reports
  • Creating Advanced Reports
  • Configuration Data for Reports
  • Creating and Running Reports in RedwoodScript
← ReportingCreating Advanced Reports →

Creating and Running Reports

Creating reports in the graphical user interface is done in "Definitions > Reports". You may create reports based on object filters (query filters) and refine them; use the preview functionality to make sure your settings are correct. Once you have created a report, you can generate the report output manually or schedule it to run automatically. You can also generate reports with Redwood Script.

Context-Menu

Reports support the following context-menu actions:

ActionDescription
Submit ReportSubmit a report definition to generate the report
Edit SecurityEdit the security of the report
DuplicateMake a copy of the report to create a similar one
New Report DefinitionCreate a report definition, allows you to change parameters easily
DeleteDelete the report
Report PreviewGenerate and display a preview of the report
Export > ExportExport the report into a CAR file
Export > Export with related objectsExport the report into a CAR file including referenced objects
Promote > Promote to systemPromote the object to a remote system
Promote > Edit further then promoteEdit the export rule set prior to promoting
PromotePromote the report to another Redwood Server instance
EditEdit the report
Show permalinksShow links that can be used from third party applications to link to the object
Add to navigation barAdd the current object to the navigation bar
New reportCreate a new report
Filter > New FilterCreate a new report filter
Filter > Edit FilterEdit current report filter
Filter > DeleteDelete current report filter
Filter > Duplicate FilterCreate a copy of the filter
Filter > Export FilterExport the filter into a CAR file
Filter > Add to navigation barAdd the filter to a navigation bar
Filter > Create filter from searchCreate a filter from the current IntelliSearch query

Prerequisites

  • The Module.Scripting license key set to true

Procedure

Create the report definition

  1. Navigate to "Definitions > Reports".
  2. Choose New Report Definition from the context-menu.
  3. On the Report Definition tab, fill a name into the Name field and choose a filter name in the query field.
  4. On the Selections tab choose a column and a condition.
  5. On the Sorting tab, choose the columns you want to sort by and give each a unique sort order.

Generate the report output

  1. Navigate to "Definitions > Reports".
  2. Choose Submit Report from the context-menu of the report.
  3. Fill in or change any parameters if required and choose Submit.
  4. Navigate to "Monitoring > Processes" and locate the report you just submitted.
  5. In the lower details pane of the report, expand Files and choose report.

Tabs

The configuration details for reports can be found in the Configuration Data for Reports section of the documentation.

Example

Create a report for the error processes in the production environment

  1. Navigate to "Definitions > Reports".
  2. Choose New Report Definition from the context-menu.
  3. On the Report Definition tab, fill AllErrorJobs into the Name field and Job.state.Error into the query field.
  4. On the Columns toggle the Display value for LLP Version in the list.
  5. On the Selections tab fill Remote System into the Left Report Column field, choose Matches Regex in the Operation field, and enter PR* in the Value field of the Column/Value area. You have to choose the radio button to fill the Value field.
  6. On the Sorting tab, enter JobId and 1 in the Sort Order field.
  7. Choose Save and Close to leave the edit window.

Generate the report and view its output

  1. Navigate to "Definitions > Reports".
  2. Choose Submit from the context-menu of the report definition AllErrorJobs.
  3. Leave HTMLText as the Output Format and choose Next, Next.
  4. Fill a queue into the Queue field that has the report service, usually System, and choose Submit.
  5. Navigate to "Monitoring > Processes" and locate the report you just submitted.
  6. In the lower details pane of the process, expand Files and choose report.html.

Create a report to display all processes in error that were scheduled to start in the past month

  1. Navigate to "Definitions > Reports".
  2. Choose New Report Definition from the context-menu.
  3. On the Parameters tab, create a new parameter named Start of type Date Time Zone with the Default Expression =Time.expression(Time.now('GMT'), 'subtract 1 month').
  4. On the Report Definition tab, fill AllErrorJobs into the Name field and Job.state.Error into the query field.
  5. On the Columns toggle the Display value for LLP Version in the list.
  6. On the Selections tab, fill ScheduledStartTime into the Left Report Column field, choose Greater Than in the Operation field, choose the Parameter radio button and select Start in the Parameter field.
  7. On the Sorting tab, enter JobId and 1 in the Sort Order field.
  8. Choose Save and Close to leave the edit window.
  9. Choose Submit from the context-menu of the report.
  10. Leave HTMLText as the Output Format and choose Next, Next.
  11. Fill a queue into the Queue field that has the report service, usually System, and choose Submit.
  12. Navigate to "Monitoring > Processes" and locate the report you just submitted.
  13. In the lower details pane of the process, expand Files and choose report.html.

Create and run a report in RedwoodScript

import com.redwood.scheduler.api.model.report.Reporter;
import com.redwood.scheduler.api.model.report.ReportDestination;
{
  String query = "select Job.JobId,Job.Description from Job where Job.JobId <= 244";
  Reporter reporter = jcsSession.createReporter(jcsOut);
  ReportDestination destination = reporter.getCSVReportDestination();
  jcsSession.executeQuery(query, null, destination);
}

See Also

  • Configuration Data for Reports
  • Reporting
  • SQL Functions
  • Datamodel

report reporting

← ReportingCreating Advanced Reports →
  • Context-Menu
  • Prerequisites
  • Procedure
  • Tabs
  • Example
  • See Also
Docs
Getting StartedInstallationFinance InstallationConcepts
TroubleshootingArchiving
Learn and Connect
Support Portal
BlogEventsResources
ISO/ IEC 27001 Information Security Management
Automate to be human

2023 All Rights Reserved |

Terms of Service | Policies | Cookies | Glossary | Third-party Software | Contact | Copyright | Impressum |