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: Determing Active Triggers for Module
Topic Summary:
Created On: 28-Mar-2008 23:42
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 Pekka Mäkinen, on Monday, March 31, 2008 7:58 PM

Answer:
Module m = current
Trigger t = null

for t in m do
{
print name t "\n"
}

Run this through Edit DXL in module. If you want to delete all triggers you might also add "delete t" after the "print name" in the loop.
 28-Mar-2008 23:42
User is offline View Users Profile Print this message


David Pepion

Posts: 11
Joined: 30-Jan-2007

I was playing around with triggers and I created a trigger that fires on module opening. Unfortunately, I cannot remember the name of the trigger and so I have no way to turn it off. Is there a commend that lists the names of the triggers that is associted with a given module?
Report this to a Moderator Report this to a Moderator
 29-Mar-2008 11:41
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Answer Answer
Module m = current
Trigger t = null

for t in m do
{
print name t "\n"
}

Run this through Edit DXL in module. If you want to delete all triggers you might also add "delete t" after the "print name" in the loop.

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 31-Mar-2008 19:42
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Pekka posted printed trigger names in the module. Several months ago I posted a 'DXLFind.dxl' script that finds and dumps Triggers, including the code (and also Attr DXL and Layouts).

The code you use to deploy a trigger should be written to be able to remove it. It would thus looks something like the following.

string NameTrig = "MyTrigger"

if (confirm("Remove '" NameTrig "'??")) delete(NameTrig, ..parameters)

if (confirm("Deploy '" NameTrig "??")) trigger(NameTrig, ..paramaters, DXLofTrigger)

- Louie
Report this to a Moderator Report this to a Moderator
 31-Mar-2008 20:01
User is offline View Users Profile Print this message


David Pepion

Posts: 11
Joined: 30-Jan-2007

Louie,

Thank you for your response. I was fooling around with your code when I deleted the confirm statements as well as changing the names of the triggers. After that, I couldn't remember the names of the triggers I set.

Edited: 31-Mar-2008 at 20:04 by David Pepion
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.