Need detailed documentation of trigger level assembly

Hello everybody,

I'ld like to use persistant triggers within a single module. Everytime I set up this testing trigger by following command, the trigger is definded not only for the current module but for the hole (sub-)project:

Trigger testTrigger = trigger("TestTrigger",attribute,pre,save,1,"print(\"Test\")")

The chapter about trigger level assembly within the DXl reference isn't very detailed, in my opinion. Where do I have to add the trigger level instructions? And how the connection between trigger level and actual trigger is made?

l -> l2
l -> mod
l -> string name -> mod
l -> string name -> string name2
Thanks,
raw
SystemAdmin - Fri Feb 20 05:04:45 EST 2009

Re: Need detailed documentation of trigger level assembly
llandale - Tue Feb 24 16:17:07 EST 2009

There is information in the first section 'Introduction to Triggers' and also in section 'Trigger Definition'. In this case I think you can specify 'module->attribute' to put the trigger in the current module. Not sure what will happen if there is no current module.

Or... project->all->module->all->attribute to put it in the database.

  • Louie

Re: Need detailed documentation of trigger level assembly
SystemAdmin - Thu Feb 26 02:55:12 EST 2009

Hi Louie,

thanks a lot. Setting up the trigger as follows, works as desired:


string modString = tbd
Trigger testTrigger = trigger("TestTrigger",module->modString->attribute,pre,save,1,"print(\"Test\")")

raw