TableColumnCondition Object for SuiteScript Reference
The TableColumnCondition object allows defining conditions for table views in SuiteScript, supporting server scripts and specific filter operations.
The TableColumnCondition object is essential for creating conditions pertaining to table view columns within SuiteScript. It supports server scripts and enables developers to establish specific filters and conditions easily.
What is the TableColumnCondition Object?
The TableColumnCondition allows you to define conditions for a specific column in a table view. To instantiate this object, developers can use the method workbook.createTableColumnCondition(options), which initializes a new condition based on specified parameters.
Members of the TableColumnCondition Object
The TableColumnCondition object includes the following members:
| Member Name | Type | Description |
|---|---|---|
TableColumnCondition.filters | workbook.TableColumnFilter[] | The filters associated with the condition |
TableColumnCondition.operator | string | The operator defining the condition |
Member Details
- filters: This property represents an array of
workbook.TableColumnFilterobjects that apply to the condition. - operator: This property defines the string representing the logical operator (such as
AND,OR, etc.) to be used within the condition.
Supported Platform and Script Types
The TableColumnCondition object is utilized exclusively in server scripts within the SuiteScript environment. Developers seeking more details about compatible script types can refer to the SuiteScript 2.x Script Types documentation.
Error Handling
In the event of misconfiguration, the error code WRONG_PARAMETER_TYPE is thrown. This indicates that the assigned parameter does not match the expected type, informing the developer to verify their inputs.
Conclusion
The TableColumnCondition object streamlines the process of applying conditions in a structured tabular format, thereby enhancing the functionality and ease of data manipulation in SuiteScript.
Frequently Asked Questions (4)
Does the TableColumnCondition object apply to client scripts as well as server scripts?
What method is used to create a TableColumnCondition object?
What happens if the parameters for TableColumnCondition are of the wrong type?
Can you use logical operators within the TableColumnCondition object?
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.
