TableColumnFilter Object Members in SuiteScript
The TableColumnFilter object in SuiteScript enables creating filters for table columns in workbooks, enhancing data manipulation.
The TableColumnFilter object is a vital component in SuiteScript, specifically designed for creating filters on table columns within workbooks. This object allows developers to apply various filtering operations, enhancing data manipulation capabilities in custom reports and data presentations.
What is the TableColumnFilter Object?
A TableColumnFilter object is instantiated using workbook.createTableColumnFilter(options). It serves as a parameter for the method workbook.createConditionalFormatRule(options), enabling customized conditional formatting based on specific criteria.
TableColumnFilter Object Members
The TableColumnFilter object comprises two primary members:
| Member Name | Type | Description |
|---|---|---|
| TableColumnFilter.operator | string | The operator applied to the column filter. |
| TableColumnFilter.values | `Array<null | Object |
Property Descriptions
- operator: This property determines the filter's operator. It is crucial for defining how the filter behaves (e.g., equals, not equals).
- values: This property consists of an array that can hold multiple types of values (null, object, boolean, number, string, date) that the filter will act upon.
Supported Script Types
The TableColumnFilter is designed for use in server scripts only. For more insights, refer to the SuiteScript 2.x Script Types.
Error Handling
Developers should also be aware of potential error codes associated with this object:
- INVALID_OPERATOR: Raised when an unsupported operator is used.
- WRONG_PARAMETER_TYPE: Raised if the provided value for the operator is not a string.
By utilizing the TableColumnFilter, developers can finely tweak their table display and enhance user interfaces with dynamic filters that respond instantly to data changes. This makes data analysis more intuitive and efficient.
Key Takeaways
- The
TableColumnFilterallows for dynamic filtering in workbook tables. - It includes essential properties like
operatorandvalues. - Only applicable in server scripts, supporting various data types for flexible usage.
Frequently Asked Questions (4)
Is the TableColumnFilter object usable in client-side scripts?
What types of values can be used in the TableColumnFilter.values property?
What are the error codes that might be encountered when using the TableColumnFilter?
How is a TableColumnFilter object instantiated in SuiteScript?
Was this article helpful?
More in SuiteScript
- SuiteScript 2.1 Enhancements in NetSuite February Updates
SuiteScript 2.1 now supports async features and PATCH method. Discover the latest API and SuiteProcurement improvements.
- Scheduling Map/Reduce Script Deployments in NetSuite
Learn to schedule map/reduce script submissions, including one-time and recurring options in NetSuite.
- Binary File Support in N/https Module for SuiteScript
SuiteScript enhances capabilities with binary file support in the N/https module, allowing improved data handling in external communications.
- API Governance Units Calculation in NetSuite 2026.1
NetSuite 2026.1 introduces examples illustrating API governance unit calculations for both user event and scheduled scripts.
