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.
Source: This article is based on Oracle's official NetSuite documentation.
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 Platform
- Style Object Members for Workbook API in NetSuite
The Style object provides customizable properties for workbook formatting in NetSuite, enhancing report and visualization functionality.
- Asynchronous HTTP Requests with SuiteScript Promises
Use SuiteScript to send asynchronous HTTP requests with promises for efficient error handling and response processing.
- Setting Sublist Field Values in SuiteScript
Set values for sublist fields in SuiteScript using the setSublistValue method. Understand required parameters and error handling.
- In This Help Topic
Explore N/log module guidelines, log levels, and script execution logs for efficient logging in SuiteScript.
Advertising
Reach Platform Professionals
Put your product in front of NetSuite experts who work with Platform every day.
Sponsor This Category