![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Setting User Options/Removing Filters Topic Summary: Created On: 21-Feb-2008 14:10 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I have a problem where I see two solution, but can't figure out how to implement either of the two solutions. Hopefully somone might think of something I haven't....
Problem: I have a script that creates a filter in module using the "set ()" method. I turn filtering on, do some processing and then turn filtering off. I then attempt to baseline (or close) the module and get the message dialog that I have modified the view and any changes will be lost. I don't want the users to have to click on this message everytime they run the script. Of course the easiest way to fix this is to turn off the option to warn about changes to views, but it's not practical as this is a script that all my users will eventually run and they may want that option on. So my by two solutions are this: Solution #1: Clear/Remove/Delete the filter from the module. Problem is I can't find a way to do this. Hell, even if I go in and delete the filter manually, close the filter dialog and reopen it, its still there. Solution #2: Temporarily turn off the the option to warn about changes to views if the option is turned on. I can easily get the value of the option, as demonstrated in the attached DXL, but I can't find a way to set the option. Anyone have any ideas??? ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
Deleting the key you show there appears to work as does putting it back into the skip with a value of true, false, yes, or no. But none of those seem to actually effect the option. Unless theres an applyChanges command you need to call after setting it.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
heh...Yeah...That's what I was trying to figure out. Was how to actually apply the new settings/options.
------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
Figured out how to change the Warn For View Changes option. You need to change the user's configuration file.
The attached DXL should give an example of how to do this. This code will turn the Warn for view changes off. ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com Edited: 21-Feb-2008 at 15:22 by Scott Boisvert |
|
![]() |
|
![]() |
|
The getUserOptionSkip_() and getWarnViewChangesKey_() are red herrings.
These are new in doors 8.x. Options are set in configuration files. A local cache is used as well (the skip list), but settings are always read from the database, so updating the cache does not affect the actual user's settings. The following global functions are available and they still seem to work for DOORS 8.2. // get current setting - the second parameter is the default setting bool setting = getYesNoEnvironmentOption(getWarnViewChangesKey_, true) // turn view changes warning off setYesNoEnvironmentOption(getWarnViewChangesKey_, false) // turn view changes warning on setYesNoEnvironmentOption(getWarnViewChangesKey_, true) ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Thanks Tony that's so much easier than my attempt.
Couldn't find those commands in the CommandDatabase for 8.2 that was posted in the forums..... ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
They are not perms, they are functions defined in DOORSHOME\lib\dxl\standard\options\globalSettings.inc.
Naughty using these as the file is encrypted, but I figure it is still safer to use these rather than attack the conf files directly. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Thanks Tony....
Mind telling me how you unencrypted the file....There's one or two that I wouldn't mind taking a look at.... ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
Right there with you. ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
I haven't decrypted the file - I just know that's where the functions are.
------------------------- Tony Goodman http://www.smartdxl.com Edited: 22-Feb-2008 at 08:36 by Tony Goodman |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Setting User Options/Removing Filters
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.