![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Post module open trigger Topic Summary: Created On: 23-Apr-2007 21:01 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
OK, here's my idea... I'd like a message box to open when I open a specific view in a specific module. It's a requirements verification module, so I'd like the message box to display the cumulative PASS, FAIL and UNTESTED counts as stored in the module. Oh, and the counting must obey a filter of my choosing. This is newbie trigger and dialog box stuff. I see some interesting DB stuff on the forum but I can't figure out the trigger issue. Any tips/references/examples?
Thanks. <> David |
|
![]() |
|
![]() |
|
You can define a persistent trigger in the current module as follows:
trigger("yourTriggerName", module, post, open, 5, "#include <YourCode.dxl>") After a module opens, the trigger will fire and execute the DXL specified in the #include. An example: if (currentView(current Module) == "your vew name") { infoBox "Module open trigger fired ok" } ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Hi David, Hi Tony,
I would not suggest to use #include statement within trigger. You may use it for development purposes in your private test module/database, but in productive database you have to assure that all users will have access to this included file and of course have the same version of script. So when you are ready to run you should use something like this: trigger("yourTriggerName", module, post, open, 5, readFile "YourCode.dxl"); Ok, that was sth. about triggers ![]() Now to your described problem ... you want the trigger to fire on change of view - that may be much more complicted. Did not found a practicable solution to this problem ![]() Sorry. Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Reik is correct. Use the readfile command, not the #include one, otherwise other folks will get errors since they don't have access to your files.
No, there is no such change-view trigger. But your post-module-open trigger can display the dialog. The dialog can look at the current filtering. It can also have a refresh button on it which you can use to command a refresh, perhaps after loading some other view or applying some filter manually. Triggers are tricky. I'd first get the dialog box part working; THEN hurl yourself over the cliff... - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Post module open trigger
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.