IAuditFilter.DateOrderAsccending

Syntax

DateOrderAsccending: Boolean;

DateOrderAsccending: 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 a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    AL: IAuditLog;
    AF: IAuditFilter;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Get 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.ForeSystem;


Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    AL: IAuditLog;
    AF: IAuditFilter;
    Lic: Object;
Begin
    MB := Params.Metabase;
    
// Get 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