IAuditFilter.DateOrderAsccending

Syntax

DateOrderAsccending: Boolean;

Description

The DateOrderAsccending property determines the order of sorting by date.

Comments

If the property is set to True, the sorting is executed by date ascending; if the property is set to False, by descending.

Example

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    AL: IAuditLog;
    AF: IAuditFilter;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    
// Open access protocol
    Al := MS.OpenAuditLog;
    AF := Al.Filter;
    
// Set access protocol sorting by date ascending
    AF.DateOrderAsccending := True;
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

After executing the example, access protocol sorting by date ascending is set.

See also:

IAuditFilter