/
ex-groupcontainer.template
149 lines (145 loc) · 8.57 KB
/
ex-groupcontainer.template
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
137
138
139
140
141
142
143
144
145
146
147
148
149
<?xml version="1.0" encoding="UTF-8" ?>
<application id="ex-groupcontainer">
<!-- Note important: the min-width of the container should be always: max field size + 480px (help size) -->
<container type="groupContainer" id="myform" style="min-width: 880px;" mode="4" authmodes="1234" varkey="key" key="1" varorder="order" varmode="mode">
<zone type="field">
<element type="textfieldElement" id="fullname" size="400" minlength="3" maxlength="50" minwords="2" maxwords="10" format="^[a-zA-Z0-9\s]{1,}$" visible="1234" info="34" disabled="" readonly="" notnull="123" helpmode="12">
Your full name:
<defaultvalue></defaultvalue>
<helpdescription>Help: This field must have a min length of 3 chars, max length of 50 chars, min 2 words, max 10 words, and can be only a-z, A-Z, 0-9 and spaces</helpdescription>
<statusnotnull>The value must not be null</statusnotnull>
<statusbadformat>The value has a bad format</statusbadformat>
<statustooshort>The value is too short (3 chars min)</statustooshort>
<statustoolong>The value is too long (50 chars max)</statustoolong>
<statustoofewwords>The value has too few words (2 words min)</statustoofewwords>
<statustoomanywords>The value has to much words (10 words max)</statustoomanywords>
<statuscheck>The field has an error by user check validity (fill with your error)</statuscheck>
</element>
</zone>
<zone type="field">
<element type="textfieldElement" id="address1" size="400" minlength="3" maxlength="150" minwords="2" maxwords="20" format="^[a-zA-Z0-9\s,\.#]{1,}$" visible="1234" info="34" disabled="" readonly="" notnull="123" helpmode="12">
Your address (line 1):
<defaultvalue></defaultvalue>
<helpdescription>Help: This field must have a min length of 3 chars, max length of 150 chars, min 2 words, max 20 words, and can be only a-z, A-Z, 0-9, coma, dot, # and spaces</helpdescription>
<statusnotnull>The value must not be null</statusnotnull>
<statusbadformat>The value has a bad format</statusbadformat>
<statustooshort>The value is too short (3 chars min)</statustooshort>
<statustoolong>The value is too long (150 chars max)</statustoolong>
<statustoofewwords>The value has too few words (2 words min)</statustoofewwords>
<statustoomanywords>The value has to much words (20 words max)</statustoomanywords>
<statuscheck>The field has an error by user check validity (fill with your error)</statuscheck>
</element>
</zone>
<zone type="field">
<element type="textfieldElement" id="address2" size="400" minlength="3" maxlength="150" minwords="2" maxwords="20" format="^[a-zA-Z0-9\s,\.#]{1,}$" visible="1234" info="34" disabled="" readonly="" notnull="123" helpmode="12">
Your address (line 2):
<defaultvalue></defaultvalue>
<helpdescription>Help: This field must have a min length of 3 chars, max length of 150 chars, min 2 words, max 20 words, and can be only a-z, A-Z, 0-9, coma, dot, # and spaces</helpdescription>
<statusnotnull>The value must not be null</statusnotnull>
<statusbadformat>The value has a bad format</statusbadformat>
<statustooshort>The value is too short (3 chars min)</statustooshort>
<statustoolong>The value is too long (150 chars max)</statustoolong>
<statustoofewwords>The value has too few words (2 words min)</statustoofewwords>
<statustoomanywords>The value has to much words (20 words max)</statustoomanywords>
<statuscheck>The field has an error by user check validity (fill with your error)</statuscheck>
</element>
</zone>
<zone type="info">
<element type="htmlElement">
SUPER TITULO
</element>
</zone>
<zone type="field">
<element type="colorfieldElement" id="color" size="200" visible="1234" info="34" disabled="" readonly="" notnull="123" helpmode="12">
Choose a color:
<defaultvalue></defaultvalue>
<helpdescription>Help: This field permits to write or choose a color</helpdescription>
<statusnotnull>The value must not be null</statusnotnull>
<statusbadformat>The value has a bad format</statusbadformat>
</element>
</zone>
<zone type="field">
<element type="datefieldElement" id="date" size="400" visible="1234" info="34" disabled="" readonly="" notnull="123" helpmode="12">
Choose a date:
<defaultvalue></defaultvalue>
<helpdescription>Help: This field permits to select a date</helpdescription>
<statusnotnull>The value must not be null</statusnotnull>
<statusbadformat>The value has a bad format</statusbadformat>
</element>
</zone>
<zone type="field">
<element type="mmcfieldElement" id="mmc" size="400" visible="1234" info="34" disabled="" readonly="" notnull="123" helpmode="12">
Choose a multimedia file:
<defaultvalue></defaultvalue>
<helpdescription>Help: This field permits to upload a multimedia file</helpdescription>
<statusnotnull>The value must not be null</statusnotnull>
<statusbadformat>The value has a bad format</statusbadformat>
</element>
</zone>
<zone type="field">
<element type="textareafieldElement" id="comments" areawidth="400" areaheight="150" minlength="" maxlength="4000" minwords="" maxwords="" visible="1234" info="34" disabled="" readonly="" notnull="" helpmode="12">
Some comments:
<defaultvalue></defaultvalue>
<helpdescription>Help: Any comments, anotate them here. This field accept any character, up to 4000 characters.</helpdescription>
<statustoolong>The value is too long (4000 chars max)</statustoolong>
<statuscheck>The field has an error by user check validity (fill with your error)</statuscheck>
</element>
</zone>
<zone type="field">
<element type="hiddenfieldElement" id="hiddenparam">default value</element>
</zone>
<zone type="field">
<element type="lovfieldElement" id="select1" size="400" visible="1234" info="34" disabled="" readonly="" notnull="1" helpmode="12" >
Color:
<defaultvalue>2</defaultvalue>
<helpdescription>Help: Please select one of the three colors.</helpdescription>
<options>
<option key="1">Red</option>
<option key="2">Green</option>
<option key="3">Blue</option>
</options>
</element>
</zone>
<zone type="control">
<element type="buttonElement" action="first" visible="4">First record</element>
<element type="buttonElement" action="previous" visible="4">Previous record</element>
<element type="buttonElement" action="next" visible="4">Next record</element>
<element type="buttonElement" action="last" visible="4">Last record</element>
<element type="buttonElement" action="insert" visible="4">New record</element>
<element type="buttonElement" action="update" visible="4">Update this record</element>
<element type="buttonElement" action="delete" visible="4">Delete this record</element>
<element type="buttonElement" action="submit" visible="123">Send to server
<titleinsert>Send information</titleinsert>
<titleupdate>Accept changes</titleupdate>
<titledelete>Confirm the deletion</titledelete>
</element>
<element type="buttonElement" action="reset" visible="123">Undo changes</element>
<element type="buttonElement" action="view" visible="123">Cancel and back to the list</element>
</zone>
<alertmessage>Error, the data have not been sent to the server. Please check the fields in red to correct them.</alertmessage>
<servermessage>Error, the server has responded: </servermessage>
<titleinsert>Insert a new record</titleinsert>
<titleupdate>Update the record</titleupdate>
<titledelete>Delete the record</titledelete>
<titleview>View the record</titleview>
<insertok>The record has been inserted successfully</insertok>
<updateok>The record has been updated successfully</updateok>
<deleteok>The record has been deleted successfully</deleteok>
<event type="failure">
<code><![CDATA[
function()
{
}
]]></code>
</event>
<event type="success">
<code><![CDATA[
function(p1, p2, p3)
{
if (this.mode == 3)
return confirm('Do you want to fetch another record since this one is deleted? (note the record is NOT deleted from the server, only simulated in this example)');
}
]]></code>
</event>
</container>
</application>