WebFOCUS Online Help > Managed Reporting Developer > Creating Reporting Objects > Selection Criteria (WHERE Statements)
How to: |
You limit the data a user can report from by defining selection criteria, which restrict data to only the records that meet conditions you specify. You use the Expression Builder to define selection criteria.
Selection criteria, for example, filters, limit the amount of data a user can access to build a report. When a user opens a Reporting Object that contains selection criteria, the selection criteria runs and excludes those data values that do not meet the criteria. A filter, on the other hand, runs only when a user selects the filter in Managed Reporting.
The Expression Builder dialog box opens.
In Developer Studio, right-click the Where folder and select Open.
The Where Assistant dialog box opens.
For details about building the selection criteria expression, see Using the Expression Builder.
If you have finished working with the components of the Reporting Object, remember to click the Done button on the Reporting Object window to save the changes.
Note: Syntax and error checking are not performed on the commands you enter until the Reporting Object is executed.
Your manager wants to allow users to report only on the information relating to your Management Information Systems (MIS) department. To restrict the data, you will create selection criteria, or a WHERE clause, for the object.
Note: For this example, use a Reporting Object that accesses the Employee data source.
In Developer Studio, right-click the Where folder and select Open.
The Expression Builder dialog box opens.
The Expression Builder should resemble the following image shown to contain DEPARTMENT in the Field text box, Is EQUAL to in the Relations list box, and MIS in the Value text box.
WebFOCUS |