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: halt on current object
Topic Summary:
Created On: 14-Jun-2005 18:41
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.
 14-Jun-2005 18:41
User is offline View Users Profile Print this message


Mike Klaene

Posts: 6
Joined: 24-May-2005

In a dxl script I run, I 'halt' and display the error condition in an ErrorBox when needed.  However, what I also want to do is automatically set the display to the object that failed.  I've looked into the 'current' command thinking that would be my solution but haven't had any success.  Right now, it might blow up on object #200 but the 1st object still has the focus.  Any ideas on how I can accomplish this simple task?

Thanks,
Mike
Report this to a Moderator Report this to a Moderator
 14-Jun-2005 20:06
User is offline View Users Profile Print this message


cliff Bly

Posts: 58
Joined: 11-Apr-2003

I load a view which has the "remember current " setting.

Set current to the desired object.

Save the view.

Load the view.

load view "Normal"
View v = view("Normal")

Object New1 = object(5044)
current = New1
save v
load view "Normal"

-------------------------
Cliff Bly
Report this to a Moderator Report this to a Moderator
 14-Jun-2005 22:59
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

current = objectWithTheError
refresh(current Module)
halt
Report this to a Moderator Report this to a Moderator
 15-Jun-2005 08:47
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Louie's answer is correct, but I find that sometimes you need to force the scrolling using the scroll function.

(current ObjectRef__) = objectWithError
scroll to objectWithError
refresh (current Module)
halt

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 15-Jun-2005 12:39
User is offline View Users Profile Print this message


Mike Klaene

Posts: 6
Joined: 24-May-2005

Thanks for the replies. I knew there was a way!
Report this to a Moderator Report this to a Moderator
 16-Jun-2005 22:51
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I can't get the scrolling right. I can get it to work if the error object is not on the same screen as the current object (I think I used "scroll down(mod)"). But if the objects were adjacent the scroll function didn't put it where I wanted. I guess I should have displayed the first object in the module and THEN displayed the one I want.

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