Config Class Reference

This class contains the static properties Config.appid, Config.title, Config.version & Config.tables which must be defined at the beginning of your application code, outside of the main() function call.

Config.appid

Set this (string) property for your unique applicationid. This statement must be the beginning on your javascript file, outside of the main() function call

Config.appid = "myapp";
.....
function main() {
   ....
}

Config.version

A string value for the version of your application. Each time your application is deployed after a modification (or code or datastructure), you must increment this value before redeploy.

Config.version = "54";
.....
function main() {
   ....
}

Config.title

The (string) title of your application as displayed in the application list on the devices and on the web app

Config.title = "My App";
.....
function main() {
   ....
}

Config.tables

An array of string. The key is the table name. the value is the data structure definition for the table. More on SQL tables.
Config.tables["mytable"] = "id;name;status INTEGER;price REAL;date DATE";