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: How to load a particular view with module opened in background
Topic Summary:
Created On: 27-Jul-2006 06:59
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.
 27-Jul-2006 06:59
User is offline View Users Profile Print this message


Subrojyoti Sengupta

Posts: 52
Joined: 18-Nov-2005

My requirement is to open a module in the background (ie., read(currModule,false)) and then load a particular view to process the information in that view. The load(view) function does'nt seem to work when the module is opened in background. . Can anybody help me out here??

Report this to a Moderator Report this to a Moderator
 27-Jul-2006 08:12
User is offline View Users Profile Print this message


Paul Tiplady

Posts: 176
Joined: 28-Oct-2003

Simple answer - can't be done. If you think about it for a moment, it's called a 'view'. If you can't see it, why do you need a 'view'?

For more info, see this thread and this thread.

-------------------------


Paul dot Tiplady at TRW dot com
TRW Automotive
Report this to a Moderator Report this to a Moderator
 27-Jul-2006 12:43
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

There is two solutions.

Solution 1. Set the default view as the one you want to process with your script when module is open in the background

Solution 2. Use the 'all' keyword in a loop to get all undeleted user objects -- then process only the objects you want
Report this to a Moderator Report this to a Moderator
 27-Jul-2006 16:15
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Yes, you cannot load views when the module is invisible.

Are you perhaps saying you need to process only objects that are displayed in the view (filtering or leveling). I've never done it but I think you get a view definition handle and query its Filtering, Leveling, and sorting criteria. Then go through all the objects and use the criteria to judge whether to deal with it.

Are you perhaps saying you need to process some of the information displayed in the view? For attrs and attrDXL its easy, just get the value "Value = o.NameAttr". If its a layout, however, it gets real sticky: you could probably get the DXL from the layout and send it to the "eval_" function, but preamble the layout DXL with a functions called "display(string Value)" and "displayRich(string Value)", both of which simple do this: "return_(Value)". I suspect you'll need to set the current object to be the one you are processing: "current = oCurr", then insert into your preamble a "obj = current" command (outside the functions).

Forget all that. Open the modules visibly and watch the modules blink in and out for along while.

- Louie
Report this to a Moderator Report this to a Moderator
 28-Jul-2006 11:08
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Quoting Louie: "Forget all that. Open the modules visibly and watch the modules blink in and out for along while."

At least that saves you having to code the progress bar!

-------------------------
Tony Goodman
http://www.smartdxl.com
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.