u
This commit is contained in:
@@ -7,9 +7,10 @@ Execute a virtual filesystem applet
|
||||
Runs a `.applet.js` file from the virtual filesystem for the authenticated user's selected company
|
||||
and returns the exported function's result.
|
||||
|
||||
The applet file must begin with two metadata lines:
|
||||
The applet file must begin with three metadata lines:
|
||||
`// @applet-input-schema {JSON Schema}` followed by
|
||||
`// @applet-output-schema {name:type;name:type}`. The input schema describes the GUI form posted as
|
||||
`// @applet-output-schema {name:type;name:type}` and
|
||||
`// @applet-description "description"`. The input schema describes the GUI form posted as
|
||||
`input`. The output line declares the RESULT COLUMNS as typed CSV — `name:type` pairs separated by `;`
|
||||
(e.g. `id:integer;name:string;active:boolean`); allowed types are `string`, `integer`, `number`,
|
||||
`boolean` and `date`. The applet exports a function that receives the posted `input` as `applet_input`
|
||||
@@ -59,6 +60,7 @@ Applet executed successfully
|
||||
```json
|
||||
{
|
||||
"ok": true,
|
||||
"description": "…",
|
||||
"result": "id;name\n1;Kaffee",
|
||||
"columns": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user