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: Automatic refresh of Dialog Boxes
Topic Summary:
Created On: 20-Jul-2007 17:39
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-Jul-2007 17:39
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

Has anyone developed a method to automatically refresh a dialog box after a certain period of time, perhaps once every second?

I tried using the sleep_(int milliseconds) command to pause execution and iteratively call the refresh routine, however once the sleep/refresh cycle begins, the dialog box becomes unresponsive and DOORS must be force-quit to regain control.

There may be a DOORS-native way to accomplish this, and if not, a third-party application that can be used to provide an external event (pressing a refresh button?) to the dialog box itself. Any insight is appreciated!

Regards,
Dennis
Report this to a Moderator Report this to a Moderator
 23-Jul-2007 06:53
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Dennis,

I do not exactly know, wherefore you need to update the box periodically, but I think this is not possible at all.
In Doors itself you have no chance to implement a scheduler - your idea cannot work, because Doors has only one running context, so your script (with sleep_) is running there and nothing else would be working in parallel.

The only way to update something, which is sometimes used in Telelogic's script is an object sync trigger to update the contents of dialog box on selecting a new object.

Sorry for that bad news

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 14-Dec-2007 22:18
User is offline View Users Profile Print this message


Andrew Wallen

Posts: 18
Joined: 23-Sep-2006

I have just finished implementing such an automated refresh for getting lock status during a baseline set.

Attached is a sample program

note:
you can use startTimer(timerElem) and stopTimer(timerElem) to manage the timer, but as far as I know, there is no way to change the period after the init of the timer DBE. The timer is not real-time, and I believe that the timer doesn't accumulate while callback code is being executed.

In my application I wound up using a 1 second update rate and writing a dispatch function that would handle the appropriate update rates of a few different functions.

Here is the list of timer functions:
bool getTimerRunning(int)
int getTimerInterval(int)
string getTimerName(int)
bool startTimer(int)
bool startTimer(DBE)
DBE timer(DB,real,void(DBE),string)
DBE timer(DB,int,void(DBE),string)

Edited: 14-Dec-2007 at 22:32 by Andrew Wallen
Report this to a Moderator Report this to a Moderator
 17-Dec-2007 13:35
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

To add, refreshing of a dialog box has to be done on a per element basis. The dialog box is just a container for the different elements inside of it.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.