![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Persisten Trigger Topic Summary: How To... Created On: 20-Jun-2008 20:36 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Does anyone know why this trigger isn't working?
I'm trying to create a trigger that will remind me every ten minutes to save the module. So far i have this but i'm getting an error. |
|
![]() |
|
![]() |
|
Hi Douglas,
the problem is, that the trigger code will not work in parallel. So the opening of module is suspended until the trigger code is finished. The only possiblity to be effective here could be the usage of DBE timer Please refer to this thread for more information on it. Good luck greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Now that I have the DBE timer, Is it possible to create a trigger so that it will close the Dialog Box when I close the module?
Edited: 16-Jul-2008 at 16:56 by Douglas Perez |
|
![]() |
|
![]() |
|
I'm trying to create an autosave timer, using a code found in the forum. I modified the DBE Timer and is currently working, but now I need to hide the Timer DB and to create a trigger to close the timer DB dialog box. If anyone have an idea, i will sincerly appreciate any recommendation. For those who are having the same problem as me, that I work three hours straight and forget to save the module and the my computer crash, this is something it might be helpful to avoid losing three hours of job.
Have a great day and enjoy. |
|
![]() |
|
![]() |
|
Here you go.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
David,
Thank you very much for the code. Am I supposed to run this from the DOORS explorer or from the Module. Errors: -E- DXL: <Line:3> incorrect arguments for function (trigger) -E- DXL: <Line:3> undeclared variable (closeDialogOnModuleClose) -E- DXL: <Line:10> incorrectly concatenated tokens -E- DXL: <Line:10> undeclared variable (mainDB) -E- DXL: <Line:10> undeclared variable (closeMainDB) |
|
![]() |
|
![]() |
|
You need to run it in your script which is declaring the dialog box. Put the trigger declaration at the top. Create the trigger in the code where you create your DB. Then have the function that runs when you close the module somewhere below your close function for the dialog box(but above the creation of the trigger in the code so its in scope). You need to change "mainDB" to the variable name of your dialog box.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com Edited: 17-Nov-2008 at 15:06 by David Pechacek |
|
![]() |
|
![]() |
|
I'd be tempted to make a dynamic object-sync trigger that checks the current time with the stored global one, and if its more than 10 minutes then reset the global time and display the advisory. If you want to do this all the time with this particular module, then you could have a post-module-open trigger that defines the above dynamic trigger.
- Louie |
|
![]() |
|
![]() |
|
I don't know what is going on with this code, is not closing the DB box.
Edited: 17-Nov-2008 at 18:33 by Douglas Perez |
|
![]() |
|
![]() |
|
"closeDB(timerDB)"
You need to change it to closeCallback(timerDB) since that's what your close function is called. ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Silly me, Thanks, David and all the people who made comments.
Attached is the code, i think is useful and you can install it for all modules. I'm going to use it because I had a lot of people complaining about a feature like this in DOORS, remember to change the seconds(from 15s to 900|1800s) every fifteen|thirty minutes. Enjoy. Please add comments of the trigger, I'm always open to learn new things, like this one. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Persisten Trigger
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.