Page History
[ |../../index.htm#lansa/ladtgubh_0230.htm]
You are here:
...
Some Do's
- Do experiment with small test cases using triggers so that you are comfortable with what they are and how they work before attempting to implement a complex application involving triggers.
- Do remember that when you change the type or length of a field in the data dictionary (that has associated triggers) you should recompile:
- All trigger functions associated with the field.
- All I/O modules of files that contain the field as a real or virtual field.
- All functions that make *DBOPTIMIZE references to file(s) containing the field.
- The list of objects to recompile is easily obtained by producing a full listing of the definition of the field.
- Remember that when you change the layout of a database file (that has associated triggers) you should recompile:
- The I/O module of file.
- All trigger functions associated with the file.
- Any functions that make *DBOPTIMIZE references to the file.
...
Where trigger "requests" are to be supported, introduce a virtual (or real) field into the file definition and use it to "fire" the trigger in the normal way.
[ |../../index.htm#lansa/ladtgubh_0230.htm]