![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.