|
To avoid the two scenarios above, simply write your validation logic in the Business Layer.
The Business Layer allows you to access all the fields of a record while you write your logic
for record level validation.
Please see the screen below for the location of the Business Layer in the hierarchy:

As shown above, Iron Speed Designer generates the Business Layer for every table. Each table
has two classes in the Business Layer, namely the Record Class and the Table Class.
Since you are writing validation logic for Record validation, select the Record Class and then
click on the Code Documentation tab on the right panel to display additional detail as shown below:


The documentation shows there are two methods, SavingData and SavedData, which can be overridden
before and after the record has been saved.
If you wish to write your validation routine at a single place, you can write it in this section.
Unfortunately, at this time, the only way to write code in this section is to use Visual Studio
or Notepad outside of Iron Speed Designer.
|