createField method



Creates a data field in the scheduler.

Syntax

boolean = Scheduler.createField(sName, sTitle, sFieldType)

Applies to

Scheduler object.

Parameters

sName
String. The name of the new data field. Must be unique in the Scheduler.
sTitle
String. The default column title for this data type.
sFieldType
String. The kind of data that this field will hold. Must be one of: "timeSpan", "date", "string", or "number".

Return value

boolean. The boolean value is true if this method successfully creates a data field; otherwise, it is false.

Usage

This method creates a data field in the Scheduler. The data field has the name that you specify for sName and the data type that you specify for sFieldType.

See also

setFieldData method
getFieldData method
getFieldTitle method
Field property