...
Plugins are called with the variable this
set to the object that caused the plugin to be called. The variable argv
holds the variables that are usually passed to plugins, see Making a Microbizz app.
...
The following keywords are reserved and may not be used for variable names or function names:
def
, for
, in
, while
, return
, if
, else
, elseif
, break
, continue
, float
, int
, array
, string
, object
, const
, dict
, var
, global
, class
, new,
include, import
.
Comments
Lines starting with //, or #, are comments and are ignored; comments may be indented by any multiple of 2 SPACE.
...
When testing/debugging a script where are to two ways to output information. You can either use the echo()
function, which only works from the script testing page; or you can use the function Microbizz.Log()
which will write stuff to the System log; the log may then be viewed in the System module.
Microbizz logs various script related things in the System log.
Sandbox
You may run test the plugins/scripts by running them in a simple "sandbox", which prevent certain functions for doing anything; there is a Run in sandbox checkbox in the script editor for this.
...
F.ex. there may be complicated pricing calculations that depend on the date and postcode of a task. This might be developed by Ventu and could then become available as a new script object providing access to the calcuationscalculations. In the unrealistic example below, a new Tax
object provides two new functions:
...