Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

search.Filter

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=search.Filter for more information.

N/search Module
search.Filter
Object Description: Encapsulates a search filter used in a search. Use the properties for the Filter object to get and set the filter properties. You create a search filter object with search.createFilter(options) and add it to a search.Search object that you create with search.create(options) or load with search.load(options). NetSuite uses an implicit AND operator with search filters, as opposed to filter expressions which explicitly use either AND and OR operators. Use the following guidelines with the Filter object: To search for a "none of null" value, meaning do not show results without a value for the specified field, use a value of @NONE@ in the Filter.formula property. To search on checkbox fields, use the IS operator with a value of T or F to search for checked or unchecked fields, respectively. For a complete list of this object’s methods and properties, see Filter Object Members.
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Module: N/search Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=search.Filter

Example:

// Code Example 1
//Add additional code
//...
var mySearchFilter = search.createFilter({
name: 'entity',
operator: search.Operator.ISEMPTY,
});
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4345767603.html