📚 SAP Business One SDK Help

AddTaxReportFilter Method
See Also  Example
pITaxReportFilter

The TaxReportFilter Object you want to add.

Description

Adds new TaxReportFilter to the ReportFilterService Object.

Syntax

Visual Basic
Public Function AddTaxReportFilter( _
   ByVal pITaxReportFilter As TaxReportFilter _
) As TaxReportFilterParams

Parameters

pITaxReportFilter

The TaxReportFilter Object you want to add.

Example

Add a new Filter that is based on an existing Filter
AddTaxReportFilter (Visual Basic)Copy Code
Dim oTaxReportFilterParams As TaxReportFilterParams
Dim oTaxReportFilter As TaxReportFilter

'get a new Filter Params structure
oTaxReportFilterParams = oTaxReportFilterService.GetDataInterface(ReportFilterServiceDataInterfaces.rfsdiTaxReportFilterParams)

'set an existing Filter code
oTaxReportFilterParams.Code = 4

'get Report Filter
oTaxReportFilter = oTaxReportFilterService.GetTaxReportFilter(oTaxReportFilterParams)

'Change properties: set a new name
oTaxReportFilter.Name = "My Filter"

'add a new Filter
Call oTaxReportFilterService.AddTaxReportFilter(oTaxReportFilter)

See Also