![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Checking if object modified Topic Summary: Created On: 27-Dec-2006 14:31 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: The following (undocumented ?) perm returns a more accurate time stamp than the "Last Modified On" attribute: Date d = lastModifiedTime(object) Note that this can return null, so you need to test for this and if so use the "Last Modified On" attribute instead. Off the top of my head, what about using a configuration file to store the time your script was last run on that module? Check this against the latModifiedTime to see if the object has changed since the script was last run. | |
![]() |
|
Other than checking the "Last Modified On" attribute date is there any other way to check if an object was modified before closing a module? I'm writing a script that will be executed by a trigger that runs before the module closes. I want to check if certain objects were modified during the session and do some processing on them. I could check that the last modified date is today and was modified by the current user, but then what if that person reopens the module later that day but doesn't do anything to it. Then the script will run again which I don't want it to do. ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com Edited: 27-Dec-2006 at 14:43 by David Pechacek |
|
![]() |
|
![]() |
|
Comparing session may be what you want to do.
|
|
![]() |
|
![]() |
|
Do you mean compare the "Last Modified On" attribute time of day to the time of day when the session started? Our module isn't set to save the time of day, just the date. And even logged in as Administrator I'm not able to change that.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
I don't have doors available to me right now so I can't be specific -- but you can look into the help file -- there is a session to each time a person logs on -- the session number recorded if a person makes a change.
Also you can look at the history of the object. |
|
![]() |
|
![]() |
|
Hi David,
another option would be to use a pre/post save Trigger on all Objects in Module. So you would be able to do your update immedeately after change of one Object .... Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
True. But I'm only caring if certain things are changed in the object. And only on certain objects.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
The following (undocumented ?) perm returns a more accurate time stamp than the "Last Modified On" attribute:
Date d = lastModifiedTime(object) Note that this can return null, so you need to test for this and if so use the "Last Modified On" attribute instead. Off the top of my head, what about using a configuration file to store the time your script was last run on that module? Check this against the latModifiedTime to see if the object has changed since the script was last run. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Awesome. Thanks for the help. I should be able to work some way of doing what I want to do out with that.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Checking if object modified
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.