![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
trigger when opening module
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.