Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Reik Schroeder, on Wednesday, March 14, 2007 11:40 AM

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
 14-Mar-2007 09:34
User is offline View Users Profile Print this message


Thomas Langholz

Posts: 40
Joined: 20-Oct-2005

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
Report this to a Moderator Report this to a Moderator
 14-Mar-2007 10:57
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Answer 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

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 14-Mar-2007 11:41
User is offline View Users Profile Print this message


Thomas Langholz

Posts: 40
Joined: 20-Oct-2005

Yeah thats it good idea thomas
Report this to a Moderator Report this to a Moderator
 15-Mar-2007 07:59
User is offline View Users Profile Print this message


Andrew Tagg

Posts: 151
Joined: 26-Oct-2004

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
Report this to a Moderator Report this to a Moderator
 17-Apr-2007 16:05
User is offline View Users Profile Print this message


Heather Linsk

Posts: 50
Joined: 7-Mar-2006

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
Report this to a Moderator Report this to a Moderator
 23-Apr-2007 11:01
User is offline View Users Profile Print this message


Andrew Tagg

Posts: 151
Joined: 26-Oct-2004

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.