![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Viewing Attribute of Soft Deleted Objects Topic Summary: Accessing and displaying attributes of deleted objects Created On: 27-Oct-2005 13:53 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|||
Hello, Our projects have requirements volatility scripts that are run to generate a report detailing the volatility for that particular month. One limitation that the script has is that, while it is able to generate a list of objects that were deleted during that month, it is not currently able to determine which of these (if any) were actual requirements (designated by a boolean attribute called IsRequirement). I have been attempting to modify the script to allow it to look at objects which are in a soft deleted (non-purged) state and look at the objects' IsRequirement value but have not been successful. Here are some snippets of my code... Module m = read(fullName itemref, false) - open the module read-only showDeletedObjects(true) - attempt to display soft-deleted objects . . . void WriteModuleLevelEvents(Stream out) { History h for h in (current Module) do { if ((h.type == deleteObject) && IsDateInRange(h.date)) { Object o = object(h.absNo) out << "," h.date "," stringOf h.type "," h.absNo "," o.IsRqmt "," h.position "\n" } } } I get the following error: -R-E- DXL: Backtrace: Any help would be greatly appreciated as I am completely stumped at the moment. Thanks, Tim |
|||
![]() |
|||
![]() |
|||
Try
for h in entire (current Module) do ------------------------- Regards, Richard Good |
|||
![]() |
|||
![]() |
|||
Richard suggests the following structure, which is pretty standard:
for obj in entire mod do { if (isDeleted(obj)) { deal with deleted object, such as "continue"} else {deal with undeleted object} } This is better than the "for obj in mod do" loop, which only finds currently displayed objects (which changes from time to time). But that doesn't apply to you since you are seeking recently deleted objects in History. Try [1] insert "current = mod" after the "read" statement. Your "showDeletedObjects" command may be working on the wrong module. [2] stage the object ID before using the "object" command: int AbsNo hst.absno; obj = object(AbsNo) - Louie |
|||
![]() |
|||
![]() |
|||
Richard/Louie,
Thanks for your assistance. Unfortunately, I was not able to get the DXL to work correctly utilizing your suggestions. I was able, however, to make it work by adding "noError" to the beginning of the WriteModuleLevelEvents function listed above. I don't like the fact that it only works when I add this. I am attaching the entire DXL program. To run the DXL program, you must have a project selected and the project must contain at least one formal module that contains a boolean attribute called IsRequirement. I appreciate your assistance and look forward to any additional help you can provide. Thanks, Tim
|
|||
![]() |
Telelogic DOORS
» DXL Exchange
»
Viewing Attribute of Soft Deleted Objects
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.