You can create WHERE and WHERE TOTAL statements from the Selection Criteria tab in the Graph Assistant.
Note: This section applies to using the Graph Assistant in the Managed Reporting environment.
or
Press Alt+M, Tab to go to the Available Fields window, tab to the field and press Enter to add the chosen field.
The field name and EQUAL to and Select values appear in the Screening conditions pane.
After you click OK, the constant, vehicle, appears in the WHERE statement which reads BODYTYPE EQUAL to vehicle.
You can set parameter properties, for details see Setting Parameter Properties.
After you click OK, the parameter, &moped, appears in the WHERE statement which reads BODYTYPE EQUAL to &moped.
Note: The ampersand is automatically added by WebFOCUS.
After you click OK, the field BHP appears in the Where statement which reads CAR.COMP.CAR EQUAL to CAR.SPECS.BHP.
After you click OK, the value, Audi, appears in the Where statement which reads CAR.COMP.CAR EQUAL to AUDI.
Note: In order to add a blank static value for a parameter value list, do not enclose it in quotes. Press the spacebar to create the blank value and add it. This is different than adding a blank value to a Define, Compute, or Where because in those contexts an expression is being created so quotes are needed. A value list is not an expression.
In the Graph Assistant:
or
Press Alt+M, Tab to go to the Available Fields window, tab to the field and press Enter to add the chosen field.
After you click OK, the value, 1989/01/18, appears in the WHERE statement which reads START_DATE EQUAL to 19890118.
How to: |
When developing a query, you can use a locally saved, external file as selection criteria to limit query results. This enables you to quickly build a query containing a large number of WHERE statement values without having to manually enter repetitive or readily available data.
Valid options include EQUAL to, NOT EQUAL to, IN literal list, NOT IN literal list, EXCLUDES literal list, and INCLUDES literal list.
The Values dialog box opens.
A dialog box opens, as shown in the following image.
A standard file selection dialog opens.
Note: The external file must only contain text with new line delimiters.
The values contained in the file are displayed in the Multiple values entered list in the right pane of the dialog box.
You can save the query for future use and reopen the query to append new or remove existing values.
How to: Reference: |
When you create parameters for Selection Criteria (WHERE statements) you can set the properties for the parameter. For example, you can create a dynamic or static list of values to choose from at run time.
In the Graph Assistant:
The Variable Editor dialog box opens.
The Parameter Properties dialog box opens.
Note:
The Dynamic option is selected by default.
Optionally, choose the Select multiple values at run time check box to provide multiple values to the report from the auto prompt page at run time.
If you want to see the fully qualified Field name, select the Display fully qualified field name check box. This setting is for display purposes only and is not preserved.
Note: When working with a Reporting Object, you can select only fields from data sources that the Reporting Object is defined to access.
Operator |
Enabled for the Variable editor? |
---|---|
Equal to |
Yes |
Not equal to |
Yes |
Greater than |
Yes |
Less than |
Yes |
Greater than or equal to |
Yes |
Less than or equal to |
Yes |
In literal list |
No |
Not in literal list |
No |
Missing |
No |
Not missing |
No |
From-to |
No |
Not-from-to |
No |
Includes literal list |
Yes |
Excludes literal list |
Yes |
Contains characters |
Yes |
Omits characters |
Yes |
Like character mask |
Yes |
Not like character mask |
Yes |
How to: |
Use the right pane of the Selection Criteria tab to use or delete existing Where statements and to combine expressions.
How to: |
You can use parentheses to group expressions together to optimize the Where statement.
Filters enable you to quickly select predefined criteria that limit data included in a graph. Filters are selection criteria (WHERE statements) that an Administrator creates for you to apply as needed, without having to create your own selection criteria.
WebFOCUS displays filters in filter groups. Each filter group can contain multiple filters. Selecting a single filter within one group creates a report with simple filtering criteria. By selecting multiple filters within a group or combining filters from different groups, you can create complex filtering expressions.
Note: Filters are only available when you are creating a graph using a Reporting Object as a template. If you do not see filters, this means they have not been developed for this Reporting Object. Filters are not available when building a Standard Report or a Custom Report.
The following image shows a few sample filters as they appear in the Selection Criteria tab of the Graph Assistant. They are listed by Group and Name.
The Screening conditions window shown in the following image allows you to drag and drop a field from the Available Fields window.
Use WHERE to select records based on the values of an individual field.
Use WHERE TOTAL to select records based on the aggregate value of a field, for example, the sum or average of a field's values.
Is the field you initially chose.
xSelect an operator from the drop-down list, for example, EQUAL to.
xClick to open the Values dialog box to select or enter values for the WHERE or WHERE TOTAL statement you are creating. The following image shows the Values dialog box.
Type a constant value. To use multiple constant values, click the plus sign (+) in the Multiple values entered list box after each constant value that you type.
Opens the Select file dialog box. For more information, see Importing Values From External Files for WHERE Statements.
Type a parameter name. To use multiple parameter values, click the plus sign (+) in the Multiple values entered list box after each parameter name that you type.
Opens the Parameter Properties dialog box. For details, see Parameter Properties Dialog Box (Dynamic Parameters) and Parameter Properties Dialog Box (Static Parameters).
Select a field from the Field list box.
Select a field value from the Values list box. To use multiple field values, click the plus sign (+) in the Multiple values entered list box after each field value that you select.
Displays the constants, imported values, parameters, or field values you added to the Multiple values list box. Use the available buttons to add, remove, and change the order of the selected values.
The following image shows the Parameter Properties dialog box with the Dynamic option selected.
Name is the parameter name. This field is automatically filled in with information from the selected field. You can change the name if desired.
xText that appears in the Auto prompt page as a prompt for the selection list. This field is automatically filled in with information from the selected field. You can change the description if desired.
Note:
Select the type of parameter:
Selecting this check box enables you to provide more than one value to the report from the auto prompt page. In addition, the user is able to select all values from the values list.
Select a data source that contains the values for the parameter. The data source must be on your APP PATH.
Select the field from the data source whose values will populate the selection list.
The following image shows the Parameter Properties dialog box with the Static option selected.
Is the parameter name. This field is automatically filled in with information from the selected field. You can change the name if desired.
Text that appears in the Auto prompt page as a prompt for the selection list. This field is automatically filled in with information from the selected field. You can change the description if desired.
Note:
Select the type of parameter:
Selecting this check box enables you to provide more than one value to the report from the auto prompt page. In addition, the user is able to select all values from the values list.
Enter one or more constant values.
Shows the values in the selected field. Move the values you want in the selection list to the Prompt values list.
Prompt Values are the values that appear in the selection list. You can use the available buttons to add, remove, and change the order of the Prompt values.
You can create temporary fields from the Graph Assistant. Temporary fields are created the same way in the Report and Graph Assistant.
For complete details, see the Creating Reports With Report Assistant manual.
WebFOCUS |