-
Notifications
You must be signed in to change notification settings - Fork 3
/
collection.js
136 lines (135 loc) · 2.67 KB
/
collection.js
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*
Evolutility Model for Model : Object > Nested Collection
https://github.com/evoluteur/evolutility-models
(c) 2022 Olivier Giulieri
*/
module.exports = {
id: "collection",
world: "designer",
title: "Collection",
icon: "/designer/collection.png",
schema: "evolutility",
name: "collection",
namePlural: "collections",
titleField: "label",
table: "evol_object_collec",
position: 40,
fields: [
{
id: "label",
column: "label",
label: "Label",
type: "text",
maxLength: 200,
inMany: true,
width: 62,
//"required": true,
inSearch: true,
},
{
id: "cid",
column: "cid",
label: "Collection Id",
type: "text",
maxLength: 50,
inMany: true,
width: 20,
required: true,
inSearch: true,
},
{
id: "position",
column: "position",
label: "Position",
type: "integer",
inMany: true,
width: 18,
},
{
id: "table",
column: "table",
label: "DB Table name",
type: "text",
width: 32,
maxLength: 63,
required: true,
inMany: true,
inSearch: true,
},
{
id: "column",
column: "dbcolumn",
label: "DB Column",
type: "text",
help: "Column to filter by.",
width: 30,
maxLength: 63,
required: true,
inMany: true,
inSearch: true,
},
{
id: "object",
label: "Object",
type: "lov",
object: "object",
required: true,
inMany: true,
noCharts: true,
width: 38,
column: "object_id",
lovTable: "evol_object",
lovColumn: "title",
deleteTrigger: true,
},
{
id: "fields",
label: "Fields",
type: "json",
column: "fields",
required: true,
width: 100,
height: 4,
},
{
id: "help",
column: "help",
label: "help",
type: "textmultiline",
maxLength: 500,
width: 100,
height: 4,
help: "Help tooltip for the Group",
},
{
id: "header",
column: "header",
label: "Header",
type: "textmultiline",
maxLength: 500,
width: 100,
height: 4,
help: "Introduction text displayed at the top of the group.",
},
{
id: "footer",
column: "footer",
label: "Footer",
type: "textmultiline",
maxLength: 500,
width: 100,
height: 4,
help: "Footer text displayed below the group.",
},
{
id: "description",
label: "Description",
type: "textmultiline",
column: "description",
maxLength: 250,
width: 100,
height: 3,
inSearch: true,
},
],
};