![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Thanks, Scott! I will try this when nobody is in the database and let you know how it works.
Corey |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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.
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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?
|
|
![]() |
|
![]() |
|
[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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Generate History Global Change?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.