How to: Fast Track - imona/tutorial GitHub Wiki
Fast track is an option to create an app within seconds. By typing predefined commands into the fast-track editor, entities and fields will be created and associated between each other, and a multi-tenant, web and mobile based cloud application with basic CRUD functionality will be up and running.
Here is an example usage of creating CRM app:
/* Creates an entity with name option (name is required)
* All the fields declared after this entity will be associated with this entity
*/
entity --name Customer
/* Creates a field with name option with type text (name is required, default type is text) */
field --name name
field --name surname
/* Creates a field with defined name and type option */
field --name birthdate --type Date
/* Creates a masked field */
field --name phone --masked true --mask (###)#######
/* Creates a field with type another entity, which can be declared later */
field --name account --type Account
/* Creates a field where value is from a constant group, i.e. creates a select field
* listitems are not yet created but will be created in a couple of lines later
*/
field --name city --listtype cities
list --name cities --selectiontype SINGLE_SELECTION
/* Creates list items with name and key option (default type is Text, --type can be used to change) */
/* These listitems will be added to cities list (the order between list & listitems are important */
listitem --name istanbul --key 34
listitem --name izmir --key 35
listitem --name ankara --key 06
/* Creates a field type of List, where each element in list is another entity.
* Creates an n-m relationship between entities
*/
field --name accounts --type EntityList --listtype Account
/* Creates another entity */
entity --name Account
/* Reuses a field that is created already, ( --reuse <field_name> ) */
field --reuse nameentity
name: (required) name of the entity
inherits: (optional) name of the parent entity
caption: (optional) caption of the entity
focus: (optional) name of the entity yo be switched to
field
name: (required) name of the field
caption: (optional) caption of the field
type: (optional) type of the field, default value is Text.
{ Text | Integer | Double | Date | RichText | TextBox | Email | Rate | Percentage | Currency | List | Long | Departmant | Document | Image | Linkedin }
masked: (optional) true if the field is masked, default value is false.
mask: (optional) mask of the field, default value is empty string
listtype: (optional) used when the type of field is List. Entity name will be the list type.
reuse: (optional) Name of the field. Used when the field is already declared. Enables to use a previously declared field in multiple entities.
list
name: (required) name of the list
caption: (optional) caption of the list
reuse: (optional) name of the list that is previously created
listitems: (optional) constant values (i.e. listitems) to construct the list. The value should be comma seperated listitem names. (without space in between)
selectiontype: (optional) selection type of the list. Default value is SINGLE_SELECTION.
{ SINGLE_SELECTION | SINGLE_SELECTION_WITH_GROUPING | MULTIPLE_SELECTION | MULTIPLE_SELECTION_WITH_GROUPING }
listitem
name: (required) name of the list item.
caption: (optional) caption of the list item.
key: (optional) key of the list item. Default value is name of the list item.
type: (optional) type of the list item. Default value is Text.
Note: Whitespaces can be used within in quotes for example;
entity --name CustomerNum --caption "Musteri Numarasi"