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: Generate History Global Change?
Topic Summary: Set selected attributes to generate history globally?
Created On: 19-May-2008 17:48
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.
 19-May-2008 17:48
User is offline View Users Profile Print this message


Corey Carroll

Posts: 48
Joined: 25-May-2006

Is there a DXL that I can use to ensure certain attributes have the "Generate History" option checked. Over time people have unchecked this value, so important history has not been captured. Can I globally change it without having to go in every module and do it one by one?

Thanks,
Corey
Report this to a Moderator Report this to a Moderator
 19-May-2008 18:15
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Technically you'll need to go into every module and update that particular attribute definition. The nice thing though is it can be scripted. The attached script will will loop through all the modules in the currently selected project, check for the existance of a particular attribute and if the attribute is set to not generate history, will set the attribute to generate history, save and then close the module.

All you really need to do is replace Attribute Name with the name of your attribute.

**EDIT**
Found an error in the script,

ad.nohistory = true should be ad = modify (ad, setHistory, true)

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com

Edited: 19-May-2008 at 18:20 by Scott Boisvert
Report this to a Moderator Report this to a Moderator
 19-May-2008 18:45
User is offline View Users Profile Print this message


Corey Carroll

Posts: 48
Joined: 25-May-2006

Thanks, Scott! I will try this when nobody is in the database and let you know how it works.

Corey
Report this to a Moderator Report this to a Moderator
 19-May-2008 18:51
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

You should set non-admin users attribute definition access to read only. This way they can't change whether or not the attribute records history.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 19-May-2008 20:00
User is offline View Users Profile Print this message


Corey Carroll

Posts: 48
Joined: 25-May-2006

Is there a way I can set the Access Definition to a given value at the same time? I would like to lock all users except the admins from changing the definitions.
Report this to a Moderator Report this to a Moderator
 19-May-2008 20:29
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

The attached updated script should remove all users/groups from the permissions list except the default user ("Everyone") and the adminstrator group (change Administrator to what ever your admin group is named). It will set the adminstrator group to have Full Access and the Everyone group to have read only access.

Rember to change Administrator to your adminstrator group name in both places.

***EDIT***

Apparently I'm on a roll today for missing one little thing in these scripts....lol

It might work without this line but why chance it, added:

err = specificDef (m, ad)

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com

Edited: 19-May-2008 at 20:36 by Scott Boisvert
Report this to a Moderator Report this to a Moderator
 28-May-2008 14:59
User is offline View Users Profile Print this message


Corey Carroll

Posts: 48
Joined: 25-May-2006

I have attached a modified version of the first code that Scott attached. The code runs with no errors, but any attribute specified is not changed. Anybody have an idea what is wrong?
Report this to a Moderator Report this to a Moderator
 28-May-2008 18:15
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

[1] If the attr doesn't exist you need to close the module, THEN continue.
[2] You need to "current = m" before checking the existence of the attribute, as that exists command works on the current module and its possible that's not actually the one that you just opened. Before doing this, you could add some debug code after the edit command, that looks like this:

if (m != (current Module)) print "Edited not current\t" fullName(I) "\n"

If you get that error then you are trying to modify an attribute in some other module, which probably doesn't have the attribute; perhaps its a link module.

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