Datasheet

RAIS 3.0 Programmer’s Guide – Part I : Advanced Customization
49
In order for the custom forms to be created upon next run of the creator, it is necessary to
modify the creator source code as described below:
Open the RAIS Creator in design mode
Locate the function [Public Sub FormCreateTemplates] in the module [RAIS Form
Creator Functions]
Include a line DoCmd.CopyObject d, "destination form", acForm, " source form"
In order for the custom reports to be created upon next run of the creator, it is necessary to
modify the creator source code as described follows:
Open the RAIS Creator in design mode
Locate the function [Public Sub FormCreateTemplates] in the module [RAIS Form
Creator Functions]
Include a line DoCmd.CopyObject d, "destination report", acReport, " source report"
3.3 Copying tables
Only Propagator Tables and System Tables can be copied from the Front-End into the
Creator because none of those tables has relationships to other tables, so that a simple copy
operation even with records does not introduce data integrity failures. RAIS tables
(generators, sources etc.) should never be copied from the Front-End into the creator.
Tables are most easily copied by a simple Drag-and-Drop operation from the Front-End into
the Creator. If the table to be copied already exists in the Creator, MS Access will ask for a
new name. This may easily be avoided by first deleting the table to be copied from the
creator, as a new table from the Front-End is going to supersede that very table.
Please note that both Front-End and Creator need be opened in design mode in order to
execute Drag-and-Drop operations. Also note that no renaming of destination objects is
required when copying tables. Take care not to copy any linked tables from the Front-End
into the Creator, do only copy internal tables, RAIS does not use any template tables.
To ensure custom tables, not made using the Creator, are reproduced on the next creator run,
do the following:
Locate the function [Public Sub FormCreatePDITable] in the module [RAIS Form
Creator Functions]
Include a line DoCmd.CopyObject d, "destination table", acTable, "source table"
Locate the function [Public Sub CreatePDILinks] in the module [RAIS Database
Creator Function]
Include a line CreatePDILink db, d, "source table"