FORMULA LANGUAGE


Examples: Run-time errors
1. This validation formula for the Price field causes a save operation for the document to fail with the specified message if the Price field contains an error.
2. This example contains input translation and input validation formulas. The input translation formula puts an error into the Price field if its value is greater than 14.99. The input validation formula causes a save operation for the document to fail with the specified message if the Price field contains an error.
3. This button formula checks the Price field for an error before applying a discount. If the field contains an error, the formula returns first giving the user a message.
4. This button formula tests the Price field for an error. If the field contains an error, the formula resets it to a value taken from the user by @Prompt.
5. This agent formula tests the return value of an @DbLookup statement for an error. If the statement causes an error, the formula returns the text "Not available."
See Also