Procedure: How to Enable the Precision Report Style Sheet and Report Template
1. From the Developer Studio toolbar, select Options from the Windows menu.
The Developer Studio Options dialog box opens at the General tab.
DN4500892.0908 1
Enabling the Precision Report Style Sheet and Report Template
9. Click OK to close the Developer Studio Options dialog box and enable these settings.
The following image is an example of the Developer Studio Options dialog box with the
Precision Report settings enabled.
7
2 WebFOCUS
Creating Precision Reports in Developer Studio Report Painter
2. Click the yellow diamond and select Report from the Component Connector toolbox.
The Open dialog box appears.
There are several palettes and toolbar options that are unique to the Precision Report tool.
DN4500892.0908 3
Precision Report Layout
7
4 WebFOCUS
Creating Precision Reports in Developer Studio Report Painter
The following table lists and describes the objects in the Precision Report toolbox.
Button Definition
The Selection button indicates that the items in the Data Matrix,
Headings, and Footings can be selected.
Tip: Click the Selection button after inserting a box, line, image, or
text to return to select mode.
The cursor changes into a crosshair. Click and drag the crosshair on
the canvas to create the line object and adjust it to the size you want.
DN4500892.0908 5
Precision Report Layout
Button Definition
The cursor changes into a crosshair. Click and drag the crosshair on
the canvas to create the text object and adjust it to the size you want.
Enter the text, or embedded field, as the input field for your form.
For more information about using these objects in Headings and Footing, see Creating
Precision Reports on page 15.
7
6 WebFOCUS
Creating Precision Reports in Developer Studio Report Painter
Button Description
DN4500892.0908 7
Precision Report Layout
7
8 WebFOCUS
Creating Precision Reports in Developer Studio Report Painter
There are several Layer icons available on the Layers palette. The icons and their meanings
are defined in the following table:
Icon Definition
DN4500892.0908 9
Precision Report Layout
The Sort Groups palette displays the sorting method being applied to each column in the
Data Matrix window. You can change the sorting method (for example, from By to Across or
from Detail to Sum) by using the right-click context menu. The changes are reflected in the
Columns and Sort Groups palettes and in the Data Matrix window.
Icon Definition
Across field.
By field.
Sum field.
Detail field.
For field.
7
10 WebFOCUS
Creating Precision Reports in Developer Studio Report Painter
Right-clicking a column and selecting Options from the context menu opens the Field
Properties dialog box where you can format and style your column as well as apply drill down
capabilities. Any changes made to the column properties are reflected in the Data Matrix
window.
DN4500892.0908 11
Precision Report Layout
You can double-click or drag segments or fields from this palette to the Data Matrix window,
where they become report columns. You can customize how you view the fields list and save
your settings. You can also search for fields in the fields list.
7
12 WebFOCUS
Creating Precision Reports in Developer Studio Report Painter
DN4500892.0908 13
Precision Report Layout
7
14 WebFOCUS
Creating Precision Reports in Developer Studio Report Painter
Click and drag the orange box in the Navigate palette to view different elements of the
Precision Report in the layout.
For more information about using these palettes in the Precision Report layout, see Creating
Precision Reports on page 15.
DN4500892.0908 15
Creating Precision Reports
2. Double-click the Data Matrix object in the layout, or click the Toggle Edit Mode button
from the Precision Report Toolbox.
A hand displays in the Data Matrix enabling you to begin building your report and the
basic Report Painter functions are enabled.
7
16 WebFOCUS
Creating Precision Reports in Developer Studio Report Painter
3. Click the Fields palette to select the sort fields for the report.
Note: You may also use the Object Inspector to add sort fields to the report. Select the
Show Object Inspector from the File menu to show or hide the Object Inspector in the
Precision Report tool.
4. Style your report as you would in the Report Painter by using the right-click and/or toolbar
options.
5. Click the Toggle Edit Mode button to toggle out of edit mode.
Note: You may resize the Data Matrix placeholder at anytime in Selection mode.
6. Click Save from the File menu to save the report in the Data Matrix.
DN4500892.0908 17
Creating Precision Reports
2. To set the default line settings, select the line object from the toolbox to view the
corresponding pen options.
This toolbar appears underneath the Alignment toolbar when the line object is selected.
3. Select the box, line, or image object from the Precision Report Toolbox.
Note: The Text object is not available for the Page layer.
The cursor changes into a crosshair.
4. Click and drag the crosshair on the Precision Report layout to add the object and adjust
it to the size you want.
Note: Objects snap to the grid for perfect alignment.
7
18 WebFOCUS
Creating Precision Reports in Developer Studio Report Painter
As items are added to the page layout, they appear under the Page layers.
5. Optionally, you may use the Layer options to delete or move the Page layer objects.
Note: You may not edit the pen options once the line object has been added to the
Page layer.
When you run the report, the items added to the Page layer appear on every page of the
report output.
DN4500892.0908 19
Creating Precision Reports
2. To set the default line or text settings, select the object from the toolbox to view the
corresponding pen or font options.
These toolbars appear underneath the Alignment toolbar when the line or text objects
are selected.
4. Click and drag the crosshair on the Precision Report layout to add the object and adjust
it to the size you want.
Note: Objects snap to the grid for perfect alignment.
7
20 WebFOCUS
Creating Precision Reports in Developer Studio Report Painter
5. Optionally, you may use the Layer icons to delete or move the Heading/Footing layer
objects.
Procedure: How to Add Embedded Fields as Input Fields in the Heading/Footing Text Object
You may embed fields and variables in your Heading/Footing input fields as text objects.
The Precision Report retrieves the value for the input field when the report is run.
Note: If adding embedded fields, values are calculated differently in Heading and Footings.
Headings use the first value on the page of the report, and Footings use the last value on
the page of the report.
To embed field values in a Heading or Footing text object:
1. Place the cursor in the text object where you want to embed the value.
2. Double-click a field from the Fields palette in the Precision Report tool.
This includes Report Variables, Computed, and Defined fields.
The field is added to the text object as <FIELDNAME.
3. Optionally, you may also perform a calculation on a field value in the text object:
a. Highlight <FIELDNAME in the text object.
DN4500892.0908 21
b. Right-click and choose Prefix Operators and the desired operator from the context
menu.
Tip: The list of available operators adjusts to show those that are appropriate for
the type of field you select.
7
22 WebFOCUS
Creating Precision Reports in Developer Studio Report Painter
DN4500892.0908 23
Total Copies: <TOT.COPIES is added as the embedded filed in the text element.
7
24 WebFOCUS