Sort Triggers

This section provides information on how triggers can be sorted. Each transaction on a page can have multiple registered triggers. Defining the correct order for all of these triggers (through the priority parameter in the Advanced tab of each trigger) can be a tricky task, as you must remember all priorities you've set for each one.

To ease this job, MX Kollection 3 contains a tool allowing you to visually change the trigger's execution order for each transaction. It is the Sort Triggers command, that can be accessed from the MX Kollection tab of the Insert bar.

The user interface has two tabs. Directions about their correct configuration are given below.

 

To set the dialog box options for the first tab, follow the next steps:

  1. In the Transaction drop-down menu, select the transaction for which to set the trigger order.

  2. In the BEFORE triggers area, all triggers having the type BEFORE and registered for the currently selected transaction are shown. You can modify the order of execution through the up and down buttons.

  3. The same behavior is applied for the AFTER and END trigger areas.

  4. Between the BEFORE and AFTER trigger areas, the transaction name and action is displayed.

  5. The three buttons in the top right corner of the interface offer you the next functionalities:
    · Click OK when you are done configuring the command.
    · Click Cancel to exit without applying the new settings.
    · The Help button opens this help page.
    These buttons are common to both tabs of the Sort Triggers interface.

  6. Click on the Advanced tab to continue with configuring the trigger.
 

 

To set the dialog box options for the second tab, follow the next steps:

  1. In the STARTER triggers area, all the triggers that act as a starting condition for the transaction are listed, and you can change their order through the up and down buttons.

  2. In the ERROR triggers area, all the triggers that start when the transaction fails are listed, and you can change their order through the up and down buttons.

  3. When you are done, click OK to apply the command.