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: Setting User Options/Removing Filters
Topic Summary:
Created On: 21-Feb-2008 14:10
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.
 21-Feb-2008 14:10
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 21-Feb-2008 14:27
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
 21-Feb-2008 14:32
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 21-Feb-2008 15:21
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 21-Feb-2008 16:10
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 21-Feb-2008 16:15
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 21-Feb-2008 16:23
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 21-Feb-2008 16:39
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 21-Feb-2008 16:50
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Originally posted by: Scott BoisvertMind telling me how you unencrypted the file....There's one or two that I wouldn't mind taking a look at....


Right there with you.

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


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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