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 when opening module
Topic Summary: how do i do it????
Created On: 27-Jan-2009 15:01
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.
 27-Jan-2009 15:01
User is offline View Users Profile Print this message


arlene lyle

Posts: 16
Joined: 18-Oct-2002

hi there
this is probably a really easy question but i havent a clue! i have a dxl script that removes duplicates from a linked column called links.dxl. i want this to run when the module opens. i think i might need a trigger to do this but i dont know where to start. i had a look through the various trigger questions but still a bit vague. can someone help????
thanks
Report this to a Moderator Report this to a Moderator
 27-Jan-2009 16:21
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

Create a persistent trigger that fires when any formal module in the current project is opened.

string triggerName = name(current Project) ": modOpenTrig"

trigger(triggerName, project->module->all->formal, post, open, 5, "#include <modOpenTrig.dxl>")


However I would advise against this approach because this may cause problems in the future if the DXL file disappears. The trigger will also fire for all modules, whether or not the column exists - another possible cause of errors.

I am not quite sure what you mean by duplicates in a column, but a better solution would be to run a one-off script to remove all your duplicates.

-------------------------
Tony Goodman
Smart DXL limited
www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 27-Jan-2009 17:30
User is offline View Users Profile Print this message


arlene lyle

Posts: 16
Joined: 18-Oct-2002

hi
thanks for your reply. I have two modules and i am presenting information for objects from the second module using links from the first module to the second. There may be duplicates in some of the second module attributes. V confusing! However, i want to run this script only for this module when it opens instead of the users having to run it.

can you specify a trigger for just one module instead of all modules in a project?

thanks

arlene
Report this to a Moderator Report this to a Moderator
 27-Jan-2009 17:34
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

You can limit trigger to specific module.

However, does the dxl modify attributes or is it a layoutdxl that filters out values in a layout dxl column.

If the script is a layout dxl, you can make the view a default for the module -- however, you will have to teach the users to not change the default view.
Report this to a Moderator Report this to a Moderator
 29-Jan-2009 12:15
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Arlene,

if I have understood your posting correctly, you want to eliminate duplictes in a dynamic column or dynamic attribute ?!

As you have written the duplictes are from the outside module.
So why don't you modify the dynamic code that will retrieve this information from the other Module?

What does your existing script change in module first module? Is the information stored in any attribute?


I'm a little bit confused, if a trigger will solve your problem or if the problem is another one?!

Greetings from Berlin,
Reik

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


Berlin, Germany
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.