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.
Source: This article is based on Oracle's official NetSuite documentation.
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 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