Range Object Members
Explore Range Object Members in SuiteScript, detailing date-time range properties for effective data handling.
The Range Object in SuiteScript allows developers to handle date or date-time ranges effectively. The object comprises two primary members vital for understanding date boundaries in workflows.
What is the Range Object?
The workbook.Range object represents a date or date-time range. The dates are formatted according to user preferences in their account and can be returned after executing a pivot.
What are the Members of the Range Object?
Below are the members available for the workbook.Range object:
| Member Name | Type | Description | Supported Script Types |
|---|---|---|---|
Range.end | string | The end date or date-time of the range. | Server scripts |
Range.start | string | The start date or date-time of the range. | Server scripts |
Member Descriptions
-
Range.end: This property retrieves the end date or time of the specified range. It is returned as a string and adheres to the user's date formatting preferences. Modifying this property after object creation will result in aREAD_ONLY_PROPERTYerror. -
Range.start: Similar toRange.end, this property provides the start date or time of the range. It is also formatted as a string, reflecting the user's account settings.
Supported Script Types
Both members of the Range object are compatible exclusively with server scripts, making them useful within the context of backend operations.
By understanding these properties, developers can effectively manage and utilize date ranges in their SuiteScript applications, ensuring accurate data manipulations that align with user requirements.
Additional Resources
For further information, explore the N/workbook Module and SuiteScript 2.x Modules.
Source: This article is based on Oracle's official NetSuite documentation.
Key Takeaways
- The
Rangeobject is essential for handling date-time ranges in SuiteScript. - Key members include
Range.startandRange.end, both of which return date-time strings. - Understanding these properties enhances data manipulation in SuiteScript workflows.
Frequently Asked Questions (4)
Are the Range.start and Range.end properties writable in the Range Object?
In which scripting environment can the Range Object be utilized?
How are the dates formatted in the Range Object members?
Can the Range Object be used in client scripts?
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