Datasheet

RAIS 3.0 Programmer’s Guide – Part I : Advanced Customization
30
Custom forms, as well as standard RAIS forms, allow for public access of all of their control
elements as well as public variables and functions or procedures. The general syntax for
accessing control elements is:
forms![form name].controls[control name]
This is used for example when accessing filtering parameters for queries
To avoid for loss or overwriting of custom forms after RAIS updates, it is highly
recommended to use the prefix “CUSTOM_” for all custom form names; this prefix is not
used by RAIS developers.
2.8.1 Example
In general, creating forms is facilitated by the creator by means of creating a table (creator
will automatically create the form for new table) and should be avoided otherwise. However,
it is mentioned here to complete the description of creating objects in RAIS 3.0.
Custom Forms can be created same way as normally in MS Access, however to be able so
use them, one should take care to make the form appear by entering appropriate information
to the treeview table (section 2.10), and making sure that the form will be created on the next
creator run (section 3.2).
Note:
Follow the guidelines for creating custom functions and modules (see section 2.6)
2.9 Creating Custom Tables
In general, creating custom tables is facilitated by the creator and should be avoided
otherwise. However, it is mentioned here just to complete the description of creating objects
in RAIS 3.0.
Custom tables may be useful to store information which is not directly related to the
management scope of RAIS, as for example law texts or ISO codes; these tables may be
created just as any other table in Microsoft Access. These tables should however only be used
by custom functions in RAIS, they should not be related to any standard RAIS table; data
integrity problems may occur. Custom forms (see section 2.8) shall manage updates and
deletions as well as data visualization.
After custom tables have been created and tested in the RAIS Front-End, you need to modify
the RAIS 3.0 Creator for the new custom table to be created upon the next creation run. The
creator has to be modified in order to create both the new table in the back-end and a table
link in the front-end.
2.9.1 Comments
Do not manually create any relations between custom tables and RAIS tables