Skip to content

open

Description

Ouverture de dossier.

La méthode attend deux paramètres:

modelName
Le nom du modèle de dossier à charger
docId
L'identifiant à charger

Schéma

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "description": "This json schema gives prototype of action open",
    "title": "Action open",
    "type": "object",
    "properties": {
        "action": {
            "const": "open",
            "description": "Name of the action",
            "type": "string"
        },
        "params": {
            "description": "Parameters of current action",
            "type": "object",
            "properties": {
                "context": {
                    "description": "Context of group onto tuple must be added. Should reference a `modelName[docId]` context.",
                    "type": "string"
                },
                "modelName": {
                    "description": "Name of model",
                    "type": "string"
                },
                "docId": {
                    "description": "Document id",
                    "type": [
                        "integer",
                        "string"
                    ]
                },
                "reload": {
                    "description": "Flag true/false that indicates if an open document should be reloaded from database",
                    "type": "string"
                },
                "enum": [
                    "true",
                    "false"
                ]
            },
            "oneOf": [
                {
                    "required": [
                        "context"
                    ]
                },
                {
                    "required": [
                        "modelName",
                        "docId"
                    ]
                }
            ]
        }
    },
    "required": [
        "action",
        "params"
    ],
    "$id": "https://ewt.epilogic.ch/action.open.schema.json"
}