![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Date suspect link was cleared? Topic Summary: If suspect link has never been cleared, what is value? Created On: 4-Nov-2005 20:15 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
When the link is created
l."Suspicion Cleared Forwards" l."Suspicion Cleared Backwards" are both blank, however the clear suspect link dialog still says suspect link last cleared on ... down to the second. I believe that when the Cleared field is blank, it goes to the l."Last Modified On" field. However, my Last Modified field is on the form "27 January 2005" (no hours/minutes/seconds). So when I do the following code piece: Date mod_date mod_date = l."Last Modified On" print mod_date " : " (dateOf(intOf(mod_date))) "\n" I get: 27 January 2005 : 01/27/05 00:00:00 How do I get the ACTUAL modification date including the correct HH:MM:SS? This same question applies to getting the modification date of an object. |
|
![]() |
|
![]() |
|
I think you are correct that the last modified date is rounded to the beginning of the day, and that's tough luck if you need more precision.
|
|
![]() |
|
![]() |
|
That is certainly the way it seems.
However, when you go to clear the suspect link, DOORS dialog gives you MORE precision. It says the suspect link was last cleared on ... and it gives the FULL precision. Where in the !@#%! is it getting that precision? From a hidden attribute that they don't tell us about? Please don't tell me that this is one of those wonderful DOORS "features", where DOORS can access information that you can't get with the DXL. All I want is access to the same information that the dialog is pulling from somewhere ... is that too much to ask? |
|
![]() |
|
![]() |
|
The suspect link functionality uses the date from the history records, not the "Last Modified On" attribute. This explains why there seems to be a mismatch between the precision being shown.
To get the ACTUAL date that the object was last modified you need to look at the history records. Something like this ... ------------------------- Tony Goodman http://www.smartdxl.com Edited: 8-Nov-2005 at 09:34 by Tony Goodman |
|
![]() |
|
![]() |
|
The Last Modified On attr doesn't keep track of hours+minutes, but that doesn't mean other Date attributes don't. I didn't look but link modules they have some attributes and the Suspect Link stuff makes use of them. Getting dates from the link may look like this:
Link lnk Date LinkDateValue for lnk in obj -> "WhatsMyLinkModuleName" do { LinkDateValue = lnk."WhatsTheAttrNameFoundInTheLinkModule" } Remember that even though the Attr is defined in the Link Module (and you can add your own), the information is stored somewhere in the source module in a manner that only Goodman probably knows. Realistically this means you modify link attrs you need the source module open shared or exclusive. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Date suspect link was cleared?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.