SysDateEffectiveDataManager Class [AX 2012]
The SysDateEffectiveDataManager class provides the base functionality to implement date effectivity in other features or modules.
| Method | Description | |
|---|---|---|
| addFutureRecord | Creates a future version of the record from an earlier version of the effective dated record. |
| cacheKey | Retrieves the name of the global cache variable that is specified in the derived class. |
| canActivate | Determines whether a specific version can be activated. |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| copy | Copies the data of all corresponding tables from an earlier version of the effective dated record to the new version when there is any update in the dated effective table. |
| createNewVersion | Creates a new version of the effective dated table record. |
| createVersionAfterPastVersion | Creates a new version with the same attributes as the _sysDateEffectiveVersion record and sets the effective date to the expiration date of the past version. |
| delete | Creates a new version of the effective dated record when there is a deletion in any of the corresponding tables and copies the data into corresponding tables from the earlier version. |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| existActiveVersion | Determines whether the active record with the _parentId parameter in the SysDateEffectiveVersion map exists. |
| existFutureVersion | Determines whether the future record with the _parentId parameter in the SysDateEffectiveVersion map exists. |
| existPastVersion | Determines whether the expired record with the _parentId parameter in the SysDateEffectiveVersion map exists. |
| expireCurrentRecord | Expires a currently active record of the effective dated table by changing the expiration date to a past value. |
| expireVersion | Expires the version by setting the expiration date to the current date. |
| findCurrentVersionByParentId | Finds the current version in the SysDateEffectiveVersion table by parent ID. |
| findFutureVersionByParentId | Finds the first future version in the SysDateEffectiveVersion map by using a parent ID. |
| findPastVersionByParentId | Finds the past version in the SysDateEffectiveVersion table by parent ID. |
| findVersionByParentIdAndDate | Finds a version in the SysDateEffectiveVersion map by using the parent ID and transaction date. |
| getEffectiveDateOfNextFutureVersion | Retrieves the effective date of the next future version. |
| getExpirationDateOfLastExpiredVersion | Retrieves the expiration date of last expired version. |
| getLatestVersionId | Retrieves the record ID of the latest version for the specified parent ID. |
| getMode | Gets the global cache variable. |
| getSysDateEffectiveVersion | Gets an instance of the SysDateEffectiveVersion map that is specified in the derived class.. |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| insert | Creates a new version of the effective dated record when there is an insertion in any of the corresponding tables and copies the data in corresponding tables from the earlier version. |
| isOnlyVersion | Determines whether the current version is the only version available for the parent record. |
| new | Initializes a new instance of the Object class. (Inherited from Object.) |
| notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
| notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
| objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
| owner | Returns the instance that owns the object. (Inherited from Object.) |
| processData | Creates a new version of the effective dated record when there is a deletion in any of the corresponding tables and copies the data in corresponding tables from the earlier version. |
| setMode | Sets the global cache variable by using the value of the ValidTimeStateUpdate object. |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| update | Creates a new version of the effective dated record when there is an update in any of the corresponding tables and copies the data in corresponding tables from the earlier version. |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
| ::activateVersion | Activates the version by setting the effective date and the expiration date. |
| ::construct | Creates an instance of the respective module or feature class based on the specified parameter type. |
| ::createVersionBeforeFutureVersion | Creates a new version that has the same attributes as the _sysDateEffectiveVersion record and sets the expiration date to the effective date of the first future version. |
| ::getSysDateEffectiveSetupTypeByTableId | Gets the SysDateEffectiveSetupType enumeration value by using the specified table ID. |
| ::getUpdateMode | Gets the global cache variable that is identified by the key that is specified in the derived class. |
| ::getVersionHelpText | Gets the help text to describe a record that is based on the specified dates. |
| ::getVersionIconImage | Gets the icon image that is used to describe a record that is based on the specified dates. |
| ::isVersionExpired | Indicates whether the specified version is an expired version. |
| ::isVersionFuture | Indicates whether the specified version is a future version. |
| ::setUpdateMode | Sets the global cache variable that is identified by the key that is specified in the derived class. |
Community Additions
ADD
Show: