IAuditFilterCondition.IsAnd

Syntax

IsAnd: Boolean;

IsAnd: boolean;

Description

The IsAnd property determines operation of union with the next condition.

Comments

If the property is set to True, union by logical "AND" is performed, otherwise - "OR".

Example

Executing the example requires an access protocol filter with the FILTER identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    FilCon: IAuditFiltersContainer;
    Objs: IAuditFilterObjects;
    Obj: IAuditFilterObject;
    Con: IAuditFilterCondition;
    Fil: IAuditFilter;
Begin
    FilCon := 
New AuditFiltersContainer.Create;
    FilCon.Load;
    Objs := FilCon.Filters;
    Obj := Objs.FindById(
"FILTER").Edit;
    Fil := Obj.Filter;
    Con := Fil.Add;
    Con.IsAnd := 
True;
    Con.IsNot := 
True;
    Con.IncludeSucceededOperations := 
False;
    Con := Fil.Item(
0);
    Con.MinDate := DateTime.ComposeDay(
200911);
    Con.MaxDate := DateTime.Now;
    Obj.Save;
    FilCon.SaveToFile(FilCon.DefaultFileName);
End Sub UserProc;
Public Shared Sub Main(Params: StartParams);
Var
    FilCon: IAuditFiltersContainer;
    Objs: IAuditFilterObjects;
    Obj: IAuditFilterObject;
    Con: IAuditFilterCondition;
    Fil: IAuditFilter;
Begin
    FilCon := 
New AuditFiltersContainer.Create();
    FilCon.Load();
    Objs := FilCon.Filters;
    Obj := Objs.FindById(
"FILTER").Edit();
    Fil := Obj.Filter;
    Con := Fil.Add();
    Con.IsAnd := 
True;
    Con.IsNot := 
True;
    Con.IncludeSucceededOperations := 
False;
    Con := Fil.Item[
0];
    Con.MinDate := System.DateTime.Parse(
"1.1.2009");
    Con.MaxDate := System.DateTime.Now;
    Obj.Save();
    FilCon.SaveToFile(FilCon.DefaultFileName);
End Sub;

After executing the example the second condition, for which the union operation with the previous condition "Union by logical AND with adding negation of a condition (NOT)" is determined, is added for a filter.

See also:

IAuditFilterCondition