Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I get Uniface to insert different code into the RETRIEVE trigger of every form I create?

0
Posted

How can I get Uniface to insert different code into the RETRIEVE trigger of every form I create?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123