Variables
WILCO automatically sets some variables as the context of the call of any dashboard rule
scope.anims
A dictionnary with all the _anims
. The key is the name of the anim, and the value is the anim itself.
scope.samples
even if the samples are accessible one by one, you may want to have an object with each one. The scope.samples
object is for you. Each property is the sample name, and value is the value. You will have all mixed together: constants, samples, and general object (see below)
{TAV_LIMIT: 70, COT_MAX: 220, CABIN_TEMP_HOT: 28, OXY_LO: 1150, ENG_OIL_LO: 17, …}
URL_PARAMS
an object containing all the url parameters. for example http://localhost:9000/#/APUs/events/807885?timeUnits=weeks®=FW-RVL
will provide the object
Some predefined fields are allowed acording to the page where the dashboard is inserted:
What page
Field name
Description
Fleet page
db
the id
of the dashboard
Fleet page
cols
the count of dashboard copies per row
Fleet page
refDate
A date that is the latest date for the requests. Makes it possible to have fleet status in the past. Please note that even if refDate
is set, the status of the FWOT is still the current one, not at refDate
If not set, the date is now
Fleet page
count
A number that works in conjunction with unit
if not provided, default is 100.
Fleet page
unit
EVT (use this for a given event)
FWOTS
FWOT
if you want to select an aircraft (for example the current event one) you can use underscore to avoid the loop
Each sample is described below
DATE (event scope only)
contains the current date in unix timestamp e.g 1381295944000. This is useful to display the current date in the SVG and to compare the current date with the sample date and check if the sample is right on the current date or is from a near timestamp.
you can compare it with DATE == TAT.date or using momentjs.
Last updated
Was this helpful?