![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: History Session Number Topic Summary: Created On: 2-Apr-2008 22:52 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
History Session Number
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.