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: 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
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.
 13-Jun-2006 14:56
User is offline View Users Profile Print this message


Baher Mohamed

Posts: 63
Joined: 21-Jun-2005

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
Report this to a Moderator Report this to a Moderator
 13-Jun-2006 19:26
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

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/
Report this to a Moderator Report this to a Moderator
 13-Jun-2006 20:46
User is offline View Users Profile Print this message


Baher Mohamed

Posts: 63
Joined: 21-Jun-2005

i tried using it and had no luck.
Report this to a Moderator Report this to a Moderator
 14-Jun-2006 07:05
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Did you get some error messages? How it did not work?

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 14-Jun-2006 08:38
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 14-Jun-2006 15:53
User is offline View Users Profile Print this message


Baher Mohamed

Posts: 63
Joined: 21-Jun-2005

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