How can i know which trigger is active for the module?

How can i know which trigger is active for the module?
How can i deactivate all the trigger for the module?

Regards,
Silveira
Silveirax - Wed Jun 08 08:05:12 EDT 2011

Re: How can i know which trigger is active for the module?
mcnairk - Wed Jun 08 08:31:28 EDT 2011

Here's a DXL script that I downloaded from galactic-solutions.com. There may be a more recent version...

Ken.
Attachments

attachment_14625618_Delete_Persistent_Triggers.dxl

Re: How can i know which trigger is active for the module?
llandale - Wed Jun 08 14:18:32 EDT 2011

Did not look at the Galactic script. But I know you need to distinguish between "those active for" and "those stored in". Triggers stored in a module apply to that module, those in a project to all modules in that project and sub-projects, and those stored in the database for all modules.

here are some loops to find triggers in the various contexts.

Trigger trg
for trg in current Module do{}
for trg in current Project do{}
for trg in database do{}
... you will also want some sort of recursive loop to get ancestor nested Projects.
for trg in Project parent(current Project) do{}


All these loops find triggers "active for the current Module", or potentially so. You may need to do some real clever parsing of the "level" of the trigger to find out if it actually applies to your module; someone else here may show us how.

If you only want to find triggers "stored in the module" then you need only the first loop.

 

 

  • Louie