Creating an Expression
To determine which records you want to import or export, you can type an expression in the text box in the Import/Export Record Selection group or use the Expression Builder. This group appears on the Template Defaults page as well as on the Import to Sage HRMS and Export from Sage HRMS pages.
- To access Expression Builder, click the Expression Builder arrow.
- Sage HRMS Link automatically defaults to the correct table in the From Table field so you do not need to make a selection in that field.
- Also, you do not need to make a selection in the Variables list; this list is available for programmers.
- Scroll through the Fields list and double-click the field you want to use in the expression.
- Expression Builder enters
the field name in the Record Selection Criteria box.
Note: Expression Builder enters the field name using the table alias. Sage HRMS does not recognize aliases during the import process. Therefore, if you are importing information, you must highlight and delete the file alias and period.
- Place the insertion point next to the field name and enter the logical operator.
- Enter a value to complete the expression.
- Click Verify. The Expression Builder presents a message indicating if you have used the correct structure for your expression. For example, if you have an equal sign, it will confirm that you have a value after the equal sign.
- When you are satisfied with the expression, click .
You want to export information only for those employees whose salary is over $40,000 per year.
- To access the Expression Builder, click the Expression Builder arrow.
- Scroll through the Fields list and double-click the p_salary field to place the salary field in the expression.
- Expression Builder enters the field name Pe.p_salary in the Record Selection Criteria box.
- Place the insertion point next to the field name and enter the greater than logical operator.
- Enter a value of 40000.
- The completed expression is: Pe.p_salary> 40000.
- Click Verify. The Expression Builder presents a message indicating if you’ve used the correct structure for your expression.
- When you are satisfied with the expression, click .