In addition to choosing among the standard selection criteria, you can define your own criteria to determine which employee data you want to include for processing. From the Custom Criteria drop-down list, select one of three methods to define your selection criteria: the Criteria table, the Criteria Builder, or the FoxPro Expression Builder.
After selecting or defining the expression for the selection criteria, it appears in the field.
If you need to clear the selection criteria, select the blank option from the list.
If you select Criteria Table, the Criteria Table page opens, displaying the criteria you have previously defined using the Criteria Builder or FoxPro Expression Builder.
Use the Criteria Table to select a previously-defined code, or click Add New Code to open the FoxPro Expression Builder so that you can define your own criteria on an as-needed basis. You can also select the FoxPro Expression Builder from the drop-down list.
If you are using Sage HRMS, you can define Criteria codes for the selection criteria that you use. When you select a specific Criteria code, the system uses the corresponding expression defined for that code as the selection criteria.
Set up the Criteria code table in Sage HRMS to store the selection criteria you use most frequently. For instance, you might use these criteria to select specific employees or groups of employees for inclusion in a report or for participation in a benefit plan.
For more information see About Code Tables.
If you select Criteria Builder from the Custom Criteria drop-down list, the Criteria Builder page opens.
The Criteria Builder assists you in creating your own selection criteria. It enables you to build complex expressions by prompting you to select fields from the Personnel (HRPERSNL) database, relational operators, and values for comparison. The Criteria Builder also formats the expression for you.
The Criteria Builder references the Personnel file (HRPERSNL), meaning that all the fields you can select in the Field drop-down list originate from the Personnel file. To illustrate how to use the Criteria Builder, complete the following example. Suppose you want to select all employees with an original hire date before January 11, 2016.
Tip: To help avoid data processing errors, wait until you are comfortable using expressions and are more knowledgeable of the Sage HRMS databases before creating these codes.
An expression for a selection criteria consists of three parts: a condition, a relationship, and a value of comparison. You can use the Expression Builder to help you build these three parts. From the Custom Criteria drop-down list, select Visual FoxPro Expression Builder to access the Expression Builder.
The Expression Builder helps you create the three parts of the expression for the Custom Criteria field. The box at the top of the Expression Builder is where your expression appears as you build it. You can use the other boxes to help build the expression.
The condition is the information you want to test for the selection criteria. For example, we want to test the original hire date for each employee.
In the Fields list, locate the field, p_orighire, in the list and double-click it. The Expression Builder inserts the field name into the Expression box as Pe.p_orighire.
For more information about database files and fields, see Data Dictionary.
In the Logical list of the Functions group, locate the less than (<) symbol (to specify records with an original hire date less than a specific date) and double-click it. The Expression Builder inserts < into the Expression box.
You can enter the value directly in the Expression box. Different types of values must be entered in different formats.