ClassCount: Integer;
The ClassCount property determines the number of classes, by which filtering is executed.
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.Item(0);
Con.ClassCount := 2;
Con.ClassId(0) := MetabaseObjectClass.KE_CLASS_PROCEDURALREPORT;
Con.ClassId(1) := MetabaseObjectClass.KE_CLASS_EXPRESSREPORT;
Obj.Save;
FilCon.SaveToFile(FilCon.DefaultFileName);
End Sub UserProc;
After executing the example the property of filter condition is changed: show records of access protocol for classes of the Regular Report and Express Report objects.
See also: