The Repository allows you to define validations and business rules at field and file level. If multiple validation are required, each can have its own error message. Using LANSA's validations, rules and triggers, application code significantly reduces application code and future maintenance.
This is a brief list of the types of rules you can use:
Each error condition should have its own error message. The error message will only be displayed when the actual error occurs.
Triggers can be used to initiate an action, but only when the specified conditions occur. While triggers are file based, they can use field conditions to determine if an action is required. For example, to initiate the production of a delivery note, but only when a new item is added to an order and if the customer's credit limit is not exceeded. On a change of order, a different process altogether could be triggered.
The sequence of the validations is important, so before attempting to use them make sure that you read Field Rules/Triggers in Fields in the LANSA for i User Guide.