Escolar Documentos
Profissional Documentos
Cultura Documentos
After adding the objects, right click on an entity object. The entity object
Editor: will display the Name, Attributes, Tuning, Java, Validation and etc.
Double click on the Validation rule. A box will appear as shown below in
Figure1. In the Rules drop-down list, there are four kinds of validators:
1. Select the RangeValidator. When you do, the application will automatically
default the Attribute: the object you are editing and the Operator will default to
between.
2. In this case, I set the Minimum Value to 10 and the Maximum Value to 1000.
Figure 1.
1
3. After setting Minimum and Maximum value. Hit OK. A window will display the
following in figure2.
Figure 2.
Figure 3.
2
5. Once the connection has been successful to the database. Figure4 will be
displayed. It is the running application.
Figure 4.
6. Now, we can test the validation between 10 – 1000. I entered a 9 and received the
following error, which is correct. See Figure 5.
Again, when a value is between the validation that is specified, No error message
will display.
Figure 5.