Range calculator scripts
-
- UpdatedAug 3, 2023
- 2 minutes to read
- Vancouver
- Time Configuration
The Vancouver release is no longer supported. As such, the product documentation and release notes are provided for informational purposes only, and will not be updated.
You can specify a script include that calculates range restrictions and processes parent updates in a timeline page.
Range Calculator Scripts
Following are three examples of script includes that help specify range restrictions.
ExampleUpdateParentsRangeCalculator
Updates parent records when a child record span is moved or resized in the timeline.
In this example, the span is identified based on the id and table from function(id, table, startDate, endDate).
ExampleMinRangeCalculator
Defines the earliest start date and the latest end date for a specified
span.
ExampleMaxRangeCalculator
Defines the earliest start date and the latest end date for a specified span.
Use the following two functions to obtain the correct start and end dates in the three
example script includes provided for
reference.