2022.1

Table Of Contents
Passing an improper data type triggers an error. For instance the following objects are all
invalid:
{ myBoolean : "true" } - The myBoolean field is boolean and expects a boolean, not a string
{ myDate : "2021-03-29" } - The myDate field is a date and expects a Date object:myDate:
new Date(2021,2,29), not a string
{ myPageCount : 2.5 } - The myPageCount field is an integer and expects a number without
any decimals
{ myPrice : "19.99" } - The myPrice field is a currency and expects a number value, not a
string
Examples
This script sets the 'customerName' and 'customerAddress' fields of a detail table row.
record.tables.details[3].set({customerName : "John Doe",
customerAddress : "123 test road"});
The following script adds an empty row to the table and then extracts some data into the
Description field of the new row.
row = record.tables.myDescriptions.addRow();
record.tables.myDescriptions[row].set( {Description : data.extract
((52+i*12),(66+i*12),0,1,"<br />")} );
Functions
copyFile()
Function that copies a file to the target file path, replacing it if it already exists.
copyFile(source, target)
source
String that specifies the source file path and name.
target
String that specifies the target file path and name.
Page 463