CasewareDocs
New in Caseware Cloud Engagements 2026-05See what's new

SaveWithTestFilter

Saves defined tagging to IDEA database, test filter for creating test associations can be specified.

Compatibility

Available as of IDEA version 10.0

Syntax

SaveWithTestFilter(testFilter as ExpressionSimple)

Parameter

testFilter

Test filter for creating test filter associations.

Remarks

Within the class Audicon.SmartAnalyzer.Common.MacroCommands.AuditTest.Tagging is implemented.

From within IDEAScript, test filter can be created by using the methods of the class

Audicon.SmartAnalyzer.Common.MacroCommands.CustomImport.ContentEquationBuilder.

Standard Import Routines use a filter based on the property Content Area. For Standard Import Routines the method that is used to compose the test filter for associations is ContentEquationBuilder.GetStandardTestFilter. Below you can find an example how the filter is created in Standard Import Routine Payments Debtors and how SaveWithTestFilter is called.

Example

Sub Main() 
Dim tableTagging As Object
Dim filter As Object
Dim equationBuilder As Object

Set equationBuilder = SmartContext.MacroCommands.ContentEquationBuilder()
Set filter = equationBuilder.GetStandardTestFilter("ListOfPaymentTransactionsDebtors")
Set tableTagging = SmartContext.MacroCommands.TagManagement.Tagging("ABC.IMD")
tableTagging.SetTag "AccountNumber", "ADDRESS"
tableTagging.SetTag "Amount", "SALARY"
tableTagging.SaveWithTestFilter filter
End Sub