- Home [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Getting started
- Use cases
-
API
- Object types
-
Data types
- AccountType
- DynamicFieldType
- EmailType
- OrganisationStructureItemType
- PhoneType
- ReplacementType
- ServiceStatus
- UserStatus
- WatermarkPages
- WatermarkPosition
- AccountFieldTyped
- AccountFieldVoid
- ApplicationField
- Cell
- ClientEventField
- CookieOptions
- DatetimeFieldData
- DynamicBindingField
- DynamicBindingFields
- EnumField
- ErrorArgs
- ErrorObject
- FileField
- FloatFieldData
- GroupStatusField
- HttpResponse
- ImageField
- Language
- MailMessageAddress
- MailMessageAttachment
- MoneyFieldData
- Navigator
- Page
- ParseSpreadsheetOptions
- ParseSpreadsheetResponse
- RefItem
- ReportField
- ReportRef
- Role
- RoleField
- Row
- ServiceStatusInfo
- StaticApplicationFieldData
- StatusField
- TAccount
- TClientEvent
- TDate
- TDatetime
- TDuration
- TEmail
- TEnum
- TFullName
- TMoney
- TPhone
- TReport
- TStatus
- TTable
- TTime
- TTimezone
- TTimezones
- TableField
- UserField
- UserFieldData
- ValidationResult
- Watermark
- WidgetRefWithValues
- ReplacementTypeEnumBase
- RoleType
- TApplication
- TBoolean
- TCategory
- TFile
- TFloat
- TImage
- TJSON
- TLink
- TOAuth2
- TRole
- TString
- TUser
- Global constants
- Work with apps
- Web requests
- Access permissions
- Document flow
- Live Chats
- “Code” widget
- Signatures
- Business calendars
- Integration with IP telephony
- Integration with email marketing services
Table
Table is a type of variable that stores an array of data (table rows).
Each row is a separate element of an array. It is an object whose properties are defined by the table’s columns. Read more about working with tables in Getting started with the Table data type.
Type parameters
T: ItemData
R: ItemData
Hierarchy
Properties
Readonly length
The TTable.length property returns the number of elements in an array.
The value of this property is an 32-bit unsigned integer that is always greater than the greatest index in the array.
Readonly result
String with the calculated result in the table.
In this string, the calculation of the total, the average, or the number of elements can be set.
Methods
concat
The method returns a new array that includes the array of table elements concatenated with other arrays and/or values passed as arguments.
Important: the returned value is a regular array, not a table.
Parameters
Rest ...items: (T | ConcatArray<T>)[]
Returns T[]
A new array containing all the elements.
delete
The method deletes a specific row from a table.
Parameters
index: number
Returns void
every
The method tests whether at least one element in the array passes the test implemented by the callback function.
Important: the method returns
true
when applied to an empty table, no matter the conditions.Parameters
predicate: function
Parameters
value: T
index: number
array: readonly T[]
Returns unknown
Optional thisArg: any
Returns boolean
Returns
true
if the checking function returnstrue
for each element of the table. Otherwise, returnsfalse
.filter
The method creates a new array consisting of all the elements that meet the conditions set in the callback function.
Important: the returned value is a regular array, not a table.
Parameters
predicate: function
Parameters
value: T
index: number
array: readonly T[]
Returns unknown
Optional thisArg: any
Returns T[]
A new array with elements that met the conditions. If no elements meet the conditions, an empty array will be returned.
find
The method returns the value of the item in the table that is the first one to meet the conditions passed in the
predicate
function. Otherwise, it returnsundefined
.Parameters
predicate: function
Parameters
value: T
index: number
array: readonly T[]
Returns unknown
Optional thisArg: any
Returns T | undefined
findIndex
The method returns an index in an array if the item meets the conditions set in the checking function. Otherwise, it returns -1.
Parameters
predicate: function
Parameters
value: T
index: number
array: readonly T[]
Returns unknown
Optional thisArg: any
Returns number
forEach
The method runs a callback function once for each element in a table.
Parameters
callback: function
Parameters
value: T
index: number
array: readonly T[]
Returns void
Optional thisArg: any
Returns void
indexOf
The method returns the first index that a given item can be found in the table, or it returns -1 if no such index exists.
Parameters
searchElement: T
Optional fromIndex: undefined | number
Returns number
insert
The method adds a new row to a table and returns a link to it.
Parameters
Optional index: undefined | number
Returns T
A new table row.
join
The method concatenates all the elements in a string.
Parameters
Optional separator: undefined | string
Returns string
lastIndexOf
The method returns the last index that a given item in the table has. Or it returns -1 if no such index exists. The table is processed from the end to the beginning, starting with
fromIndex
.Parameters
searchElement: T
Optional fromIndex: undefined | number
Returns number
map
The method creates a new array with the result of calling the function passed as the callback for each element in a table.
Important: the returned value is a regular array, not a table.
Type parameters
U
Parameters
callback: function
Parameters
value: T
index: number
array: readonly T[]
Returns U
Optional thisArg: any
Returns U[]
A new array with each element being the result of the callback function.
reduce
The method applies the reducer function to each element of the table (from left to right) and returns a single resulting value.
Parameters
callback: function
Parameters
previousValue: T
currentValue: T
index: number
array: readonly T[]
Returns T
Optional initialValue: T
Returns T
The method applies the reducer function to each element of the table (from left to right) and returns a single resulting value.
Type parameters
U
Parameters
callback: function
Parameters
previousValue: U
currentValue: T
index: number
array: readonly T[]
Returns U
Optional initialValue: U
Returns U
reduceRight
The method applies a function against an accumulator and each value of the array (from right to left) to reduce it to a single value.
Parameters
callback: function
Parameters
previousValue: T
currentValue: T
index: number
array: readonly T[]
Returns T
Optional initialValue: T
Returns T
The method applies a function against an accumulator and each value of the array (from right to left) to reduce it to a single value.
Type parameters
U
Parameters
callback: function
Parameters
previousValue: U
currentValue: T
index: number
array: readonly T[]
Returns U
Optional initialValue: U
Returns U
slice
The method returns a new array containing a shallow copy of a portion of the initial array.
Important: the returned value is a regular array, not a table.
Parameters
Optional start: undefined | number
Optional end: undefined | number
Returns T[]
A new array containing the extracted table elements.
some
The method tests whether at least one element in the array passes the test implemented by the callback function.
Important: the method returns
false
when applied to an empty table, no matter the conditions.Parameters
predicate: function
Parameters
value: T
index: number
array: readonly T[]
Returns unknown
Optional thisArg: any
Returns boolean
Returns
true
if the checking function returnstrue
for at least one element of the table. Otherwise, returnsfalse
.toLocaleString
The method returns a string representing the elements of the table.
Elements are transformed into strings with their own
toLocaleString
methods, and these strings are separated with a locale-specific string, for example, with a comma (,).Returns string
toString
The method returns a string representing the elements of the table.
For a table, the
toString()
method concatenates elements of an array and returns one string containing all elements separated by commas.Returns string
Properties
Methods