Reference
Last updated 11/09/2024
Five Object
The
Properties
field
The
five.field.<fieldID>
form
The
five.form.<actionID>.<fieldID>
headers
The
five.headers
parameters
The
five.parameters
stack
The
five.stack.<tableId>.<primaryKey>
variable
The
five.variable.<variableID>
Functions
actionID()
The
actionID() : string;
addAttachment()
The
addAttachment(attachment: string, name: string) : FiveError;
addFilter()
The
addFilter(keyName: string, key: string) : void;
authentication()
The
authentication() : AuthenticationInfo
clearFilter()
The
clearFilter(keyName: string) : void;
clearVariable()
The
clearVariable(name: string) : any;
clientAddress()
The
clientAddress() : string;
commit()
The
commit(tx: Transaction) : FiveError;
createError()
The
createError(currentResult: FiveError | message: string, [message: string]) : FiveError;
currentUserKey()
The
currentUserKey() : string;
currentUserRecordKey()
The currentUserRecordKey() is a function that returns the user record associated to the current user.
currentUserRecordKey() : string;
date()
The
date(): string;
dateTime()
The
dateTime(): string;
dateTimeLocalToUTC()
The
dateTimeLocalToUTC(localDateTime: string) : string;
dateTimeUTCToLocal()
The
dateTimeUTCToLocal(timestamp: string) : string;
displayCustomForm()
The
displayCustomForm(actionID: string) : void;
emailAddress()
The
emailAddress(email: string, [name: string]) : EmailAddress;
executeAction()
The
executeAction(actionID: string, [context: any, [at: Date]]) : FiveError;
executeAction(actionID: string, context: any, [onResult: (results: FiveError) => void]) : FiveError;
executeConnection()
The
executeConnection(dataSourceID: string, method: string, options: ConnectionContext) : ConnectionResult
executeFunction()
The
executeFunction(
functionID: string,
variables: Map<string, any>,
file: File,
actionKey: string, //Deprecated, not used
functionKey: string,
[ onResultsCallBack: (results: any) => void) : void ])
executeQuery()
The
executeQuery([transaction,] query[, limit[, ...parameters]]) : QueryResult;
getDatabaseConnectionByID()
The
getDatabaseConnectionByID(databaseID: string) : DatabaseConnection;
getMetadata()
The
getMetadata([ formID: string ], fieldID: string, metadataID: string) : any;
getOption()
The getOption() is a function that returns a value of an option configured in the Options field against the instance of the running application.
getOption(key: string) : string;
getRoleKey()
The
getRoleKey(name: string) : string;
getSelectedMenuID()
The getSelectedMenuID() is a function that returns the current selected menu ID.
getSelectedMenuID() : string;
getStackField()
The getStackField() is a function that returns the stack entry associated to the table ID and field ID.
getStackField(tableID: string, fieldID: string) : DrillDownItem;
getVariable()
The
getVariable(name: string) : any;
httpClient()
The httpClient()
is a function on the Five
that creates and returns a new HTTPClient
object.
httpClient() : HTTPClient;
isCreate()
The
isCreate() : boolean;
isEdit()
The
isEdit() : boolean;
isMobile()
The
isMobile() : boolean;
log()
The
log(log: any) : void;
maxField()
The maxField() is a function that returns the maximum value from the array of records associated to the field ID.
maxField(records:Array<BasicRecord>, fieldID: string) : number;
minField()
The minField() is a function that returns the minimum value from the array of records associated to the field ID.
minField(records:Array<BasicRecord>, fieldID: string) : number;
now()
The
now(): string;
open()
The open() is a function that opens the supplied uri.
open(uri: string) : void;
previousAction()
The
previousAction(revertSelect: boolean [, num: number = 1]) : void;
refreshTable()
The
refreshTable(tableID: string) : void;
rollback()
The rollback() is a function that rollbacks a database transaction.
rollback(tx: Transaction) : FiveError;
selectAction()
The
selectAction(actionId: string [, recordKey: string]) : void;
selectFile()
The selectFile() is a function that opens a file opened dialog for a user to select a file.
selectFile(context: any, acceptedExtensions: Array<string>) : FiveError;
selectMenu()
The selectMenu() is a function that selects a menu and opens the record specified by the record keys.
selectMenu(menuID: string, ...recordKeys: Array<string>) : void;
sender()
The sender() is a function that returns the sender associated with the event callback.
sender() : any;
sendNotification()
The
sendNotification(userKey: string, notification: string) : void;
setVariable()
The
setVariable(name: string, value: any) : void;
showAgreement()
The
showAgreement(terms: string, onUserResult: (userResult: any) => void) : void
showError()
The showError() is a function that shows an error dialog with the supplied message.
showError(message: string) : void;
showMessage()
The
showMessage(message: string) : void;
startTransaction()
The
startTransaction(db: DatabaseConnection) : Transaction;
success()
The
success([currentResult: FiveError | message: string, [message: string]]) : FiveError;
sumField()
The sumField() is a function that returns the sum of all the values from the array of records associated to the field ID.
sumField(records:Array<BasicRecord>, fieldName: string) : number;
time()
The
time(): string;
toDataURL()
The toDataURL()
is a function on the Five
object that encodes the contents supplied in the data parameter as a data URI.
toDataURL(mimeType: string, data: string): string;
uuid()
The uuid() is a function that returns a unique identifier.
uuid() : string;