Trace Object
Description
Represents a traceability association between two requirements.
Remarks

Get a Trace object from the ReqTraceFactory pointed to by the Req .ReqTraceFactory Property of a requirement.

When creating the Trace object with the AddItem method, the direction of the trace is specified. If the direction is from the Req whose factory is used, the the Trace is created with the initiating Req in the FromReq. If the direction is to the initiating Req, the Trace is created with the initiating Req in the ToReq Property.

After the Trace is created, set the TracedReq property to the second Req. When you set TracedReq, the Trace object sets either FromReq or ToReq to point to the second Req. Which property is set depends on the direction of the Trace.

Interfaces
Implemented InterfaceDescription
IBaseField2Represents a basic data field or entity, such as an attachment.
IBaseField3Represents a basic data field or entity, such as an attachment.
IBaseField4Represents a basic data field or entity, such as an attachment.
Public Methods
Public Method LockObjectLocks the object. Returns True if the object has been changed on the server.
Public Method PostPosts all changed values into database.
Public Method RefreshReads saved values, overwriting values in memory.
Public Method UndoUndoes changes to field values that have not been posted.
Public Method UnLockObjectUnlocks the object.
Public Properties
Public Property AutoPostIf true, the database is updated immediately when the field value changes.
Public Property AutoUnlockIndicates whether to make the item changeable to other users automatically after a Refresh or Post.
Public Property FieldThe value of the specified field.
Public Property FieldMultiValueThe MultiValue object of the specified field.
Public Property FromReqThe requirement from which the association is defined.
Public Property IDThe item ID.
Public Property IsLockedChecks if object is locked for editing.
Public Property ModifiedChecks if the item has been modified since last refresh or post operation. If true, the field properties on the server side are not up to date.
Public Property ToReqThe requirement to which the association is defined.
Public Property TracedReqThe other requirement that the initiating requirement forms a trace with.
Public Property TypeNameThe field's type.
Public Property VirtualChecks if this is a virtual item, that is, an item that does not have a corresponding database record.
See Also