Sheets
Sheets with a MQL formula per cell, stored in the internal database, calculated by the server and shared with other users. Typical uses: give a scientific model to colleagues who only type the inputs, calculate a sheet from a script.
sheet savesheet listsheet getsheet calcsheet calc_defsheet inputs_savesheet inputs_getsheet sharesheet web_publishsheet web_publishsheet web_infosheet web_grantsheet web_publishedsheet web_listsheet web_getsheet web_calcsheet web_calcsheet web_inputs_savesheet web_inputs_getsheet web_exportsheet web_inputs_resetsheet web_revokesheet versionssheet restoresheet deletesheet deletePresentation and language reference
sheet save <name> <definition>
Description
Create or replace a sheet of the user (the shares are kept). The previous state becomes a version, the last 50 are kept. Returns 1
Create or replace a sheet of the user (the shares are kept). The previous state becomes a version, the last 50 are kept. Returns 1
Parameters
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
definition: The sheet, JSON: cells {"A1": {"c": content, "u": true when the cell is unlocked, "s": style, "v": rule}}, and optionally rows, cols, widths {"A": 150} and heights {"3": 60} in pixels. The style has bg, fg and bc (colors #rrggbb of the cell, the text and the borders), al (left, center, right), va (top, middle, bottom), b, i, u (true: bold, italic, underline), sz (size of the text), bd (borders: T, R, B, L), nf (how the value is shown: number, percent, currency, sci, date or text), dec (decimals), th (thousands separated), cur (currency) and df (date format); an unknown value is ignored. The rule of an input cell says what is expected: t (number, integer, text, date, time, email, list or bool), min and max (a number, a length for a text, a date), list (the values), req (true: required), label (the text of a check box), step (a number with arrows, or a slider between min and max, in the editor) and msg (the error message) - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
definition: The sheet, JSON: cells {"A1": {"c": content, "u": true when the cell is unlocked, "s": style, "v": rule}}, and optionally rows, cols, widths {"A": 150} and heights {"3": 60} in pixels. The style has bg, fg and bc (colors #rrggbb of the cell, the text and the borders), al (left, center, right), va (top, middle, bottom), b, i, u (true: bold, italic, underline), sz (size of the text), bd (borders: T, R, B, L), nf (how the value is shown: number, percent, currency, sci, date or text), dec (decimals), th (thousands separated), cur (currency) and df (date format); an unknown value is ignored. The rule of an input cell says what is expected: t (number, integer, text, date, time, email, list or bool), min and max (a number, a length for a text, a date), list (the values), req (true: required), label (the text of a check box), step (a number with arrows, or a slider between min and max, in the editor) and msg (the error message) - String - required
admin
sheet save "docs_disk" "{\"cells\": {\"A1\": {\"c\": \"Radius\"}, \"B1\": {\"c\": \"5\", \"u\": true}, \"A2\": {\"c\": \"Area\"}, \"B2\": {\"c\": \"math round (* 3.14159 (* [B1] [B1])) 2\"}, \"A3\": {\"c\": \"Mean\"}, \"B3\": {\"c\": \"stat mean [B1:B2]\"}}}"
mentdb
1
a title in bold on a blue cell, and a bordered input (fixed result: real call on a local MentDB server)
admin
sheet save "docs_disk" "{\"cells\": {\"A1\": {\"c\": \"Disk\", \"s\": {\"bg\": \"#303e56\", \"b\": true, \"al\": \"center\"}}, \"B1\": {\"c\": \"5\", \"u\": true, \"s\": {\"bg\": \"#3e603e\", \"bd\": \"TRBL\", \"dec\": 2}}}}"
mentdb
1
Used in use cases (15 recipes)
MQL beginner › Discover the sheets with the example sheet of the server
Physicist › A measured curve, its fitted model and its chart in one sheet
Metrologist › Uncertainty budget of a density in a sheet, with and without a better flask
Chemist › Share a calibration line as a sheet that the laboratory only fills in
Pharmacist & pharmacokinetics › EC50 of several compounds with one dose-response sheet
Epidemiologist › A follow-up sheet: Kaplan-Meier curves by arm and the ROC curve of a test
and 9 more in the Use cases
MQL beginner › Discover the sheets with the example sheet of the server
Physicist › A measured curve, its fitted model and its chart in one sheet
Metrologist › Uncertainty budget of a density in a sheet, with and without a better flask
Chemist › Share a calibration line as a sheet that the laboratory only fills in
Pharmacist & pharmacokinetics › EC50 of several compounds with one dose-response sheet
Epidemiologist › A follow-up sheet: Kaplan-Meier curves by arm and the ROC curve of a test
and 9 more in the Use cases
Often used with
sheet delete · who · sheet calc · string substring · sheet web_grant · sheet web_publish · json doc · sheet get
sheet delete · who · sheet calc · string substring · sheet web_grant · sheet web_publish · json doc · sheet get
sheet list
Description
The sheets the user can open: rows {owner, name, role (owner, view or run), saved}
The sheets the user can open: rows {owner, name, role (owner, view or run), saved}
admin
sheet list
mentdb
[{"owner":"admin","role":"owner","saved":"2026-11-26 20:04:44","web":false,"name":"docs_disk"}]
Used in use cases (1 recipe)
MQL beginner › Discover the sheets with the example sheet of the server
MQL beginner › Discover the sheets with the example sheet of the server
Often used with
json doc · json iobject · sheet calc · sheet delete · sheet get · sheet save · string contains · string substring
json doc · json iobject · sheet calc · sheet delete · sheet get · sheet save · string contains · string substring
sheet get <owner> <name>
Description
The definition of a sheet, with owner, name, role and saved (and shares for the owner). For a run user, the content of the locked cells is removed
The definition of a sheet, with owner, name, role and saved (and shares for the owner). For a run user, the content of the locked cells is removed
Parameters
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
admin
sheet get "admin" "docs_disk"
mentdb
{"owner":"admin","shares":{},"cells":{"A1":{"c":"Radius"},"B2":{"c":"math round (* 3.14159 (* [B1] [B1])) 2"},"A2":{"c":"Area"},"B3":{"c":"stat mean [B1:B2]"},"A3":{"c":"Mean"},"B1":{"c":"5","u":true}},"role":"owner","saved":"2026-11-26 20:04:44","name":"docs_disk"}
Used in use cases (2 recipes)
MQL beginner › Discover the sheets with the example sheet of the server
Industrial quality engineer › A quality sheet: Pareto of the defects and control chart of a measure
MQL beginner › Discover the sheets with the example sheet of the server
Industrial quality engineer › A quality sheet: Pareto of the defects and control chart of a measure
Often used with
sheet calc · sheet delete · sheet save · string substring · who · json doc · json iobject · plot control
sheet calc · sheet delete · sheet save · string substring · who · json doc · json iobject · plot control
sheet calc <owner> <name> <inputs>
Description
Calculate a sheet with the rights of its owner: JSON {cell: value} of the cells that have a value. The definition and the saved inputs are not changed, and the saved inputs are not read
Calculate a sheet with the rights of its owner: JSON {cell: value} of the cells that have a value. The definition and the saved inputs are not changed, and the saved inputs are not read
Parameters
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
inputs: The values of the unlocked cells, JSON: {"B1": 10}; {} for the default values - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
inputs: The values of the unlocked cells, JSON: {"B1": 10}; {} for the default values - String - required
admin
sheet calc "admin" "docs_disk" "{}"
mentdb
{"A1":"Radius","B2":"78.54","A2":"Area","B3":"41.77","A3":"Mean","B1":"5"}
with an input (fixed result: real call on a local MentDB server)
admin
sheet calc "admin" "docs_disk" "{\"B1\": 10}"
mentdb
{"A1":"Radius","B2":"314.16","A2":"Area","B3":"162.08","A3":"Mean","B1":"10"}
a locked cell is refused (fixed result: real call on a local MentDB server)
admin
sheet calc "admin" "docs_disk" "{\"B2\": 10}"
mentdb
ERROR: Sorry, the cell B2 is locked.
Used in use cases (13 recipes)
MQL beginner › Discover the sheets with the example sheet of the server
Physicist › A measured curve, its fitted model and its chart in one sheet
Metrologist › Uncertainty budget of a density in a sheet, with and without a better flask
Chemist › Share a calibration line as a sheet that the laboratory only fills in
Pharmacist & pharmacokinetics › EC50 of several compounds with one dose-response sheet
Epidemiologist › A follow-up sheet: Kaplan-Meier curves by arm and the ROC curve of a test
and 7 more in the Use cases
MQL beginner › Discover the sheets with the example sheet of the server
Physicist › A measured curve, its fitted model and its chart in one sheet
Metrologist › Uncertainty budget of a density in a sheet, with and without a better flask
Chemist › Share a calibration line as a sheet that the laboratory only fills in
Pharmacist & pharmacokinetics › EC50 of several compounds with one dose-response sheet
Epidemiologist › A follow-up sheet: Kaplan-Meier curves by arm and the ROC curve of a test
and 7 more in the Use cases
Often used with
sheet delete · sheet save · who · string substring · json doc · sheet get · string contains · json iarray
sheet delete · sheet save · who · string substring · json doc · sheet get · string contains · json iarray
sheet calc_def <definition> <inputs>
Description
Calculate a definition that is not saved, with the rights of the user (groups api-mql or sys)
Calculate a definition that is not saved, with the rights of the user (groups api-mql or sys)
Parameters
definition: The sheet, JSON: cells {"A1": {"c": content, "u": true when the cell is unlocked, "s": style, "v": rule}}, and optionally rows, cols, widths {"A": 150} and heights {"3": 60} in pixels. The style has bg, fg and bc (colors #rrggbb of the cell, the text and the borders), al (left, center, right), va (top, middle, bottom), b, i, u (true: bold, italic, underline), sz (size of the text), bd (borders: T, R, B, L), nf (how the value is shown: number, percent, currency, sci, date or text), dec (decimals), th (thousands separated), cur (currency) and df (date format); an unknown value is ignored. The rule of an input cell says what is expected: t (number, integer, text, date, time, email, list or bool), min and max (a number, a length for a text, a date), list (the values), req (true: required), label (the text of a check box), step (a number with arrows, or a slider between min and max, in the editor) and msg (the error message) - String - required
inputs: The values of the unlocked cells, JSON: {"B1": 10}; {} for the default values - String - required
definition: The sheet, JSON: cells {"A1": {"c": content, "u": true when the cell is unlocked, "s": style, "v": rule}}, and optionally rows, cols, widths {"A": 150} and heights {"3": 60} in pixels. The style has bg, fg and bc (colors #rrggbb of the cell, the text and the borders), al (left, center, right), va (top, middle, bottom), b, i, u (true: bold, italic, underline), sz (size of the text), bd (borders: T, R, B, L), nf (how the value is shown: number, percent, currency, sci, date or text), dec (decimals), th (thousands separated), cur (currency) and df (date format); an unknown value is ignored. The rule of an input cell says what is expected: t (number, integer, text, date, time, email, list or bool), min and max (a number, a length for a text, a date), list (the values), req (true: required), label (the text of a check box), step (a number with arrows, or a slider between min and max, in the editor) and msg (the error message) - String - required
inputs: The values of the unlocked cells, JSON: {"B1": 10}; {} for the default values - String - required
admin
sheet calc_def "{\"cells\": {\"A1\": {\"u\": true}, \"B1\": {\"c\": \"+ [A1] 99\"}}}" "{\"A1\": 1}"
mentdb
{"A1":"1","B1":"100"}
an input that is not expected: the formula is not calculated (fixed result: real call on a local MentDB server)
admin
sheet calc_def "{\"cells\": {\"A1\": {\"u\": true, \"v\": {\"t\": \"number\", \"min\": 0, \"max\": 14, \"msg\": \"a pH from 0 to 14 is expected\"}}, \"B1\": {\"c\": \"math round (math pow 10 (- 0 [A1])) 5\"}}}" "{\"A1\": 20}"
mentdb
{"A1":"#INPUT: a pH from 0 to 14 is expected","B1":"#DEP"}
a cell of another sheet: [docs_disk!B2] (calculated with its default values) (fixed result: real call on a local MentDB server)
admin
sheet calc_def "{\"cells\": {\"A1\": {\"c\": \"Area x 2\"}, \"B1\": {\"c\": \"* [docs_disk!B2] 2\"}, \"B2\": {\"c\": \"stat max [docs_disk!B1:B3]\"}}}" "{}"
mentdb
{"A1":"#ERR: unknown MQL order","B2":"78.54","B1":"157.08"}
a cycle, an unknown order and a cell that reads it (fixed result: real call on a local MentDB server)
admin
sheet calc_def "{\"cells\": {\"A1\": {\"c\": \"+ [B1] 1\"}, \"B1\": {\"c\": \"+ [A1] 1\"}, \"C1\": {\"c\": \"nosuchorder 1 2\"}, \"D1\": {\"c\": \"+ [C1] 1\"}}}" "{}"
mentdb
{"A1":"#CYCLE","D1":"#DEP","C1":"#ERR: unknown MQL order","B1":"#CYCLE"}
sheet inputs_save <owner> <name> <inputs>
Description
Save the inputs of the user for a sheet (one set per user and sheet, read by the editor when the sheet is opened). Returns 1
Save the inputs of the user for a sheet (one set per user and sheet, read by the editor when the sheet is opened). Returns 1
Parameters
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
inputs: The values of the unlocked cells, JSON: {"B1": 10}; {} for the default values - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
inputs: The values of the unlocked cells, JSON: {"B1": 10}; {} for the default values - String - required
admin
sheet inputs_save "admin" "docs_disk" "{\"B1\": 7}"
mentdb
1
Used in use cases (1 recipe)
Industrial quality engineer › Refuse a wrong input in a shared sheet: number, list, date
Industrial quality engineer › Refuse a wrong input in a shared sheet: number, list, date
sheet inputs_get <owner> <name>
Description
The inputs saved by the user for a sheet, {} when there are none
The inputs saved by the user for a sheet, {} when there are none
Parameters
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
admin
sheet inputs_get "admin" "docs_disk"
mentdb
{"B1":7}
sheet web_publish <name> <published>
Description
Publish a sheet of the user on the web (true), or remove it from the web (false: its title, cache and web users stay for the next publication). Nobody sees it before the web administrator gives it. Returns 1
Publish a sheet of the user on the web (true), or remove it from the web (false: its title, cache and web users stay for the next publication). Nobody sees it before the web administrator gives it. Returns 1
Parameters
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
published: true or false - Boolean - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
published: true or false - Boolean - required
admin
sheet web_publish "docs_disk" true
mentdb
1
sheet web_publish <name> <published> <options>
Description
Publish a sheet with options: title and description (shown on the tile of the web application), cache (seconds: the same inputs are not calculated again during this time, 0: always calculated), auto_refresh (seconds: the web page calculates again by itself, a screen on a wall; 0 or 30 to 86400). Returns 1
Publish a sheet with options: title and description (shown on the tile of the web application), cache (seconds: the same inputs are not calculated again during this time, 0: always calculated), auto_refresh (seconds: the web page calculates again by itself, a screen on a wall; 0 or 30 to 86400). Returns 1
Parameters
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
published: true - Boolean - required
options: JSON options - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
published: true - Boolean - required
options: JSON options - String - required
admin
sheet web_publish "docs_disk" true "{\"title\": \"Disk area\", \"description\": \"The area of a disk\", \"cache\": 60, \"auto_refresh\": 300}"
mentdb
1
an unknown option (fixed result: real call on a local MentDB server)
admin
sheet web_publish "docs_disk" true "{\"colour\": \"red\"}"
mentdb
ERROR: Sorry, the option 'colour' is not valid: title (1 to 200 characters), description (up to 1000), cache (seconds, 0 to 86400), auto_refresh (seconds, 0 or 30 to 86400).
Used in use cases (3 recipes)
Data scientist › Publish a dashboard on the web, with a cross filter
Excel reporting analyst › A dashboard as Excel or PDF, and by mail
Web & API developer › One dashboard, the data of each web user
Data scientist › Publish a dashboard on the web, with a cross filter
Excel reporting analyst › A dashboard as Excel or PDF, and by mail
Web & API developer › One dashboard, the data of each web user
Often used with
sheet delete · sheet save · sheet web_grant · who · sheet web_calc · is null · json parse_array · sheet calc
sheet delete · sheet save · sheet web_grant · who · sheet web_calc · is null · json parse_array · sheet calc
sheet web_info <name>
Description
The publication of a sheet of the user: published, title, description, cache, dt_publish and grants (the web users and groups that see it)
The publication of a sheet of the user: published, title, description, cache, dt_publish and grants (the web users and groups that see it)
Parameters
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
admin
sheet web_info "docs_disk"
mentdb
{"owner":"admin","grants":[],"auto_refresh":300,"cache":60,"name":"docs_disk","description":"The area of a disk","dt_publish":"2026-11-26 20:04:46","published":true,"title":"Disk area"}
sheet web_grant <owner> <name> <type> <target>
Description
Give a published sheet to a web user or a web group (group sys: the web administrator, in the admin app). Returns 1
Give a published sheet to a web user or a web group (group sys: the web administrator, in the admin app). Returns 1
Parameters
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
type: user or group - String - required
target: The login of the web user, or the id or the name of the web group - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
type: user or group - String - required
target: The login of the web user, or the id or the name of the web group - String - required
admin
sheet web_grant "admin" "docs_disk" "user" "admin"
mentdb
1
to a web group, by its name (fixed result: real call on a local MentDB server)
admin
sheet web_grant "admin" "docs_disk" "group" "Developer"
mentdb
1
an unknown web user (fixed result: real call on a local MentDB server)
admin
sheet web_grant "admin" "docs_disk" "user" "nobody_here"
mentdb
ERROR: Sorry, the web user 'nobody_here' does not exist.
Used in use cases (3 recipes)
Data scientist › Publish a dashboard on the web, with a cross filter
Excel reporting analyst › A dashboard as Excel or PDF, and by mail
Web & API developer › One dashboard, the data of each web user
Data scientist › Publish a dashboard on the web, with a cross filter
Excel reporting analyst › A dashboard as Excel or PDF, and by mail
Web & API developer › One dashboard, the data of each web user
Often used with
sheet delete · sheet save · sheet web_publish · who · sheet web_calc · is null · json parse_array · sheet calc
sheet delete · sheet save · sheet web_publish · who · sheet web_calc · is null · json parse_array · sheet calc
sheet web_published
Description
All the published sheets with their web users and groups (group sys)
All the published sheets with their web users and groups (group sys)
admin
sheet web_published
mentdb
[{"owner":"admin","grants":[{"label":"Developer","type":"group","target":"1"},{"label":"admin","type":"user","target":"admin"}],"cache":60,"name":"docs_disk","description":"The area of a disk","dt_publish":"2026-11-26 20:04:46","published":true,"title":"Disk area"}]
sheet web_list <app_id> <login>
Description
The sheets a web user sees in a web application: [{owner, name, title, description, saved}]. The web user must be active and open the application (app_user, or a web group 1 or 2)
The sheets a web user sees in a web application: [{owner, name, title, description, saved}]. The web user must be active and open the application (app_user, or a web group 1 or 2)
Parameters
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
admin
sheet web_list "admin" "admin"
mentdb
[{"owner":"admin","saved":"2026-11-26 20:04:44","name":"docs_disk","description":"The area of a disk","title":"Disk area"}]
Often used with
is null · json parse_array · sheet delete · sheet save · sheet web_calc · sheet web_get · sheet web_grant · sheet web_publish
is null · json parse_array · sheet delete · sheet save · sheet web_calc · sheet web_get · sheet web_grant · sheet web_publish
sheet web_get <app_id> <login> <owner> <name>
Description
The definition of a sheet to show to a web user: the locked cells without their MQL, with title and description
The definition of a sheet to show to a web user: the locked cells without their MQL, with title and description
Parameters
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
admin
sheet web_get "admin" "admin" "admin" "docs_disk"
mentdb
{"owner":"admin","auto_refresh":300,"cells":{"A1":{},"B2":{},"A2":{},"B3":{},"A3":{},"B1":{"c":"5","u":true}},"role":"web","saved":"2026-11-26 20:04:44","name":"docs_disk","description":"The area of a disk","title":"Disk area"}
Often used with
is null · json parse_array · sheet delete · sheet save · sheet web_calc · sheet web_grant · sheet web_list · sheet web_publish
is null · json parse_array · sheet delete · sheet save · sheet web_calc · sheet web_grant · sheet web_list · sheet web_publish
sheet web_calc <app_id> <login> <owner> <name> <inputs>
Description
Calculate a sheet for a web user, with the rights of its owner: {values, calculated, cached}. During the cache time of the sheet, the same inputs give the result already calculated
Calculate a sheet for a web user, with the rights of its owner: {values, calculated, cached}. During the cache time of the sheet, the same inputs give the result already calculated
Parameters
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
inputs: The values of the unlocked cells, JSON: {"B1": 10}; {} for the default values - String - required
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
inputs: The values of the unlocked cells, JSON: {"B1": 10}; {} for the default values - String - required
admin
sheet web_calc "admin" "admin" "admin" "docs_disk" "{\"B1\": 10}"
mentdb
{"values":{"A1":"Radius","B2":"314.16","A2":"Area","B3":"162.08","A3":"Mean","B1":"10"},"cached":true,"calculated":"2026-11-26 20:04:47"}
a locked cell is refused (fixed result: real call on a local MentDB server)
admin
sheet web_calc "admin" "admin" "admin" "docs_disk" "{\"B2\": 10}"
mentdb
ERROR: Sorry, the cell B2 is locked.
sheet web_calc <app_id> <login> <owner> <name> <inputs> <options>
Description
Calculate a sheet for a web user with options: refresh (true: calculated again even if it is in the cache, at most once every 10 s per web user and sheet)
Calculate a sheet for a web user with options: refresh (true: calculated again even if it is in the cache, at most once every 10 s per web user and sheet)
Parameters
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
inputs: The values of the unlocked cells, JSON: {"B1": 10}; {} for the default values - String - required
options: JSON options - String - required
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
inputs: The values of the unlocked cells, JSON: {"B1": 10}; {} for the default values - String - required
options: JSON options - String - required
admin
sheet web_calc "admin" "admin" "admin" "docs_disk" "{\"B1\": 10}" "{\"refresh\": true}"
mentdb
{"values":{"A1":"Radius","B2":"314.16","A2":"Area","B3":"162.08","A3":"Mean","B1":"10"},"cached":false,"calculated":"2026-11-26 20:04:47"}
Used in use cases (2 recipes)
Data scientist › Publish a dashboard on the web, with a cross filter
Web & API developer › One dashboard, the data of each web user
Data scientist › Publish a dashboard on the web, with a cross filter
Web & API developer › One dashboard, the data of each web user
Often used with
sheet delete · sheet save · sheet web_grant · sheet web_publish · who · is null · json parse_array · sheet calc
sheet delete · sheet save · sheet web_grant · sheet web_publish · who · is null · json parse_array · sheet calc
sheet web_inputs_save <app_id> <login> <owner> <name> <inputs>
Description
Save the inputs of a web user for a sheet, kept from one visit to the next (checked by the rules of the cells). Returns 1
Save the inputs of a web user for a sheet, kept from one visit to the next (checked by the rules of the cells). Returns 1
Parameters
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
inputs: The values of the unlocked cells, JSON: {"B1": 10}; {} for the default values - String - required
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
inputs: The values of the unlocked cells, JSON: {"B1": 10}; {} for the default values - String - required
admin
sheet web_inputs_save "admin" "admin" "admin" "docs_disk" "{\"B1\": 7}"
mentdb
1
sheet web_inputs_get <app_id> <login> <owner> <name>
Description
The inputs saved by a web user for a sheet, {} when there are none
The inputs saved by a web user for a sheet, {} when there are none
Parameters
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
admin
sheet web_inputs_get "admin" "admin" "admin" "docs_disk"
mentdb
{"B1":7}
sheet web_export <app_id> <login> <owner> <name> <inputs> <format>
Description
The dashboard of a web user as a file, base64: xlsx (formats, merges, input rules, charts as pictures) or pdf. Calculated by the server with the given inputs (the values never come from the browser); the charts are drawn by the server as in the editor. The BI application downloads it (buttons Excel and PDF), the script bi.mail.dashboard sends it by mail
The dashboard of a web user as a file, base64: xlsx (formats, merges, input rules, charts as pictures) or pdf. Calculated by the server with the given inputs (the values never come from the browser); the charts are drawn by the server as in the editor. The BI application downloads it (buttons Excel and PDF), the script bi.mail.dashboard sends it by mail
Parameters
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
inputs: The values of the unlocked cells, JSON: {"B1": 10}; {} for the default values - String - required
format: xlsx or pdf - String - required
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
inputs: The values of the unlocked cells, JSON: {"B1": 10}; {} for the default values - String - required
format: xlsx or pdf - String - required
admin
sheet web_export "admin" "admin" "admin" "docs_disk" "{}" "docx"
mentdb
ERROR: Sorry, the format must be xlsx or pdf.
Often used with
sheet delete · sheet save · sheet web_grant · sheet web_publish · string starts_with · try · who
sheet delete · sheet save · sheet web_grant · sheet web_publish · string starts_with · try · who
sheet web_inputs_reset <app_id> <login> <owner> <name>
Description
Delete the inputs of a web user for a sheet: back to the values of the owner. Returns 1
Delete the inputs of a web user for a sheet: back to the values of the owner. Returns 1
Parameters
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
app_id: The id of the web application (table apps), ex: bi - String - required
login: The login of the web user (table users), taken from the session of the application, never from the browser - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
admin
sheet web_inputs_reset "admin" "admin" "admin" "docs_disk"
mentdb
1
sheet web_revoke <owner> <name> <type> <target>
Description
Remove a sheet from a web user or a web group (group sys). Returns 1
Remove a sheet from a web user or a web group (group sys). Returns 1
Parameters
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
type: user or group - String - required
target: The login, or the id or the name of the web group - String - required
owner: The login of the owner of the sheet - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
type: user or group - String - required
target: The login, or the id or the name of the web group - String - required
admin
sheet web_revoke "admin" "docs_disk" "group" "Developer"
mentdb
1
sheet versions <name>
Description
The versions of a sheet of the user, newest first: JSON array of
The versions of a sheet of the user, newest first: JSON array of
Parameters
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
admin
sheet versions "docs_disk"
mentdb
["20261126-200448-762","20261126-200444-327","20261126-200444-193","20261126-200444-060"]
sheet restore <name> <version>
Description
Put back a version of a sheet of the user, also after a sheet delete. The current state becomes a version, the shares do not change. Returns 1
Put back a version of a sheet of the user, also after a sheet delete. The current state becomes a version, the shares do not change. Returns 1
Parameters
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
version: A version (sheet versions) - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
version: A version (sheet versions) - String - required
admin
sheet restore "docs_disk" "20260101-000000-000"
mentdb
ERROR: Sorry, the version does not exist.
sheet delete <name>
Description
Delete a sheet of the user, with its shares and all the saved inputs. Its versions are kept (sheet restore). Returns 1
Delete a sheet of the user, with its shares and all the saved inputs. Its versions are kept (sheet restore). Returns 1
Parameters
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
admin
sheet delete "docs_disk"
mentdb
1
sheet delete <name> <options>
Description
Delete a sheet with options: versions (true: the versions are deleted too, nothing can be restored). Returns 1
Delete a sheet with options: versions (true: the versions are deleted too, nothing can be restored). Returns 1
Parameters
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
options: JSON options - String - required
name: The sheet name: letters, digits, space, _ . - (80 characters at most) - String - required
options: JSON options - String - required
admin
sheet delete "docs_disk" "{\"versions\": true}"
mentdb
1
Used in use cases (15 recipes)
MQL beginner › Discover the sheets with the example sheet of the server
Physicist › A measured curve, its fitted model and its chart in one sheet
Metrologist › Uncertainty budget of a density in a sheet, with and without a better flask
Chemist › Share a calibration line as a sheet that the laboratory only fills in
Pharmacist & pharmacokinetics › EC50 of several compounds with one dose-response sheet
Epidemiologist › A follow-up sheet: Kaplan-Meier curves by arm and the ROC curve of a test
and 9 more in the Use cases
MQL beginner › Discover the sheets with the example sheet of the server
Physicist › A measured curve, its fitted model and its chart in one sheet
Metrologist › Uncertainty budget of a density in a sheet, with and without a better flask
Chemist › Share a calibration line as a sheet that the laboratory only fills in
Pharmacist & pharmacokinetics › EC50 of several compounds with one dose-response sheet
Epidemiologist › A follow-up sheet: Kaplan-Meier curves by arm and the ROC curve of a test
and 9 more in the Use cases
Often used with
sheet save · who · sheet calc · string substring · sheet web_grant · sheet web_publish · json doc · sheet get
sheet save · who · sheet calc · string substring · sheet web_grant · sheet web_publish · json doc · sheet get
What can be written in a locked cell, besides the MQL
•[B3]: the value of the cell B3 of this sheet. [$B$3], [$B3], [B$3]: the same cell, the $ keeps the column and/or the row when the formula is copied.
•[B1:B5]: a range, a JSON array (one dimension for a row or a column, else an array of rows; null for an empty cell).
•[disk!B3]: the cell B3 of your sheet disk. [alice/disk!B3]: the cell B3 of the sheet disk of alice. [disk!B1:B5], [alice/disk!B1:B5]: a range of another sheet. [disk!$B$3]: a cell of another sheet, kept when the formula is copied.
•A reference is written without quotes, as a MQL variable: "[B3]" between quotes stays a text, the MQL is never rewritten.
•Another sheet is calculated with its default values, once by calculation; the owner of this sheet must be able to open it. A sheet name with a space can not be written in a reference (the cell says it): use sheet calc in the MQL.
•When a formula is copied, a reference that would go out of the sheet becomes [#REF!].
What can be typed in an input cell
•A simple value, never executed: a number, a text, a date, a time, a value of the list, 1 or 0 for a check box.
•With an expected input, the editor also reads: 3,5 and 1 234,5 as 3.5 and 1234.5; 12 % as 0.12; 25/11/2026 as 2026-11-25; 9h30 or 9:30 as 09:30; oui, yes, vrai, x as 1 and non, no, faux as 0; eau as Eau for a list that has Eau.
What a cell can show besides a value
•#ERR: message: the MQL of the cell failed.
•#DEP: a cell that it reads is in error.
•#CYCLE: the cell reads itself, directly or through other cells.
•#INPUT: message: an input that is not what is expected.
•Plot: the MQL is a plot command; the symbol at the right of the cell opens the chart.
Build a sheet (edit mode, owner)
•SHT, New: give a name. Type MQL in a cell, or in the bar above the grid (Enter keeps it, Shift+Enter or Alt+Enter goes to a new line). Save sheet keeps a version of the previous state (Versions to restore one).
•Input cell: unlocks the selected cells. In edit mode an orange triangle marks the MQL, a green one the input cells.
•Drag the small square at the bottom right of the selection to copy the formulas into the next cells: [A1] moves, [$A$1] stays, a reference out of the sheet becomes [#REF!]. Ctrl+D and Ctrl+R copy down and right. Copy, cut and paste work with Excel (tabulations); a copy inside the sheet moves the references too.
•Undo (Ctrl+Z or Cmd+Z) comes back on the last changes; Ctrl+S saves.
•Sizes: drag the line of a column letter or under a row number (double click: back to the default size); a click on a letter or a number selects the column or the row. The owner saves the sizes with the sheet.
Merge, dashboards
•Merge makes one cell of the selected cells: the first one is kept and drawn over the others (a title, a chart); Unmerge separates them. A covered cell can not be selected: a click or the arrows go to the first cell. Merges are saved with the sheet and exported (Excel, HTML, PDF).
•A chart in a merged cell: plot bars [A2:A6] [B2:C6], plot pie [A2:A6] [B2:B6], plot box [C2:C30], plot errorbars [A2:A9] [B2:B9] [C2:C9], plot heatmap [B2:D4], plot km [A2:A40] [B2:B40] [C2:C40], plot roc [D2:D40] [E2:E40]... It is drawn again when the values change; Excel, HTML and PDF receive its picture.
Formats (edit mode)
•Cell color, Text color, B, I, U, Size, the six alignments, Borders (all, outline, a side, their color), 0.00 (decimals shown) and Clear format. The colors are those chosen by the owner, none is automatic.
•Format... sets how the value is shown (number, percent, currency, scientific, date, text; decimals, thousands, currency, date format) and, for the input cells, what is expected: number, integer, text, date, time, email, list of values or check box, with minimum, maximum, required, the text of a check box, the step of a number and the error message.
Use a sheet
•Type in the input cells (green triangle in edit mode). A value that is not expected is refused, the cell stays open in red and the message is at the bottom; 3,5 is read 3.5, 12 % is 0.12, 25/11/2026 is 2026-11-25, 9h30 is 09:30.
•Helps at the right of an input cell: a calendar (in English) for a date, the hours and minutes for a time, the list for a list of values, a click on a check box. A number is typed; with a step given by the owner it has arrows, or a slider between its minimum and maximum. Alt+Down opens the help of the selected cell.
•Save inputs keeps your values of the input cells, for you only (the sheet does not change). The owner switches with Use mode and Edit mode.
On the web (BI)
•1. Install the BI application once, it is not installed by default: execute its installer bi_1.0.0.mql in a MQL tab of the editor, user admin, the same way as Auto-Report. It runs with the MentDB user web-bi, the only one allowed to run sheet web_* for the web users.
•2. The web users: admin application, Users (table users), and the access to the application bi (or a web group 1 or 2).
•3. Web (owner, in the editor): publish the sheet, with a title, a description, a cache time and an automatic refresh. It shows who sees it.
•4. The web administrator gives it: admin application, menu Users and rights, Web dashboards (sheets), Edit: web users and web groups.
•5. The web user opens the BI application: one tile per dashboard; the sheet as in the editor (sizes, merges, colors, formats, charts); he types in the input cells (checked by their rules), everything is calculated again and his inputs are kept for the next visit. Refresh, Reset my inputs, Excel, PDF.
•In the MQL of a cell: [web_login], [web_app] and [web_groups] are the web user who runs the sheet (empty in the editor), ex: sql parse with a where on the client of the web user.
•Cross filter: a chart of categories with the option on_click (plot bars, plot area, plot pie, plot pareto, plot radar ... {"on_click": "B1"}): in the web page, a click on a bar or a slice writes its label in the input cell B1 (clicked again: the filter is removed) and the dashboard is calculated again; the chosen bar stays in color. A double click enlarges the chart.
•Excel and PDF buttons of the web page: the server calculates the dashboard with the inputs shown and makes the file, with its charts. By mail: execute "bi.mail.dashboard.exe" (app, login, owner, name, format, SMTP connection) in a job, every day or every week: the web user receives his dashboard calculated with his saved inputs.
Plot, export
•Plot draws columns: the column of x (or the row number), one or several columns of y (B, D or B:D), the rows, line or points; the first row gives the names. It uses the values on the screen.
•Export: Excel with the formats (colors, borders, sizes, number formats, dates, lists and limits of the input cells), PDF, HTML, CSV, CSV for a French Excel (semicolon, decimal comma), TSV, JSON rows or objects, XML, Markdown, LaTeX, and the definition with the MQL (for those who can read the formulas, to Import it). The MQL itself is never in the other formats, only the values.
