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: shareable edit -> downgrade and shareable edit again
Topic Summary:
Created On: 14-Jun-2007 14:20
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.
 14-Jun-2007 14:20
User is offline View Users Profile Print this message


Darius Dolnik

Posts: 16
Joined: 13-Jul-2004

I have following problem with switching between different edit modes via dxl:

1. The module is open in shareable edit mode. One section is locked.
2. DXL downgrades the module using the downgrade command.
3. After some other actions while the module is open read only DXL opens it shareable edit again. The command used is "share("Modname", true)".

Unfortunately the module changes to exclusive edit !!!

How can I open the module in shareable edit?

Regards
Darius
Report this to a Moderator Report this to a Moderator
 14-Jun-2007 16:00
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Way back in v5, the following commands sometimes caused corruption of the DOORS environment such that no DXL would run. Haven't seen that problem lately. These are the calls used by the Edit menu >Open commands:
setReadOnly()
setExclusive()
setShareable()

They obviously work on the current module. They may be easier than downgrade followed by shared.

Using downgrade(mod) may cause a problem if you have a locked modified section. I suppose DOORS will prompt you to save it.
Report this to a Moderator Report this to a Moderator
 15-Jun-2007 15:10
User is offline View Users Profile Print this message


Darius Dolnik

Posts: 16
Joined: 13-Jul-2004

Louie

thanks for your answer. I use DOORS v7.1 so I do not expect problems occured in v5 in the main. The commands you propose are not available in DOORS manual. Are they not documented i. e. hidden? I do not like to use hidden commands for to-be compatibility reasons.

Regards
Darius
Report this to a Moderator Report this to a Moderator
 15-Jun-2007 16:26
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

These are not undocumented perms nor commands, they are functions written by telelogic ..err.. actually by QSS way back when. I found them while browsing the 'formal.dxl' file (or whatever) that defines the menues in a formal module, the 'Exclusive' command invokes function setExclusive().

These 3 commands are encrypted somewhere. My old testing showed convincingly that they are NOT the same as some sort of downgrade-open sequence, something we DXL nerds have no doubt written at some time or another. Other than that, I really don't know how they work.

- Louie
Report this to a Moderator Report this to a Moderator
 18-Jun-2007 08:54
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

I would say that using SetReadOnly(), setShareable() and setExclusive() is pretty safe - as far as I know these haven't changes for years and are unlikely to now. As Louie says, using these is far easier that doing the downgrade, open stuff youself. Although they only work on the current module.

For those who are interested, the attached shows you how these funtions work. Note that my examples do not assume the current module, but take a parameter.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 18-Jun-2007 17:54
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

What's inplaceEditOff?
Report this to a Moderator Report this to a Moderator
 19-Jun-2007 08:58
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

My apologies, I didn't realize that this perm was not documented. When you are editing an object, i.e. you have the curser in the Object Text or an attribute etc it is called in place editing.

bool inplaceEditOff(Module m, bool keepChanges)

The function inPlaceEditOff turns off the inplace editing - same as clicking elsewhere in the GUI or hitting Ctrl-M.

If the keepChanges parameter is true then edits are preserved, otherwise they are lost (same as hitting ESC key in the GUI).

Try this.

Edit an object's text and leave the curser visible in the text (i.e. you are still editing the object).
Run inplaceEditOff(current Object, true) and see that the change bar for the object turns red and your changes are still there.

Do the same again, but this time run inplaceEditOff(current Object, false). Note that your changes are gone and the change bar is not red.

-------------------------
Tony Goodman
http://www.smartdxl.com
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.