![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Looping through views in a module Topic Summary: How do I loop through views Created On: 21-Jul-2006 11:08 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I'm trying to produce a list of all views in all formal modules, within each view I should identify all displayed columns and the attribute (if applicable) that they refer to.
The attached code sort of works, in that it lists the columns and associated attributes, but although it loops through the views, it always extracts the information for the CURRENT view. How can I change the current view (I can't find any function to do this in the DXL Help), so that the loop works properly. TIA |
|
![]() |
|
![]() |
|
Alan, I haven't tried it but this should work.... |
|
![]() |
|
![]() |
|
Neal,
I see the plan. I changed the script and re-ran it, but still only the 'current' view is output. |
|
![]() |
|
![]() |
|
To do anything with views, you must open the module visible.
You cannot load views when the module is not visible. The load command does not give an error, but it does not load the view. The "view" that is loaded when a module is opened not visible is the default view. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Yup, apologies for not pointing that out, I didn't check to see if you had them visible or not.... |
|
![]() |
|
![]() |
|
Great that works, thanks.
Now, any way of speeding it up :-) |
|
![]() |
|
![]() |
|
Outputting to a file runs quicker than printing.
add to the start of file:-
string TempFile = "C:\\Temp\\DOORSData.txt"
Stream out = write TempFile
then replace the print lines with :- out << Linetext "\n"
where Linetext is the text you want.
The drawback is you can't see what's happening, until after the run.
Speed problems due to time to open files I can't help with.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Looping through views in a module
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.