![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: needed: script for setting the standard view back to being the default Topic Summary: Created On: 13-Jun-2006 14:56 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
i want to make the standard views the default for all modules again....have this code that loops through all the folders/module...figured one of you guys could tweak it easily rather than starting over....
Folder f = current Item i AttrDef ad for i in f do { string s = type i if(s != "Formal") continue s = name i print s "\n" Module m = read(s, false) for ad in current Module do { print "\tAttribute:" ad.name print " {" ad.typeName "}" "\n" } for s in views m do print "\t" "View:" s "\n" close m //without this, it will leave every module in the folder open in ReadOnly, hidden view } Edited: 13-Jun-2006 at 14:57 by Baher Mohamed |
|
![]() |
|
![]() |
|
Use the DXL function clearDefaultViewForModule
From DXL help: clearDefaultViewForModule Declaration string clearDefaultViewForModule(Module m) Operation Clears the default view setting for the specified module. Returns a null string if the operation succeeds; otherwise, returns an error message. ------------------------- Pekka.Makinen@softqa.fi SoftQA Oy -http://www.softqa.fi/ |
|
![]() |
|
![]() |
|
i tried using it and had no luck.
|
|
![]() |
|
![]() |
|
Did you get some error messages? How it did not work?
------------------------- Pekka.Makinen@softqa.fi SoftQA Oy -http://www.softqa.fi/ |
|
![]() |
|
![]() |
|
There are two default view settings: Module and User.
Use clearDefaultViewForModule to clear the default view for the module. Use clearDefaultViewForUser to clear your (i.e. current user) default view. There does not seem to be a way of clearing other users' default views, but then you probably don't care about these anyway. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
i just dont think i used the code right...ie...the way i used the declaration and then called it didnt work. I think thats just my lack of knowledge on that stuff...
|
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.