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: How do I change edit mode in DXL?
Topic Summary:
Created On: 14-Jan-2005 14:21
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.
Answer This question was answered by Louie Landale, on Friday, March 11, 2005 5:05 PM

Answer:
You can go from Read-Only to Shared with the open "share" command.
You can go from Read-Only to Exclusive with the open "edit" command.
You can go from Shared to Read with the "downgrade(mod)" command.
You can go from Shared to Exclusive with the combination "downgrade(mod)", then "edit".
You can go from Exclusive to Read-Only with the "downgrade" command.
You can go from Exclusive to Shared with the "downgradeShare" command.

If currrently Shared or Exclusive, I'd check the "unsaved(mod)" command first, and issue an explicit "save(mod)" before the above (otherwise the user will get prompted to save in the middle of your script).

- Louie
 14-Jan-2005 14:21
User is offline View Users Profile Print this message


Mikael Bendtsen

Posts: 11
Joined: 18-Feb-2003

Hi,

How do I change edit mode through DXL without closing and re-opening the module in the desired mode? The reason for asking is that I want to preserve any filters set by the user and then perform operations on the filtered objects. The filter is not saved to a view but it is set in the current view? Thus, closing and re-opening will not work because that will lose the filter.

Is there a way to read out the filter (as is) and then re-apply when I've closed and opened the module again?
Report this to a Moderator Report this to a Moderator
 17-Jan-2005 09:35
User is offline View Users Profile Print this message


Jonathan Marshall

Posts: 27
Joined: 10-Apr-2003

Mikael,

If the module is already open in read-only then the standard edit() or share() functions will change it to exclusive or shareable edit mode. E.g.

Module m = current
string mName = fullName m
edit(mName,true)

Any filtering is not changed. To go in the other direction you need downgradeShare() to go from exclusive to shareable edit or downgrade() to go from either edit mode to read-only

-------------------------
Jonathan Marshall
EADS Astrium
Report this to a Moderator Report this to a Moderator
 19-Jan-2005 23:11
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
You can go from Read-Only to Shared with the open "share" command.
You can go from Read-Only to Exclusive with the open "edit" command.
You can go from Shared to Read with the "downgrade(mod)" command.
You can go from Shared to Exclusive with the combination "downgrade(mod)", then "edit".
You can go from Exclusive to Read-Only with the "downgrade" command.
You can go from Exclusive to Shared with the "downgradeShare" command.

If currrently Shared or Exclusive, I'd check the "unsaved(mod)" command first, and issue an explicit "save(mod)" before the above (otherwise the user will get prompted to save in the middle of your script).

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