How can I get Uniface to insert different code into the RETRIEVE trigger of every form I create?
The code inserted into all the form level triggers is not hardcoded in Uniface. When you create a new form, Uniface loads default Proc code into the form-level triggers from global messaages in the USYS library. There is a naming convention for the message that corresponds to each trigger. To get Uniface to load your own customized code into these triggers whenever a new form is created, you need to do the following: • Create a global message in your own library (NOT USYS!) with the correct name (see below). • Add a line in your assignment file (.ASN file) as follows: $variation = name_of_your_library • Restart Uniface and create a new form. Other notes: • THIS WORKS FOR EVERY TRIGGER AT ANY LEVEL IN UNIFACE (start-up shell, form, entity, and field)! • The correct names are defined in the Manuals (see below). • When you are entering the proc code in the MESSAGE library, Uniface will do NO error checking (so type carefully and test early). • This inheritance is a one time only deal. It