NetLoan - Add a Custom Filter to a Query Report

Overview

Custom filters extend a query report's filtering beyond the standard filter set, letting you filter results on a field the report's query provides. This article covers creating a custom filter, choosing which report(s) it appears on, and confirming the report's query supports it. A custom filter only works when the report's underlying SQL query exposes the field you're filtering on.

Prerequisites

  • An existing query report to attach the filter to (see Create a New Query Report).
  • The report's SQL query must include the field/data you want to filter on. If the query doesn't expose that field, the filter will appear but won't change the results. Out-of-the-box reports ship with their query already built; for a custom report, write or adjust the query yourself or have your NetSuite partner help.
  • Standard NetLoan access with permission to create custom filter records.

Setup Options

Navigation

  • Top navigation:NetLoan > NetLoan Setup > Custom Filters > New to create a new custom filter.


Custom Filter Record

Configure the following on the custom filter record. The report(s) the filter appears on are chosen with the Report field on this record.

Record ID: customrecord_da_custom_filter

Field NameField TypeDescriptionDependenciesOptions / ExampleField ID
Field LabelTextThe label shown for the filter on the report.NonePeriod End Datecustrecord_da_cf_field_label
Field TypeSelectThe input type presented to the user for this filter.NoneDate; Currency; List/Record; Free-Form Text; Integer Number; Checkbox; Multiple Selectcustrecord_da_cf_field_type
Field SourceList/RecordThe record or list the filter draws its selectable options from.Used when Field Type is List/RecordSubsidiarycustrecord_da_cf_field_source
OperatorSelectThe comparison applied when filtering results.NoneOn; Within; Equal To; Any Of; Betweencustrecord_da_cf_filter_operator
Filter NameTextThe field the filter targets. This must be present in the report's query for the filter to take effect.Must match a field in the report's querytransaction_datecustrecord_da_cf_filter_name
SuiteletSelectThe suitelet the filter applies to. Select the report suitelet to use the filter on query reports.NoneNetLoan Report Generatorcustrecord_da_cf_suitelet
ReportList/RecordThe specific report(s) this filter appears on, so it shows only where it's relevant rather than on every report.Suitelet set to the report suiteletA specific query reportcustrecord_da_cf_report

Optional fields: Mandatory (custrecord_da_cf_field_mandatory) to require a value, Default Value (custrecord_da_cf_default_value) to pre-fill the filter, and Field Help (custrecord_da_cf_field_help) to show help text on the filter.

If you leave the Report field blank, the filter applies to every report on the selected suitelet. Set it to one or more specific reports so the filter only shows where it belongs.

A custom filter whose Filter Name field isn't present in the report's query will appear but won't actually filter the results, so confirm the query includes that field.

Use Case Specific Setup

Use Case: Filter by accounting period

To let users filter a report's results to a specific accounting period, for example a period-end subledger report:

FieldSettingExampleNotes
Field LabelA user-facing labelPeriod End DateThe label users see on the report
Field TypeDateDatePresents a date picker
OperatorOnOnMatches results to the selected period date
Filter NameThe query field for the period/transaction datetransaction_dateThe report's query must include this field
ReportThe target query reportPeriod-End Subledger ReportKeeps the filter off unrelated reports

Use Case: Restrict a filter to a single report

When a filter only makes sense for one report:

FieldSettingExampleNotes
ReportThe single applicable reportOverdue Payment ReportPrevents the filter from showing on every other report
Filter NameThe field that report's query exposesloan_idConfirm the field is present in that report's query

Related Articles


Was this article helpful?