![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Trigger to catch event Object is Added to current module Topic Summary: Created On: 14-Mar-2007 09:34 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Hi Thomas, it depends if you need a pre or post "create" trigger. A pre create trigger is not available at all, so you cannot deny the creation of objects per trigger. As post create trigger you may use a workaround by using the Module pre save trigger which checks history of module for new object creations in this session. But of course this not really a "create Object" trigger, which I would like to have sometimes too ![]() Greetings Reik | |
![]() |
|
Hi all,
i want to catch the event if an object is added to current module by a trigger.
Does anyone knows how to get this?
thanks
thomas
|
|
![]() |
|
![]() |
|
Hi Thomas,
it depends if you need a pre or post "create" trigger. A pre create trigger is not available at all, so you cannot deny the creation of objects per trigger. As post create trigger you may use a workaround by using the Module pre save trigger which checks history of module for new object creations in this session. But of course this not really a "create Object" trigger, which I would like to have sometimes too ![]() Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Yeah thats it good idea
![]() |
|
![]() |
|
![]() |
|
Another workaround is to use the 'synch' trigger,this will fire once the user clicks out of the newly created object, you can then run some condition checking, and if necesary deal with the created object before going any further.
I have a script which ananlyses the new object to check that the user has filled in all the mandatory attributes, if not then progress cannot continue.
Dont have the code with me right now, but I will post it tomorrow.
Rgds
Andrew
------------------------- Andrew Tagg Thales Air Systems, Melbourne Australia. andrew.tagg@thalesatm.com |
|
![]() |
|
![]() |
|
Andrew -
Did you ever get a chance to post this code? I would be most interested!
Regards -
Heather Linsk.
------------------------- Heather Linsk Lead Engineer General Dynamics AIS 413-494-7095 |
|
![]() |
|
![]() |
|
Hi Heather, only just read this last post, will try to post tomorrow.
Rgds
Andrew.
------------------------- Andrew Tagg Thales Air Systems, Melbourne Australia. andrew.tagg@thalesatm.com |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.