![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Trigger to recognize baselines Topic Summary: Created On: 16-Nov-2007 21:34 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I'm trying to create a trigger that only pops up a message when the current version of a module is opened, but it pops the message when the baselines open too.
I've simplified it down to this: Trigger t1 = trigger("openNotice", project->all->module->formal->all, post, open, 10, "Trigger t = current ; ack versionString( moduleVersion( current Module ) ) ") but I'm stumped. If I execute the ack line in the baseline, it gives me the baseline information. However in the trigger it doesn't. It appears that the "current Module" reference doesn't work in this context like I expected. Does anyone know how to make this work? |
|
![]() |
|
![]() |
|
Use this function.
bool isBaseline(ModuleVersion modver| Module m) ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
You need to get the Module handle of the module whose open event fires the trigger. That's different than getting the Module handle of the module that stores the trigger.
The attached seems to work. I'm shocked to discover that the trigger fires before the module has had a chance to become 'visible'. The commented-out line inside the trigger always displays 'Visible false' even for baselines that are open, but when opening a module from the Explorer, it DOES wait for it to become visible before firing. Thus, as far as I know right now, checking for 'isVisible' inside a module-trigger only works for the current version, won't work for opening baselines. - Louie Edited: 19-Nov-2007 at 15:42 by Louie Landale |
|
![]() |
|
![]() |
|
Louie,
Just wanted you to know I had the same problem, and your code (small chunk from) solved it. Thanks for all your valuable forum contributions. Tom Y. |
|
![]() |
|
![]() |
|
Thank you Louie, I too was facing the same problem...your code helped.
~uma |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Trigger to recognize baselines
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.