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: History Session Number
Topic Summary:
Created On: 2-Apr-2008 22:52
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.
 2-Apr-2008 22:52
User is offline View Users Profile Print this message


Thomas Young

Posts: 20
Joined: 12-Apr-2005

To get the current session number you need about 4 lines of code (not too bad), but you would think there's a DXL perm to get it directly. You would think "session" would be that perm, but no, it only gives you today's date. This code is how we get the current session # now:

// Get current history session number
HistorySession hs
int sessionNumber = 0
for hs in current Module do sessionNumber = number hs
sessionNumber++ // Must add 1 to get current session number


Anyone have an undocumented perm for this?

Tom Y.
Report this to a Moderator Report this to a Moderator
 4-Apr-2008 17:12
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

There seems to be a 'HistorySession current(mod)' perm that does the trick. Try the attached; your method and this method return the same number.

I wonder if you really WANT to add one to the History Session. That would make sense if you open in Read mode (getting the next session), but in Edit and Shared mode it returns the current session.

- Louie

I see there is also a "int mode(HistorySession)" perm, that returns zero when the mode was Exclusive, and returns 2 when the mode was Shared.
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.