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: Persisten Trigger
Topic Summary: How To...
Created On: 20-Jun-2008 20:36
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.
 20-Jun-2008 20:36
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

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.
Report this to a Moderator Report this to a Moderator
 23-Jun-2008 11:29
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

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
Report this to a Moderator Report this to a Moderator
 15-Jul-2008 20:44
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

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
Report this to a Moderator Report this to a Moderator
 14-Nov-2008 20:57
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

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.
Report this to a Moderator Report this to a Moderator
 17-Nov-2008 13:33
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Here you go.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 17-Nov-2008 14:35
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

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)
Report this to a Moderator Report this to a Moderator
 17-Nov-2008 15:00
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
 17-Nov-2008 15:03
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 17-Nov-2008 16:28
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

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
Report this to a Moderator Report this to a Moderator
 17-Nov-2008 19:30
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

"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
Report this to a Moderator Report this to a Moderator
 17-Nov-2008 20:32
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

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.
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.