WebFOCUS Online Help > Managed Reporting End User > Creating a Report With Report Assistant > Field Selection Tab
The Field selection tab is used to select fields for a report.
The following image shows the Available Fields window on the Field selection tab. The fields are sorted by the Name column with corresponding columns containing their Alias, Format, and Segment information.
Displays a list of field names from the selected data source.
Click the Define (calculator) icon to select: New define field, Edit define field, or Delete define field. If you select the New define field or Edit define field, the Define Field Creator dialog box opens where you can create or edit a defined field.
Displays a tree structure of field names by segment with segment, alias, title, description, and format information below the tree. Individual field information appears when you click on the field.
Displays a list of all field names with information that you select from the adjacent arrow that opens a list box: name, alias, title, format, description, segment, and file name. You can also choose to sort by file order.
The following image shows the Report fields section on the Field selection tab. You can view the selected fields with the following options:
Lists the following field display options:
Prefixes the field name with the segment name.
Prefixes the field name with the name of the data source.
Uses the alias defined in the Master File as the field name.
Uses the title in the Master File instead of the field name.
Uses the description in the Master File instead of the field name.
The Add grand totals drop-down list provides two options. The Totals option displays the totals for each column. The Recompute Totals option recalculates computed fields before displaying the totals for each column.
Displays the total for each row.
Lists the vertical field that you have selected from the Available Fields window.
Lists the horizontal field you have selected from the Available Fields window.
Indicates a report that aggregates data by the horizontal field.
Prints each value on a record-by-record basis.
Opens the Computed Field Creator dialog box where you can define the parameters for a new computed field. For more information on the Field Creator dialog box, see Field Selection Tab: Field Creator Dialog Box.
Adds a field to the report fields.
Removes a field from the report fields.
Moves the position of the field within the report.
The following image shows the Field List Searching options that you can use to search for a field in the Fields List. For more details, see Searching Field Lists.
Select the Master File attribute for which you want to search. The following table lists the pattern attributes and a description of each.
Attribute |
Description |
---|---|
Name |
Name of the field. |
Alias |
Alias for the field. |
Title |
Display title for the field, as defined in the Master File. |
Format |
Field format, for example A4. |
Description |
Field description, as defined in the Master File. |
Segment |
A segment of fields in the Master File. |
Filename |
Name of the data source. |
Type your search string. You can use an asterisk (*) as a wildcard. For example, type c* to find all fields that begin with the letter "c". The character string is not case sensitive.
The following image shows the Available Objects that you can include in your report from the Field selection tab. For more details, see Using Application Objects.
The following image shows the Show report field options where you choose various styles and functions for a selected field.
The Display subtab for a Sort by field has these options:
Check to hide the display of a Sort By field.
Opens the font styling dialog box. See Font Dialog Box.
Opens the conditional styling dialog box where you use to add conditional styling in a report.
Opens the drill-down dialog box. See Drill Down Dialog Box.
Is grayed out and unavailable.
Is grayed out and unavailable.
Inserts '.' when no field value exists.
The Title subtab for a Sort by field has this option:
The Sorting subtab shown in the following image for a Sort by field has these options:
Click to arrange fields in ascending order.
Click to arrange fields in descending order.
Applies aggregation and sorting simultaneously to numeric columns in your report in one pass of the data. See Aggregating and Sorting Fields.
Select:
Note:
The Ranking subtab, shown in the following image for a Sort by field has these options:
This check box is unselected by default and enables a user to add a Ranking column.
This check box is grayed out by default and activated only if the Add Ranking column check box is selected. It enables a user to enter an integer value to select the number of ranked values to display in the report (5 is the default value).
The title of the ranking column can be changed from the default of RANK.
Opens the font styling dialog box. See Font Dialog Box.
The Subhead/Subfoot subtab, shown in the following image for a Sort by field has these options:
Specify the font, font size, font style, text alignment, text color, and background color of the subhead or subfoot.
Enter a subhead/subfoot in the text box.
The Subtotal subtab for a Sort by field has:
The following image shows the Show report field options where you choose various styles and functions for a selected field.
The Display subtab for a Sort across field has these options:
Check to hide the display of a Sort Across field.
Opens the font styling dialog box. See Font Dialog Box.
Is grayed out and unavailable.
Opens the drill-down dialog box. See Drill Down Dialog Box.
Is grayed out and unavailable.
Is grayed out and unavailable.
Is grayed out and unavailable.
The Title subtab for a Sort across field has this option:
The Sorting subtab for a Sort across field has these options:
Click to arrange fields in ascending order.
Click to arrange fields in descending order.
Note: Other options are grayed out and unavailable.
The following image shows the Show report field options where you choose various styles and functions for a selected field.
The Display subtab for a Column field has these options:
Check to temporarily hide the display of a Column field.
Opens the font styling dialog box. See Font Dialog Box.
Opens the conditional styling dialog box where you use to add conditional styling in a report.
Opens the drill-down dialog box. See Drill Down Dialog Box.
Click ... to open the change format dialog where you can edit the field format. See Change Format Dialog Box.
Make a selection from the drop-down list.
Inserts '.' when no field value exists.
The Title subtab for a Column field has this option:
The following image shows the drill down dialog box, where you can add drill down capability to a report.
Lists the domains and procedures that are available as drill-down reports. Click the procedure you want to execute.
Is the default.
The procedure you selected appears in this text box.
Enter the URL of a Web page that will open when a user drills down.
Once a parameter is created using the Add button, it is automatically added to this area.
You can place comments here.
Opens the drill-down parameter dialog shown in the following image.
Enter the parameter name you created in the drill down procedure.
Select the field the user can drill down.
The parameter is set to the specified value.
Returns to the drill down dialog. The parameter is added to the With parameters list box.
The following images shows the font dialog box.
Select from the list box.
Select from normal or bold, italic, underline, and various combinations.
Select a font size from the list box.
Set the style for Title & Data, Title only, or Data only.
Select a color from the color palette.
Select a color from the color palette.
Select left, right, or center from the list box.
Apply these styling conditions to all report fields.
Use the Field Creator dialog box to create or edit temporary fields, as shown in the following image.
Enter a name for the temporary field. Note that field names cannot exceed 66 characters.
Displays the Change Format dialog box where you can modify the data formats. See Change Format Dialog Box.
Opens the field list in either tree or list mode.
Displays a list of predefined functions grouped into categories that include Character, Data Source and Decoding, Date and Time, Format Conversion, Numeric, and System. If you hover your cursor over a function, a brief description appears. The following image shows the list of predefined functions that populate the Field Creator dialog box when you select the Functions button.
Double-click the desired function to add it to the expression box in the Field Creator dialog box. In the expression box, replace each of the function’s arguments with the desired value or field name. Note that each of the available functions is a program that returns a value. For more information about functions, see the Using Functions manual.
To create an expression, double-click fields or functions, select items (operators, numbers, characters) from the Field Creator keypad, or type directly in the expression box.
Concatenates two or more alphanumeric constants and/or fields into a single character string. The concatenation operator has two forms: | (weak concatenation, which preserves trailing blanks) and || (strong concatenation, which moves trailing blanks to the end of a concatenated string).
Creates a conditional expression. A conditional expression assigns a value based on the result of a logical expression. The assigned value can be numeric or alphanumeric. IF, THEN, ELSE logic expressions take this form:
IF expression1 THEN expression2 ELSE expression3
ELSE is an optional operator. All alphanumeric values in conditional expressions must be enclosed in single quotation marks. For example, IF REGION EQ 'West'.
Used to create relational and Boolean expressions. A relational expression returns a value based on a comparison of two individual values (either field values or constants) and a Boolean expression returns a value based on the outcome of two or more relational expressions.
The following logical operators are available:
Click any of the arithmetic operators to use them in your expression: + (addition), - (subtraction), * (multiplication), / (division), ** (exponentiation).
Two operators cannot appear consecutively. The following expression is invalid:
a* -1
To make it valid, you must add parentheses:
a* (-1)
Adds parentheses to the expression box. Parentheses affect the order in which the specified operations are performed. For information on when to use parentheses, see Order of Evaluation for Expressions.
Adds quotation marks to the expression box. Use single quotation marks to enclose alphanumeric and date literals.
Converts entries in the expression box to uppercase. Note that field names are case-sensitive.
WebFOCUS performs numeric operations in the following order:
When operators are at the same level, they are evaluated from left to right. Because expressions in parentheses are evaluated before any other expression, you can use parentheses to change this predefined order. For example, the following expressions yield different results because of parentheses:
COMPUTE PROFIT/D12.2 = RETAIL_PRICE - UNIT_COST * UNIT_SOLD ; COMPUTE PROFIT/D12.2 = (RETAIL_PRICE - UNIT_COST) * UNIT_SOLD ;
In the first expression, UNIT_SOLD is first multiplied by UNIT_COST, and the result is subtracted from RETAIL_PRICE. In the second expression, UNIT_COST is first subtracted from RETAIL_PRICE, and that result is multiplied by UNIT_SOLD.gives an incorrect result because UNIT_SOLD is first multiplied by UNIT_COST, and then the result is subtracted from RETAIL_PRICE.
The following image shows the Change Format dialog box.
WebFOCUS |