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: HELP deleting trigger
Topic Summary:
Created On: 15-Jul-2005 16:12
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 cliff Bly, on Monday, July 18, 2005 1:48 PM

Answer:
I tried the trigger definition. The definition can be obtained at the project level.

Project p = current
Trigger t
for t in p do {
print name(t) "\n"
}
 15-Jul-2005 16:12
User is offline View Users Profile Print this message


Maria Manco

Posts: 12
Joined: 21-Jul-2004

I have the following trigger in a few modules. (attached)

I need to delete it from one module. When I run the code to delete the trigger, nothing happens. It does not even find the trigger in the module. Is this because the trigger is set for an attribute? Does anyone know how to delete it?


string tn = "Prod Status"
Trigger t
for t in current Module do
{
if (name(t) != tn)
{
print name(t) "\n"
continue
}
else
{
ack "Deleting t"
delete t
}
}


-------------------------
Hello

Edited: 15-Jul-2005 at 16:21 by Maria Manco
Report this to a Moderator Report this to a Moderator
 18-Jul-2005 04:03
User is offline View Users Profile Print this message


cliff Bly

Posts: 58
Joined: 11-Apr-2003

Answer Answer
I tried the trigger definition. The definition can be obtained at the project level.

Project p = current
Trigger t
for t in p do {
print name(t) "\n"
}

-------------------------
Cliff Bly
Report this to a Moderator Report this to a Moderator
 18-Jul-2005 13:49
User is offline View Users Profile Print this message


Maria Manco

Posts: 12
Joined: 21-Jul-2004

Thanks alot!! That worked!!

-------------------------
Hello

Edited: 18-Jul-2005 at 13:49 by Maria Manco
Report this to a Moderator Report this to a Moderator
 19-Jul-2005 18:13
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

If you want the trigger to apply to just a single module you probably want to define it with modul->current. But you could also modify the trigger code to get the current module and decide if it wants to do anything for that module. Such a trigger would apply to the project and would fire for all modules, but wouldn't do anything for most of them.

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.