Report Definitions
|
The Report Editor displays the report you selected, or the new report you created, and provides an array of tools and resources to help you edit it.
The Data Explorer provides a quick way to find a property or calculation with which to populate a column in the report.
Enter a value in the search field at the top of the Data Explorer and click the magnifying glass to limit the display in the tab you are on to those elements that match your search string. Click the X to clear the search field and display all elements.
Note: the search field only searches top-level (not embedded) properties.
The main body of the Data Explorer consists of three tabs:
Best Bets
The Best Bets tab displays the properties that you are most likely to use in your report, organized in a tree structure. Expand any subfolders (representing page lists and other embedded properties) to see more properties. Click More at the bottom of the list to display more properties that do not belong to the class your report applies to or that class's parents. Note: using a property from another class requires creating a "join" between the classes. The Report Editor does this in the background for you.
To use a property to populate a column in the report, click and drag the property name onto the table at right, position the column where you want it, and release the mouse button.
All Matches
The All Matches tab displays a broader list of the properties you are most likely to use in your report, organized in a tree structure. Navigate the tree and add a property to populate a column in the report as described above.
Calculations
The Calculations tab allows you to select a SQL function and identify one or more properties for it to work with. The result of the calculation can populate a column in the report.
Double-click a calculation to use it to populate a column in the report, or right-click the calculation name and choose the "Add" option. The SQL Calculation Builder appears, in which you can specify the input for the function you have selected. See Using the Calculation Builder.
The toolbar that appears at the top of the right panel of the report editor contains a different set of controls depending on whether you are working with a list-type or summary-type report, and depending on which controls the developer has enabled for this report. The controls include:
Icon |
Description |
---|---|
Summarize |
Click this icon to display the Summarization and Sorting form. The form displays all summary columns in the report, and lets you change their sort order and the summarization function. Available functions are:
When you apply these changes to a list-type report, you convert it to a summary-type report. |
Convert to List |
Click this icon to convert a summary-type report to list-type. |
Sort |
The sort icon on appears when you are working with a list-type report. Click it to display the Sorting and Grouping form. In the top part of the form, add rows to control the sort order of the report: for each row, select a column and whether the column should be sorted from highest to lowest or from lowest to highest. Check the Categorize By checkbox and indicate in the field that appears which row or rows should serve as group headings. At the bottom of the form is the Top/Bottom Rank control. Use this control to limit the number of rows in the report:
|
Chart |
The chart icon only appears when you are working with a summary-type report. Click the icon to add a chart to the report, or to edit an existing chart. See Working with the Chart Editor. |
Save |
Click the icon to save your changes. |
Exit and Run |
Leave the Report Editor and return to the Report Viewer to view the report with live data. If you have not saved your changes, the system will give you a chance to save them before exiting. |
Search |
There is a Search box at the upper right. Typing any text into this box and hitting Enter or clicking the Search icon finds the first occurrence of the text in the body of the report, highlights it, and moves the cursor to that position in the report. Clicking the Search icon again moves the cursor to the next occurrence of the text within the report. |
A series of Hints appear just below the toolbar to help you understand the various editing options and what you should do next. Follow the instructions for each step that is relevant to your report, proceeding through the steps using the < and > buttons; close the hints by clicking the red X.
You do not need to have the hints visible to edit a report.
By default, the Report Editor displays simulated data. Click the link in the sentence Click Here To View Actual Data to have the report show actual data. Return to simulated data by clicking the link in the sentence Click Here To View Simulated Data. Using simulated data speeds up report rendering while you are developing the report.
Filter conditions and custom filter sections
Filter conditions limit the amount of data returned to the report ("only orders made by these customers", "only bug reports with a severity higher than 60", and so on).
You can access filter conditions in two ways, apart from editing filters directly on the Design tab of the Report Definition rule:
The developer can opt to let the report user:
Editing filter conditions:
Filter conditions that you can edit appear as hyperlinks in the header. Click a link to see the Filter form. The existing filter condition displays in the form property in report - comparison - property to compare to.
For each filter, the following elements appear:
Click Apply to accept your changes, or click Cancel to close the form without changing the filter.
Adding filter conditions and changing filter logic
Below the list of filters there are two features:
Removing filter conditions
When you hover the mouse over a filter condition, a red icon with a white x appears to the right of the filter. Click the icon to remove the filter.
If the report is a summary-type report and has a chart defined, the chart appears below the header and above the report data. Controls may appear at the top right of the chart, allowing you to switch between 2D and 3D views, and to see a larger version of the chart in a separate window. To edit the chart, click the Chart icon on the control bar to open the Chart Editor.
To move a column to a different place in the report, click and hold on the column header, drag it to the location you prefer, and release the mouse button.
Right-click a column header to see and work with the context menu. The options include:
Option |
Description |
---|---|
Heading... | Click to display the Edit Column Heading form. When you have updated the heading text, click OK to save your changes. Click Cancel to abandon your changes and close the form. |
Format... | This control lets you change the formatting of values in the current column by applying an existing control. |
Width... | Click to display the Edit Column Width form. Set the column width in pixels, or as a percentage of available screen width. Click OK to save your changes. Click Cancel to abandon your changes and close the form. |
Edit... | Click to display the Edit Column form. Here you can set for the current column its heading and width (in pixels or as a percentage of screen width), and format the values in the column using one of the options displays. Click Apply to apply your changes, or Cancel to abandon your changes and close the form. |
Delete | Click to delete the current column. The column is deleted immediately: there is no confirmation dialog. Note: if you delete a group-by column, any chart included in the report is deleted; if you want to keep the chart, you will have to re-specify it. If the report has only one column, you cannot delete it. |
Sort | Use this option to set sorting of the current column as either lowest-to-highest or highest-to-lowest. |
Display Values Across Columns | When the column displays vertically, click to display the column's values as a pivot table, or horizontally. |
Display Values Vertically | When the column values display horizontally, click to display the selected column vertically. |
See these PDN articles:
Report Definitions — Working with the Chart Editor
Report Definition form — Completing the Chart Definition dialog Using the Report Browser |