IAuditFilter.DateOrderAsccending

Syntax

DateOrderAsccending: Boolean;

DateOrderAsccending: System.Boolean;

Description

The DateOrderAsccending property defines the order of sorting by date.

Comments

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

Example

To execute the example, add links to the Metabase, ForeSystem (for the Fore.NET example) system assemblies.

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;

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.ForeSystem;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    AL: IAuditLog;
    AF: IAuditFilter;
    Lic: Object;
Begin
    MB := Params.Metabase;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.lftAdm);
    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;

After executing the example sorting of access protocol in date ascending order is set.

See also:

IAuditFilter