Professional Documents
Culture Documents
to develop
Web applications!
CodeCharge Studio 3
Component
Reference
2
Components............................................................................................................................................14
Referencing Objects ...........................................................................................................................14
Button Control Reference ...................................................................................................................17
Calendar Reference............................................................................................................................18
Calendar Navigator Reference ...........................................................................................................21
Checkbox Control Reference .............................................................................................................22
CheckBox List Control Reference ......................................................................................................24
Connection Reference ........................................................................................................................27
Date Picker Component Reference....................................................................................................30
Directory Form Reference ..................................................................................................................31
Editable Grid Form Reference............................................................................................................35
File Upload Component Reference ....................................................................................................41
Grid Form Reference ..........................................................................................................................44
Hidden Control Reference ..................................................................................................................48
Image Control Reference....................................................................................................................50
Image Link Reference.........................................................................................................................51
Include Page Reference .....................................................................................................................53
Label Reference .................................................................................................................................54
Link Reference....................................................................................................................................56
List Box ...............................................................................................................................................58
Navigator Reference...........................................................................................................................61
Page Reference..................................................................................................................................63
Panel Reference .................................................................................................................................66
Path Reference...................................................................................................................................67
Project Reference ...............................................................................................................................70
Radio Button Reference .....................................................................................................................71
Record Form Reference .....................................................................................................................74
Report Reference ...............................................................................................................................80
Report Label Reference......................................................................................................................84
Report Section Reference ..................................................................................................................86
Sorter Reference ................................................................................................................................87
Text Area Reference...........................................................................................................................88
Text Box Reference ............................................................................................................................91
Properties................................................................................................................................................93
A - C....................................................................................................................................................93
.NET Debug Mode Property ...........................................................................................................93
Access Denied Page Property .......................................................................................................93
Aliases Property .............................................................................................................................94
Allow Insert Property ......................................................................................................................94
Allow Update Property....................................................................................................................94
Allow Delete Property.....................................................................................................................95
Allowed File Masks Property ..........................................................................................................95
Assemblies Property ......................................................................................................................95
Bound Column Property .................................................................................................................95
Boolean Format Property ...............................................................................................................96
Caption Property ............................................................................................................................96
Catalog Property ............................................................................................................................96
Category ID Field Property.............................................................................................................97
Charset Property ............................................................................................................................97
Checked Value Property ................................................................................................................97
Class Path Property .......................................................................................................................98
Code Language Property ...............................................................................................................98
Code Page Property.......................................................................................................................99
ColdFusion Server Property ...........................................................................................................99
Connect Cached Property ..............................................................................................................99
Connection Property.....................................................................................................................100
Connection String Property ..........................................................................................................100
Connection Type Property............................................................................................................100
Content Property ..........................................................................................................................101
Context Path Property ..................................................................................................................101
Control Source Property...............................................................................................................102
Control Source Property (Report) ................................................................................................102
3
Control Source Type Property......................................................................................................102
Control Source Property (Report) ................................................................................................103
Convert URL To Property.............................................................................................................103
Control Property ...........................................................................................................................104
Control Properties ........................................................................................................................104
Create IIS Application Property ....................................................................................................107
Custom Delete Property ...............................................................................................................107
Custom Delete Type Property ......................................................................................................107
Custom Insert Property ................................................................................................................108
Custom Insert Type Property .......................................................................................................108
Custom Update Property..............................................................................................................109
Custom Update Type Property.....................................................................................................109
D - I ...................................................................................................................................................109
Data Source Property...................................................................................................................109
Data Source Type ........................................................................................................................110
Data Type Property ......................................................................................................................110
Database URL Property ...............................................................................................................111
Date DB Format Property.............................................................................................................111
Date Field Property ......................................................................................................................111
Date Format Property...................................................................................................................112
DBFormat Property ......................................................................................................................112
Default Boolean Format Property.................................................................................................112
Default Button Property ................................................................................................................113
Default Date Format Property ......................................................................................................113
Default Value Property .................................................................................................................113
Default View Mode Property.........................................................................................................114
Delete Control Property................................................................................................................114
"Deploy webapp as" Property.......................................................................................................114
Design Database Type Property ..................................................................................................115
Disallowed File Masks Property ...................................................................................................115
Email Component Property ..........................................................................................................115
EmptyRows Property....................................................................................................................116
Enable Print Mode Property .........................................................................................................116
Enable Validation Property...........................................................................................................116
Encoding Extension Property .......................................................................................................117
Error Control Property ..................................................................................................................117
File Folder Property......................................................................................................................117
File Size Limit Property ................................................................................................................117
File Upload Component Property.................................................................................................118
Format Property ...........................................................................................................................118
Number Format ........................................................................................................................118
Using Date Format concept .....................................................................................................119
Date/Time Format ....................................................................................................................119
Date Formats Comparison.......................................................................................................121
Function Property .........................................................................................................................123
Groups Property ...........................................................................................................................124
Height Property ............................................................................................................................124
Hide Duplicates Property..............................................................................................................124
Home Page Property....................................................................................................................125
Href Source Property....................................................................................................................125
Href Type Property .......................................................................................................................125
Includable Property ......................................................................................................................126
#include type Property..................................................................................................................126
ID Field Property ..........................................................................................................................126
Improved HTTP Caching Property ...............................................................................................126
Input Validation Property ..............................................................................................................127
J - P...................................................................................................................................................127
JDBC Driver Property...................................................................................................................127
Level of Logging Property ............................................................................................................127
Library Prefix Property..................................................................................................................128
Lines Per Print Page Property......................................................................................................128
Lines Per Web Page Property......................................................................................................128
Locale Identifier Property .............................................................................................................129
4
Login Property ..............................................................................................................................129
LongReadLen Property ................................................................................................................129
LongTruncOk Property .................................................................................................................130
Manager login Property ................................................................................................................130
Manager password Property ........................................................................................................130
Manager URL Property ................................................................................................................131
Max number of connections to DB Property ................................................................................131
Name ............................................................................................................................................131
Name Property .............................................................................................................................132
No of Columns Property ...............................................................................................................132
No of Years Property....................................................................................................................132
Number of Columns Property.......................................................................................................132
Number of Subcategories Property..............................................................................................133
Operation Property .......................................................................................................................133
Output File Format Property.........................................................................................................134
Page Property ..............................................................................................................................134
Page Links Property .....................................................................................................................134
Page Size Limit Property..............................................................................................................135
Parent field Property.....................................................................................................................135
Password Property .......................................................................................................................135
Path to logfile Property .................................................................................................................136
Percent Of Property......................................................................................................................136
Perl Path Property ........................................................................................................................136
PHP Database Library Property...................................................................................................137
PHP File Extension Property........................................................................................................137
PHP Database Library Property...................................................................................................137
PrintError Property .......................................................................................................................138
Preserve Parameters Property.....................................................................................................138
Publishing Property ......................................................................................................................138
R - S..................................................................................................................................................139
RaiseError Property......................................................................................................................139
Records Per Page Property .........................................................................................................139
References Property ....................................................................................................................140
RegExp API Property ...................................................................................................................140
Remove Parameters Property......................................................................................................140
Required Property ........................................................................................................................141
Reset At Property .........................................................................................................................141
Restricted Property.......................................................................................................................141
Return Page Property...................................................................................................................142
Reverse Order Property ...............................................................................................................142
Runtime libraries Property............................................................................................................142
Secured Server URL Property......................................................................................................142
Security Type Property.................................................................................................................143
Server API Property .....................................................................................................................143
Server Connection String Property ..............................................................................................143
Server Connection Type Property................................................................................................144
Server DataBase/Connection Type Property ...............................................................................144
Server Database Name Property .................................................................................................144
Server Database Type Property...................................................................................................145
Server Host Property....................................................................................................................145
Server Login Property ..................................................................................................................145
Server Password Property ...........................................................................................................146
Server Path Property (Java).........................................................................................................146
Server Path Property (Perl) ..........................................................................................................146
Server Persistent Connection Property........................................................................................147
Server Port Property.....................................................................................................................147
Server Same As Design Property ................................................................................................147
Sessions Files Clean Rate Property ............................................................................................147
Session Files Path Property .........................................................................................................148
Session Timeout Property ............................................................................................................148
Schema Property..........................................................................................................................148
Show nearby days Property .........................................................................................................149
Site Language Property................................................................................................................149
5
Sort Order Property ......................................................................................................................149
SSL Access Only Property ...........................................................................................................150
Style Property ...............................................................................................................................150
Subcategory ID Field Property .....................................................................................................150
Synonyms Property ......................................................................................................................150
System Tables Property ...............................................................................................................151
System Views Property ................................................................................................................151
T - Z ..................................................................................................................................................151
Target Schema Property ..............................................................................................................151
Target Server Property.................................................................................................................152
Target Version Property ...............................................................................................................152
Temporary Folder Property ..........................................................................................................152
Text Column Property ..................................................................................................................153
Text Is Empty Property.................................................................................................................153
Time DB Format Property ............................................................................................................153
Time Field Property ......................................................................................................................153
Timeout of DB Connection Retrieval Property .............................................................................154
Type Property ...............................................................................................................................154
Type Property ...............................................................................................................................155
Unchecked Value Property...........................................................................................................155
Unique Property ...........................................................................................................................155
Use Data Source Extension Property ..........................................................................................156
Use LIMIT/TOP Property..............................................................................................................156
Validation Rule Property...............................................................................................................157
Validation Text Property ...............................................................................................................157
Validate Request Property ...........................................................................................................158
Views Property .............................................................................................................................158
Visible Property ............................................................................................................................158
Events ...................................................................................................................................................159
Client Side Events ............................................................................................................................159
On Change event .........................................................................................................................159
On Click event ..............................................................................................................................159
On Key Press ...............................................................................................................................160
On Load event..............................................................................................................................161
On Unload event ..........................................................................................................................162
On Submit event...........................................................................................................................162
Server Side Events ...........................................................................................................................163
After Execute Delete Event ..........................................................................................................163
After Execute Insert Event............................................................................................................163
After Execute Select Event...........................................................................................................164
After Execute Update Event .........................................................................................................164
After Delete Event ........................................................................................................................164
After Delete File Event .................................................................................................................165
After Initialize Event......................................................................................................................165
After Insert Event..........................................................................................................................166
After Process File Event...............................................................................................................166
After Submit Event .......................................................................................................................166
After Update Event .......................................................................................................................167
Before Build Delete Event ............................................................................................................167
Before Build Insert Event..............................................................................................................167
Before Build Select Event.............................................................................................................167
Before Build Update Event ...........................................................................................................168
Before Delete Event .....................................................................................................................168
Before Delete File Event ..............................................................................................................168
Before Execute Delete Event .......................................................................................................169
Before Execute Insert Event.........................................................................................................169
Before Execute Select Event........................................................................................................169
Before Execute Update Event......................................................................................................170
Before Insert Event.......................................................................................................................170
Before Output Event.....................................................................................................................170
Before Process File Event............................................................................................................171
Before Select Event......................................................................................................................171
Before Show Event.......................................................................................................................171
6
Before Show Category Event .......................................................................................................172
Before Show Row Event ..............................................................................................................172
Before Show Subcategory Event .................................................................................................173
Before Submit Event ....................................................................................................................173
Before Unload Event ....................................................................................................................173
Before Update Event ....................................................................................................................173
On Calculate Event ......................................................................................................................174
On Click Event..............................................................................................................................174
On Initialized Event ......................................................................................................................175
On Initialize View Event................................................................................................................175
On Validate Event ........................................................................................................................175
Actions ..................................................................................................................................................175
Client Side Actions............................................................................................................................176
Custom Code ...............................................................................................................................176
Confirmation Message .................................................................................................................176
Regular Expression Validation .....................................................................................................176
Set Focus .....................................................................................................................................176
Submit Form .................................................................................................................................177
Validate Entry ...............................................................................................................................177
Validate Form ...............................................................................................................................177
Validate Maximum Length............................................................................................................177
Validate Maximum Value..............................................................................................................178
Validate Minimum Length.............................................................................................................178
Validate Minimum Value...............................................................................................................178
Validate Required Value...............................................................................................................179
Server Side Actions ..........................................................................................................................179
Change Number Of Columns .......................................................................................................179
Custom Code ...............................................................................................................................179
Declare Variable...........................................................................................................................179
DLookup .......................................................................................................................................180
Get Original Filename ..................................................................................................................180
Hide-Show Component ................................................................................................................180
Login.............................................................................................................................................180
Logout...........................................................................................................................................181
Print Text ......................................................................................................................................181
Regular Expression Validation .....................................................................................................181
Retrieve Active Page....................................................................................................................182
Retrieve Number Of Pages ..........................................................................................................182
Retrieve Number Of Records .......................................................................................................182
Retrieve Value For Control...........................................................................................................182
Retrieve Value For Variable .........................................................................................................182
Save Control Value ......................................................................................................................182
Save Variable Value.....................................................................................................................183
Send Email ...................................................................................................................................183
Set Active Page............................................................................................................................183
Set Number Of New Records.......................................................................................................184
Set Page Size...............................................................................................................................184
Set Tag .........................................................................................................................................184
Validate Email ..............................................................................................................................184
Validate Maximum Length............................................................................................................184
Validate Maximum Value..............................................................................................................185
Validate Minimum Length.............................................................................................................185
Validate Minimum Value...............................................................................................................185
Validate Phone .............................................................................................................................185
Validate Required Value...............................................................................................................185
Validate ZIP ..................................................................................................................................186
Programming Reference.......................................................................................................................187
ASP...................................................................................................................................................187
Functions ......................................................................................................................................187
CCAddParam Function (ASP) .................................................................................................187
CCDLookUp Function (ASP) ...................................................................................................187
CCFormatDate Function (ASP) ...............................................................................................189
CCGetFromGet Function (ASP) ..............................................................................................190
7
CCGetFromPost Function (ASP) .............................................................................................190
CCGetGroupID Function (ASP) ...............................................................................................191
CCGetParam Function (ASP) ..................................................................................................191
CCGetUserID Function (ASP) .................................................................................................192
CCGetValue Function (ASP) ...................................................................................................193
CCOpenRS Function (ASP).....................................................................................................194
CCParseDate Function (ASP) .................................................................................................194
CCProcessError Function (ASP) .............................................................................................195
CCRemoveParam Function (ASP) ..........................................................................................195
IIf Function (ASP).....................................................................................................................196
Methods........................................................................................................................................196
AddComponents Run-Time Method (ASP)..............................................................................196
Close Method (ASP) ................................................................................................................197
Execute Method (ASP) ............................................................................................................197
GetEvents Method (ASP).........................................................................................................198
GetOriginFileName Method (ASP)...........................................................................................199
Open Method (ASP).................................................................................................................200
SetEvent Method (ASP)...........................................................................................................200
SetVar Methods (ASP).............................................................................................................201
ToSQL Method (ASP) ..............................................................................................................201
Run-Time Properties ....................................................................................................................202
AllowedFileMasks Run-Time Property (ASP) ..........................................................................202
CalendarStyles Run-Time Property (ASP) ..............................................................................203
Components Run-Time Property (ASP) ..................................................................................203
Connection Run-Time Property (ASP).....................................................................................204
ConnectionString Run-Time Property (ASP) ...........................................................................205
CurrentDate Run-Time Property (ASP) ...................................................................................205
CurrentProcessingDate Run-Time Property (ASP) .................................................................206
CurrentStyle Run-Time Property (ASP)...................................................................................206
DataSource Run-Time Property (ASP)....................................................................................207
DataSource.CountSQL Run-Time Property (ASP) ..................................................................208
DataSource.Order Run-Time Property (ASP)..........................................................................208
DataSource.SQL Run-Time Property (ASP)............................................................................209
DataSource.Where Run-Time Property (ASP) ........................................................................210
DeleteAllowed Run-Time Property (ASP)................................................................................211
DisallowedFileMasks Run-Time Property (ASP) .....................................................................211
EditMode Run-Time Property (ASP)........................................................................................212
EmptyRows Run-Time Property (ASP)....................................................................................213
EmptyText Run-Time Property (ASP)......................................................................................214
ErrorMessages Run-Time Property (ASP) ..............................................................................214
Errors Run-Time Property (ASP) .............................................................................................215
Events Run-Time Property (ASP) ............................................................................................216
FileFolder Run-Time Property (ASP) .......................................................................................217
FileSize Run-Time Property (ASP) ..........................................................................................217
FileSizeLimit Run-Time Property (ASP) ..................................................................................218
Format Run-Time Property (ASP)............................................................................................219
FormSubmitted Run-Time Property (ASP) ..............................................................................219
Height Run-Time Property (ASP).............................................................................................220
InsertAllowed Run-Time Property (ASP) .................................................................................220
IsFormSubmitted Run-Time Property (ASP) ...........................................................................221
IsPercent Run-Time Property (ASP)........................................................................................222
IsUploaded Run-Time Property (ASP).....................................................................................222
Link Run-Time Property (ASP) ................................................................................................223
NextProcessingDate Run-Time Property (ASP) ......................................................................224
NumberOfColumns Run-Time Property (ASP) ........................................................................225
NumberOfSubCategories Run-Time Property (ASP) ..............................................................225
Password Run-Time Property (ASP) .......................................................................................226
PageNumber Run-Time Property (ASP)..................................................................................226
PageSize Run-Time Property (ASP) .......................................................................................227
PressedButton Run-Time Property (ASP) ...............................................................................227
PrevProcessingDate Run-Time Property (ASP) ......................................................................228
ReadAllowed Run-Time Property (ASP)..................................................................................228
Recordset Run-Time Property (ASP) ......................................................................................229
8
Recordset.RecordCount Run-Time Property (ASP) ................................................................230
RowNumber Run-Time Property (ASP)...................................................................................231
State Run-Time Property (ASP)...............................................................................................231
TemporaryFolder Run-Time Property (ASP) ...........................................................................232
TotalFunction Run-Time Property (ASP) .................................................................................233
UpdateAllowed Run-Time Property (ASP)...............................................................................233
User Run-Time Property (ASP) ...............................................................................................234
Value Run-Time Property (ASP)..............................................................................................235
ViewMode Run-Time Property (ASP) ......................................................................................236
Visible Run-Time Property (ASP) ............................................................................................236
Variables.......................................................................................................................................237
DB<connectionname> Variable (ASP) ....................................................................................237
FileName Variable (ASP).........................................................................................................238
HTMLTemplate Variable (ASP) ...............................................................................................239
PathToCurrentPage Variable (ASP) ........................................................................................240
PathToRoot Variable (ASP) .....................................................................................................240
Redirect Variable (ASP)...........................................................................................................241
ScriptPath Variable (ASP)........................................................................................................241
TemplateFileName Variable (ASP)..........................................................................................242
Tpl Variable (ASP) ...................................................................................................................242
PHP...................................................................................................................................................244
Functions ......................................................................................................................................244
CCAddParam Function (PHP) .................................................................................................244
CCDLookUp Function (PHP) ...................................................................................................244
CCFormatDate Function (PHP) ...............................................................................................245
CCGetCookie Function (PHP) .................................................................................................246
CCGetFromGet Function (PHP) ..............................................................................................247
CCGetFromPost Function (PHP).............................................................................................247
CCGetGroupID Function (PHP)...............................................................................................248
CCGetParam Function (PHP)..................................................................................................248
CCGetQueryString Function (PHP) .........................................................................................249
CCGetSession Function (PHP)................................................................................................249
CCGetUserID Function (PHP) .................................................................................................249
CCGetUserLogin Function (PHP) ............................................................................................250
CCLoginUser Function (PHP)..................................................................................................250
CCLogoutUser Function (PHP)................................................................................................251
CCParseDate Function (PHP) .................................................................................................251
CCRemoveParam Function (PHP) ..........................................................................................252
CCSetCookie Function (PHP)..................................................................................................252
CCSetSession Function (PHP) ................................................................................................253
Methods........................................................................................................................................253
connect Method (PHP).............................................................................................................254
f Method (PHP) ........................................................................................................................254
GetFileName Method (PHP) ....................................................................................................255
GetFileSize Method (PHP).......................................................................................................255
GetLink Method (PHP).............................................................................................................255
GetValue Method (PHP) ..........................................................................................................256
next_record Method (PHP) ......................................................................................................256
num_rows Method (PHP).........................................................................................................256
query Method (PHP) ................................................................................................................257
SetLink Method (PHP) .............................................................................................................257
SetValue Method (PHP)...........................................................................................................258
ToSQL Method (PHP)..............................................................................................................258
Run-Time Properties ....................................................................................................................259
AllowedFileMasks Run-Time Property (PHP)..........................................................................259
CalendarStyles Run-Time Property (PHP) ..............................................................................260
ComponentName Run-Time Property (PHP) ..........................................................................260
Components Run-Time Property (PHP) ..................................................................................261
ComponentType Run-Time Property (PHP) ............................................................................261
CurrentDate Run-Time Property (PHP) ...................................................................................261
CurrentProcessingDate Run-Time Property (PHP) .................................................................262
CurrentStyle Run-Time Property (PHP)...................................................................................263
DeleteAllowed Run-Time Property (PHP)................................................................................263
9
DisallowedFileMasks Run-Time Property (PHP) .....................................................................264
ds Run-Time Property (PHP) ...................................................................................................265
DataSource->CountSQL Run-Time Property (PHP) ...............................................................266
DataSource->Order Run-Time Property (PHP) .......................................................................266
DataSource->RecordsCount Run-Time Property (PHP) .........................................................267
DataSource->SQL Run-Time Property (PHP) .........................................................................268
DataSource->Where Run-Time Property (PHP)......................................................................269
EditMode Run-Time Property (PHP)........................................................................................269
EmptyRows Run-Time Property (PHP) ...................................................................................270
EmptyText Run-Time Property (PHP) .....................................................................................271
Events Run-Time Property (PHP)............................................................................................271
Errors Run-Time Property (PHP) .............................................................................................272
FileFolder Run-Time Property (PHP).......................................................................................273
FileSizeLimit Run-Time Property (PHP) ..................................................................................273
FirstWeekDay Run-Time Property (PHP) ................................................................................274
Format Run-Time Property (PHP) ...........................................................................................274
FormSubmitted Run-Time Property (PHP) ..............................................................................275
Height Run-Time Property (PHP) ............................................................................................275
InsertAllowed Run-Time Property (PHP) .................................................................................276
IsPercent Run-Time Property (PHP)........................................................................................277
NextProcessingDate Run-Time Property (PHP)......................................................................277
NumberOfColumns Run-Time Property (PHP)........................................................................278
NumberOfSubcategories Run-Time Property (PHP) ...............................................................278
Parent Run-Time Property (PHP) ............................................................................................279
PressedButton Run-Time Property (PHP) ...............................................................................279
PrevProcessingDate Run-Time Property (PHP)......................................................................280
ReadAllowed Run-Time Property (PHP) .................................................................................280
State Run-Time Property (PHP) ..............................................................................................281
TemporaryFolder Run-Time Property (PHP) ...........................................................................281
TotalFunction Run-Time Property (PHP).................................................................................282
Update Allowed Run-Time Property (PHP) .............................................................................283
ViewMode Run-Time Property (PHP)......................................................................................283
Visible Run-Time Property (PHP) ............................................................................................284
Variables.......................................................................................................................................285
DB<connectionname> Variable (PHP) ....................................................................................285
FileName Variable (PHP).........................................................................................................286
PathToRoot Variable (PHP).....................................................................................................286
Redirect Variable (PHP)...........................................................................................................287
RelativePath Constant (PHP) ..................................................................................................287
TemplateFileName Variable (PHP)..........................................................................................288
Tpl Variable (PHP) ...................................................................................................................288
Perl....................................................................................................................................................290
Fuctions ........................................................................................................................................290
CCAddParam Function (Perl) ..................................................................................................290
CCDLookUp Function (Perl) ....................................................................................................290
CCFormatDate Function (Perl) ................................................................................................291
CCGetCookie Function (Perl) ..................................................................................................292
CCGetFromGet Function (Perl) ...............................................................................................292
CCGetFromPost Function (Perl)..............................................................................................293
CCGetGroupID Function (Perl)................................................................................................293
CCGetParam Function (Perl)...................................................................................................294
CCGetQueryString Function (Perl) ..........................................................................................294
CCGetSession Function (Perl).................................................................................................295
CCGetUserID Function (Perl) ..................................................................................................295
CCGetUserLogin Function (Perl) .............................................................................................296
CCParseDate Function (Perl) ..................................................................................................296
CCRemoveParam Function (Perl) ...........................................................................................297
CCSetCookie Function (Perl)...................................................................................................297
CCSetSession Function (Perl) .................................................................................................298
ColdFusion........................................................................................................................................299
Variables.......................................................................................................................................299
<control>Item Run-Time Variable (ColdFusion) ......................................................................299
<control>Items Run-Time Variable (ColdFusion) ....................................................................299
10
<control name>Rows Run-Time Variable (ColdFusion) ..........................................................300
arr_<control name> Run-Time Variable (ColdFusion).............................................................300
blnDeleteAllowed<form> Run-Time Variable (ColdFusion).....................................................301
blnEditMode<form> Run-Time Variable (ColdFusion).............................................................301
blnFormSubmitted<control name> Run-Time Property (ColdFusion) .....................................302
blnInsertAllowed<form> Run-Time Variable (ColdFusion) ......................................................302
blnReadAllowed<form> Run-Time Variable (ColdFusion).......................................................303
blnUpdateAllowed<form> Run-Time Variable (ColdFusion)....................................................303
CalendarEvents Run-Time Variable (ColdFusion)...................................................................304
CalendarStyles Run-Time Variable (ColdFusion)....................................................................304
CurrentDate Run-Time Variable (ColdFusion).........................................................................305
CurrentProcessingDate Run-Time Variable (ColdFusion).......................................................306
CurrentStyle Run-Time Variable (ColdFusion) ........................................................................306
DB_<connection name>_DS Run-Time Variable (ColdFusion) ..............................................306
DB_<connection name>_USER_PASSWORD; Run-Time Variable (ColdFusion) .................307
DB_<connection name>_DB_TYPE; Run-Time Variable (ColdFusion) ..................................308
DB_<connection name>_USER_NAME Run-Time Variable (ColdFusion) .............................308
fld<control name> Run-Time Variable (ColdFusion) ...............................................................309
fld<control>Link Run-Time Variable (ColdFusion)...................................................................309
hide<control> Run-Time Variable (ColdFusion) ......................................................................310
intEmptyRows Run-Time Variable (ColdFusion) .....................................................................310
intPage Run-Time Variable (ColdFusion) ................................................................................311
intPageSize Run-Time Variable (ColdFusion) .........................................................................311
intShownRecords Run-Time Variable (ColdFusion) ................................................................312
NextProcessingDate Run-Time Variable (ColdFusion) ...........................................................312
NumberOfColumns Run-Time Variable (ColdFusion) .............................................................312
NumberOfSubCategories Run-Time Variable (ColdFusion)....................................................313
par<control name>.FileFolder Run-Time Variable (ColdFusion).............................................313
par<control>.TemporaryFolder Run-Time Variable (ColdFusion) ...........................................314
PathToCurrentPage Run-Time Variable (ColdFusion) ............................................................314
PathToRoot Run-Time Variable (ColdFusion) .........................................................................315
PrevProcessingDate Run-Time Variable (ColdFusion) ...........................................................315
query<control> Run-Time Variable (ColdFusion) ....................................................................316
FileName Run-Time Variable (ColdFusion).............................................................................316
strErr<form> Run-Time Variable (ColdFusion) ........................................................................317
strOperation Run-Time Variable (ColdFusion) ........................................................................318
strOrder Run-Time Variable (ColdFusion) ...............................................................................318
strOrder<control> Run-Time Variable (ColdFusion) ................................................................319
strPressedButton Run-Time Variable (ColdFusion).................................................................319
strRedirect Run-Time Variable (ColdFusion)...........................................................................320
strSQL Run-Time Variable (ColdFusion) .................................................................................320
strSQL<control> Run-Time Variable (ColdFusion) ..................................................................321
strSQL Run-Time Variable (ColdFusion) .................................................................................321
strTemplateFileName Run-Time Variable (ColdFusion)..........................................................322
strWhere Run-Time Variable (ColdFusion)..............................................................................322
strWhere<control> Run-Time Variable (ColdFusion)...............................................................323
ViewMode Run-Time Variable (ColdFusion) ...........................................................................323
Java ..................................................................................................................................................325
Methods........................................................................................................................................325
A - G.........................................................................................................................................325
H - Z .........................................................................................................................................363
.NET..................................................................................................................................................389
Common Classes .........................................................................................................................389
BooleanParameter Class (.NET) .............................................................................................389
DateParameter Class (.NET) ...................................................................................................390
FieldBase Class (.NET) ...........................................................................................................390
FloatParameter Class (.NET)...................................................................................................391
IntegerParameter Class (.NET) ...............................................................................................392
public class ItemCollection:NameObjectCollectionBase, ICloneable (.NET) ..........................392
public class LinkParameterCollection:NameObjectCollectionBase (.NET) .............................393
MemoParameter Class (.NET).................................................................................................393
TextParameter Class (.NET)....................................................................................................394
Methods........................................................................................................................................395
11
CreateFromHttpRequest Method (.NET) .................................................................................395
DataBind Method (.NET)..........................................................................................................395
DeleteFile Method (.NET) ........................................................................................................396
DeleteItem Method (.NET) .......................................................................................................396
InsertItem Method (.NET) ........................................................................................................397
FillItem Method (.NET).............................................................................................................397
GetResultSet Method (.NET) ...................................................................................................397
GetResultSet Method (.NET) ...................................................................................................398
Update Method (.NET).............................................................................................................398
UpdateItem Method (.NET)......................................................................................................399
SaveFile Method (.NET) ..........................................................................................................399
Validate Method (.NET) ...........................................................................................................399
ValidateFile Method (.NET)......................................................................................................400
Run-Time Properties ....................................................................................................................400
AllowedFileMasks Run-Time Property (.NET) .........................................................................400
BoolFormat Run-Time Property (.NET) ...................................................................................401
ConnectionCommands Run-Time Property (.NET) .................................................................401
Connection Run-Time Property (.NET)....................................................................................402
ContentType Run-Time Property (.NET) .................................................................................403
CurrentDate Run-Time Property (.NET) ..................................................................................403
CurrentDate Run-Time Property (.NET) ..................................................................................404
DataSource Run-Time Property (.NET)...................................................................................405
DataType Run-Time Property (.NET) ......................................................................................405
DateFormat Run-Time Property (.NET)...................................................................................406
Date Run-Time Property (.NET) ..............................................................................................406
Date Run-Time Property (.NET) ..............................................................................................407
DateLeftDelim Run-Time Property (.NET) ...............................................................................407
DateRightDelim Run-Time Property (.NET).............................................................................408
Day Run-Time Property (.NET)................................................................................................409
Day Run-Time Property (.NET)................................................................................................409
DisallowedFileMasks Run-Time Property (.NET) ....................................................................410
EmptyText Run-Time Property (.NET).....................................................................................410
errors Run-Time Property (.NET).............................................................................................411
Field Run-Time Property (.NET) ..............................................................................................412
FileFolder Run-Time Property (.NET) ......................................................................................412
FileSizeLimit Run-Time Property (.NET) .................................................................................413
Format Run-Time Property (.NET)...........................................................................................413
Function Run-Time Property (.NET) ........................................................................................414
Groups Run-Time Property (.NET) ..........................................................................................415
Height Run-Time Property (.NET)............................................................................................415
IsDeleted Run-Time Property (.NET).......................................................................................416
IsEmptyItem Run-Time Property (.NET)..................................................................................416
IsNew Run-Time Property (.NET) ............................................................................................417
IsUpdated Run-Time Property (.NET) .....................................................................................418
MaxPage Run-Time Property (.NET).......................................................................................418
Mode Run-Time Property (.NET) .............................................................................................419
Month Run-Time Property (.NET) ............................................................................................420
MonthsInRow Run-Time Property (.NET)................................................................................420
Name Run-Time Property (.NET) ............................................................................................421
NumberOfColumns Run-Time Property (.NET) .......................................................................421
NumberOfSubCategories Run-Time Property (.NET) .............................................................422
Order Run-Time Property (.NET).............................................................................................422
PageNumber Run-Time Property (.NET).................................................................................423
PagerSize Run-Time Property (.NET) .....................................................................................424
PageSize Run-Time Property (.NET) ......................................................................................424
PageSizeLimit Run-Time Property (.NET)...............................................................................425
PageNumber Run-Time Property (.NET).................................................................................425
PercentOf Run-Time Property (.NET)......................................................................................426
PreviewPageNumber Run-Time Property (.NET)....................................................................427
Quarter Run-Time Property (.NET)..........................................................................................427
RecordPerPage Run-Time Property (.NET) ............................................................................428
Required Run-Time Property (.NET) .......................................................................................428
ResetAt Run-Time Property (.NET) .........................................................................................429
12
RowNumber Run-Time Property (.NET)..................................................................................429
ShowOtherMonthsDays Run-Time Property (.NET)................................................................430
Source Run-Time Property (.NET)...........................................................................................431
SourceType Run-Time Property (.NET) ..................................................................................432
State Run-Time Property (.NET)..............................................................................................432
Style Run-Time Property (.NET) ..............................................................................................433
TemporaryFolder Run-Time Property (.NET) ..........................................................................434
Text Run-Time Property (.NET) ...............................................................................................434
Text Run-Time Property (.NET) ...............................................................................................435
TotalPages Run-Time Property (.NET)....................................................................................436
Type Run-Time Property (.NET) ..............................................................................................436
ViewMode Run-Time Property (.NET) .....................................................................................437
Visible Run-Time Property (.NET) ...........................................................................................438
WebPageSize Run-Time Property (.NET) ...............................................................................438
Year Run-Time Property (.NET) ..............................................................................................439
Year Run-Time Property (.NET) ..............................................................................................439
YearsRange Run-Time Property (.NET)..................................................................................440
13
Component Reference
Components
Referencing Objects
The objects in the Web applications generated by CodeCharge Studio can be referenced in a variety of ways. In
many cases, to work with a specific object within a program you will need to know its position within the program
hierarchy. For example, an object that is placed directly on the page may need to be addressed differently compared
to an object placed within a form (which is also an object).
ASP
Examples of working with objects Syntax
Form object placed on a page Page Events <form>.Visible = False
Form Events EventCaller.Visible = False
Control object placed within a form Page Events <form>.<control>.Value = "123"
Form Events EventCaller.<control>.Value = "123"
Control Events EventCaller.Value = "123"
Control object placed on a page Page Events <control>.Value = "ABC"
Control Events EventCaller.Value = "ABC"
Control object placed on an included page Main Page Events <page>.<control>.Visible = False
Includable Page EventCaller.<control>.Visible = False
Events
Control Events EventCaller.Visible = False
Form object placed on an included page Main Page Events <page>.<form>.Visible = False
Includable Page EventCaller.<form>.Visible = False
Events
Form Events EventCaller.Visible = False
Control object placed in a form within an Main Page Events <page>.<form>.<control>.Visible = False
included page
Includable Page EventCaller.<form>.<control>.Visible = False
Events
Form Events EventCaller.<control>.Visible = False
Control Events EventCaller.Visible = False
Note: Using EventCaller is recommended when planning to reuse the event code since it doesn't require referring to
objects by name.
PHP
When using PHP you can address objects in a generic way as $Component to refer to the component raising the
event, and $Container to refer to the host form of $Component. This method of referring to objects is recommended
to make the event code reusable since it doesn't require referring to objects by name. You can also refer to objects
using global variables, for example use $MyGrid to refer to 'MyGrid' grid.
14
Examples of working with
Syntax
objects in a generic way
Form object placed on Page Events $Component->form->visible = false;
a page
Form Events $Component->Visible = false;
Control object placed Page Events $Component->form->control->SetValue($Component->form->PageNumber);
within a form
Form Events $Component->control->SetValue($Component->PageNumber);
Control $Component->SetValue($Container->PageNumber);
Events
Control object placed Page Events $Component->control->SetValue("ABC");
on a page
Control $Component->SetValue("ABC");
Events
Control object placed Main Page $Component->page->control->Visible = false;
on an included page Events
Includable $Component->control->Visible = false;
Page Events
Control $Component->Visible = false;
Events
Form object placed on Main Page $Component->page->form->Visible = false;
an included page Events
Includable $Component->form->Visible = false;
Page Events
Form Events $Component->Visible = false;
Control object placed Main Page $Component->page->form->control->Visible = false;
in a form within an Events
included page
Includable $Component->form->control->Visible = false;
Page Events
Form Events $Component->control->Visible = false;
Control $Component->Visible = false;
Events
Perl
Examples of working with objects Syntax
Form object placed on a page $<form>->{Visible} = 0;
Control object placed within a form $<form>->{<control>}->SetValue("123");
Control object placed on a page $<control>->SetValue("ABC");
Control object placed on an included page $<page>->{<control>}->{Visible} = 0;
Form object placed on an included page $<page>->{<form>}->{Visible} = 0;
Control object placed in a form within an included page $<page>->{<form>}->{<control>}->{Visible} = 0;
Assigning an object to a variable $<variable> = $<object>;
Java
15
Examples of working with
Syntax
objects
Form object placed on a page Page e.getPage().getComponent("<form>").setVisible(false);
Events
Form e.getComponent().setVisible(false);
Events
Control object placed within a Page e.getPage().getComponent("<form>").getControl("<control>").setValue("123");
form Events
Form e.getComponent().getControl("<control>").setValue("123");
Events
Control e.getControl().setValue("123");
Events
Control object placed on a Page e.getPage().getControl("<control>").setValue("ABC");
page Events
Control e.getControl().setValue("ABC");
Events
Assigning an object to a variable <variable> = <object>;
Note: The syntax for accessing objects in an included page from events within the same included page is the same
as specified above. The syntax for accessing objects in an included page from events within the including page is not
supported. The syntax for accessing objects in the including page from events within the included page is also not
supported.
C#
Examples of working with objects Syntax
Form object placed on a page Grid and Editable Grid <form>Repeater.Visible = false;
Events
Record Events <form>Holder.Visible = false;
Directory and Path Events <form>.Visible = false;
Control object placed within a Record form <form><control>.Visible = false;
Control object placed within a Grid, Control's Before Show <form><control>.Visible = false;
Editable Grid, Directory and Path Event
form
Form's Before Show and Object reference should be retrieved from the
Before Show Row Event FormControls collection.
See the ItemDataBound Event MSDN example.
Control object placed on a page <control>.Visible = false;
Assigning an object to a variable <variable> = <object>;
Note: The syntax for accessing objects in an included page from events within the same included page is the same
as specified above. The syntax for accessing objects in an included page from events within the including page is not
supported. The syntax for accessing objects in the including page from events within the included page is also not
supported.
VB.Net
Examples of working with objects Syntax
Form object placed on a page Grid and Editable Grid <form>Repeater.Visible = False
Events
Record Events <form>Holder.Visible = False
Directory and Path Events <form>.Visible = False
Control object placed within a Record form <form><control>.Visible = False
Control object placed within a Grid, Control's Before Show <form><control>.Visible = False
Editable Grid, Directory and Path Event
form
Form's Before Show and Object reference should be retrieved from the
Before Show Row Event FormControls collection.
See the ItemDataBound Event MSDN example.
Control object placed on a page <control>.Visible = False
16
Assigning an object to a variable <variable> = <object>
Note: The syntax for accessing objects in an included page from events within the same included page is the same
as specified above. The syntax for accessing objects in an included page from events within the including page is not
supported. The syntax for accessing objects in the including page from events within the included page is also not
supported.
ColdFusion
Examples of working with objects Syntax
Form variable placed on a page or within a form <CFSET blnReadAllowed<form>=false>
Control variable placed within a form or a page <CFSET fld<control> = "abc">
Note: The syntax for accessing objects in an included page from events within the same included page is the same
as specified above.
Events
Event Description
Server Side Events
On Click Occurs after the button has been clicked and the form is submitted. If the button appears
in a record or editable grid form, record operations such as insert, update and delete
occur after this event has been processed. In cases where the form does not have a
Data Source, this event is used to perform post-submission operations such as sending
emails messages based on the submitted information.
Before Show Occurs before the control is rendered to the page. This event can be used to influence
the visibility or appearance of the control.
Client Side Events
On Click Occurs immediately after the button has been clicked and before the form is submitted.
This client event can be used to validate the contents of the form on the client side
before the values are submitted to the server.
On Load Occurs after the control has been rendered to the page and before the user can perform
any operations. This event can be used to bind validation rules to the control.
17
Run-Time Properties (ASP)
Property Description
Visible This property controls the visibility of the control. If the property is set to false, the control
will not be displayed.
See also:
Button Overview
Calendar Reference
Design-Time Properties
Property Description
Name The name of the form.
Connection The database connection to be used for information retrieval.
Data Source The type of data source or the method used to retrieve the data.
Type
Data Source The database column, SQL Query or other expression the data is to be retrieved from.
18
Restricted Allow access only to authenticated and authorized users.
Type Type of the calendar, such as Annual, Quarterly, 3-Months, Monthly
Date Field Database field containing the date of the calendar event.
Date DB Format The database field format used with the date field.
Time Field Database field containing the time of the calendar event, if time is stored in a different field than
the date.
Time DB Format The database field format used with the time field.
Show nearby Whether to show days of the surrounding months if the 1st or last week of the month includes
days days of other months.
No of Columns The number of calendar columns.
Methods (ASP)
Method Description
SetEvent Adds new event.
GetEvents Returns events for the current date.
19
Method Description
isVisible Specifies whether this control is to be shown.
setVisible Specifies whether this control or component should be shown.
getParent Retrieves the parent component that contains this control or component.
getCurrentStyle Returns the style (not style name) that will be applied to the current Calendar section.
setCurrentStyle Specifies the style (not style name) that will be applied to the current Calendar section.
The method is used identically in the events.
getDateField Returns field name that points to the event's date. This field is required if datasource is
defined and allows to link calendar days with events.
setDateField Specifies the field name pointing to the Event Date. This field is required if the Data
Source is defined and allows to link events to the Calendar days.
hasNextItem Indicates if the next calendar item is available. This method can be used in the View
mode only.
nextItem Returns the next calendar item if it is available. This method can be used in the View
mode only.
getCurrentItem Returns the current calendar item if it is available.
getMonths Retrieves the number of the displayed months
setMonths Specifies the number of the displayed months
getMonthsInRow Returns the number of months in the calendar row for the yearly and quarterly calendars.
If monthsInRows == 0 all months will be shown in one row.
setMonthsInRow Specifies the number of months in the calendar row for the yearly and quarterly
calendars. If monthsInRows == 0 all months will be shown in one row.
getTimeField Returns the field name pointing to the Event Time. If 'null,' the calendar will retrieve the
Event Time from the dateField field.
setTimeField Specifies the field name pointing to the Event Time. If 'null,' the calendar will retrieve the
Event Time from the dateField field.
getVisualStyles Returns the map containing Styles that represent days of months, weeks, etc.
setVisualStyles Specifies the map containing Styles that represent days of months, weeks, etc.
getVisualStyle Returns the style with the specified name.
setVisualStyle Specifies the style with specified name to be used.
getCurrentProcessingDate Returns the currently processed date to be used in events.
getMonth Returns the month number to be shown. If it is not defined, the current month will be
used.
getYear Returns the year to be shown. If it is not defined, the current year is used.
isShowOtherMonthsDays Returns 'true' if days of the neighbouring months should be shown, otherwise - 'false'.
setShowOtherMonthsDays Specifies whether days of the neighbouring months should be shown.
20
Run-Time Properties (.NET)
Calendar Interface object (Controls.Calendar class)
Property Description
CurrentDate Gets or sets the current date.
DataSource Gets or sets a reference to data source bound to the form.
Date Gets or sets date active date for the current calendar.
Day Gets or sets the day part of active date.
Mode Gets or sets the mode of the current calendar component.
Month Gets or sets the month part of active date.
MonthsInRow Gets or sets the number of displaing months in one row.
ShowOtherMonthsDays Gets or sets the showing of dates from other monthes for current month.
Visible Specifies whether the calendar should be shown.
WeekDayFormat Gets or sets the format for displaying name of week days.
Year Gets or sets the month part of active date.
See also
Calendar Navigator Reference
21
Run-Time Properties (PHP)
Property Description
ComponentType Specifies the type of component. Value "CalendarNavigator" is used for the Calendar component.
ComponentName Specifies the name of Calendar Navigator.
Parent Specifies parent container of an object, for example a record form for a textbox that is included
within that form.
Visible Specifies whether the Calendar Navigator should be shown.
See also
Calendar Reference
22
Error Control Specify the name of a control that will be used to display any error messages pertaining
to this control.
Validation Rule Specify an expression that will be used to check the validity of the data entered in the
control.
Validation Text Specify the text that will be displayed if the data entered in the control does not meet the
validation rule.
Events
Event Description
Server Side Events
Before Show This event occurs before a component is rendered to the page.
Client Side Events
On Load Used for binding Validation rules to the control.
23
Methods (PHP)
Method Description
GetValue Retrieves the value of the CheckBox control.
SetValue Sets the value for the CheckBox control.
See also
Checkbox Overview
24
Default Value Specify a default value to be used for the control if no value is otherwise specified.
Content Specify whether the data source content is plain text or HTML code.
Required [Yes/No] Select ‘Yes’ if a value must be entered for the control in order for the form to be
submitted successfully.
Unique [Yes/No] Select ‘Yes’ if you want a check to be made to ensure that any value entered in
the control does not already exist in the database.
Error Control Specify the name of a control that will be used to display any error messages pertaining
to the control. If this value is not specified, all error messages are displayed at the top of
the form in which the control is contained.
Validation Rule Specify an expression that will be used to check the validity of the data entered in the
control.
Validation Text Specify the text that will be displayed if the data entered in the control does not satisfy
the validation rule.
Events
Event Description
Server Side Events
On Validate This event occurs after standard validation operations have been performed as a result
of submitting values, but before any database operations have been performed with the
submitted values.
Before Show This event occurs before a component is rendered to the page.
Before Build Select This event occurs before the query that will be used to retrieve records from the
database is put together. This event can be used to modify the different clauses that
make up the query such as the WHERE clause or the ORDER BY clause.
Before Execute Select This event occurs immediately before a row selection query is executed but after the
query has been composed. This event can be used to modify the entire query before it is
executed.
After Execute Select This event occurs after the row selection query has been executed and a recordset
containing the results is returned.
Client Side Events
On Click Occurs immediately after the control has been clicked. This event can be used to provide
interactive behavior when the control is clicked.
25
Run-Time Properties (PHP)
Property Description
ComponentType Specifies type of an object, such as "TextBox", "Record", etc.
Parent Specifies parent container of an object, for example a record form for a textbox that is
included within that form.
DataSource A Data Source object created for the purpose of retrieving and holding the IDs and
values to be displayed in the control.
Errors An object that contains the error messages generated during script execution when
submitted data fails verification or any other user defined condition is not fulfilled.
Visible This property controls the visibility of the control. If the property is set to false, the control
will not be displayed.
Methods (PHP)
Method Description
GetValue Retrieves the value of the CheckBox List control. Only the first element of the array of
values is retrieved.
SetValue Sets the value of the CheckBox List control.
Model Layer
Property Description
<control name> Contains the current value of the control.
<control name>Items This is a Collection of the control items.
26
hide<control name> This variable controls the visibility of the control. If the variable is set to true, the
control will not be displayed.
strOrder<control name> This property contains the ORDER BY clause portion of the SQL query used to
retrieve records for the control. The ORDER BY clause determines the order of
appearance of the retrieved records. The value of this property is appended to
the value of the strSQL<control name> property to create the final SQL query
which is executed against the datasource to retrieve the records for the control.
strSQL<control name> This property contains the main portion of the SQL query used to retrieve the
records displayed within the control. In terms of SQL, this property defines the
SELECT and FROM clauses of the SQL query.
strWhere<control name> This property contains the WHERE clause portion of the SQL query used to
retrieve records for the control. The WHERE clause provides the criteria which
filters the records retrieved. The value of this property is appended to the value
of the strSQL<control name> property to create the final SQL query which is
executed against the datasource to retrieve the records for the control.
query<control name> This variable contains the query object associated with the control.
See also
Checkbox List Overview
Connection Reference
Design-Time Properties
Property Description
Name The name of the connection. Has to be unique.
27
Design Database Type The type of database being accessed during design time. If your database type is not
listed, select the ANSI SQL-92 option.
Connection String Depending on the type of connection, this can be either an ODBC DSN or a connection
string.
Connection Type The type of connection. ODBC or Connection String.
Login The user login name needed to access the database.
Password The user password needed to access the database.
Server Database Type The type of database being accessed during the server (live) execution. If your database
type is not listed, select the ANSI SQL-92 option.
Date Format The format in which date values should be entered into the database.
Boolean Format The format in which Boolean values should be entered into the database.
Catalog Specify a database catalog from which to display objects during design time.
Schema Specify a database schema from which to display objects during design time.
Views [Yes/No] Select 'Yes' to enable the display of database views during design time.
Synonyms [Yes/No] Select 'Yes' to enable the display of database Synonyms during design time.
System Tables [Yes/No] Select 'Yes' to enable the display of database System Tables during design
time.
System Views [Yes/No] Select 'Yes' to enable the display of database System Views during design
time.
Aliases [Yes/No] Select 'Yes' to enable the display of database aliases during design time.
Use LIMIT/TOP [Yes/No] Select 'Yes' to enable the usage of LIMIT or TOP clause to limit the size of SQL
result sets.
Server Same As Design [Yes/No] Select 'Yes' if the same connection will be used for design time as well as on
the server.
Server Connection Type If the server connection is different from the design connection, specify whether the
server connection will use an ODBC DSN or connection string.
Server Connection String If the server connection is different from the design connection, specify the ODBC DSN
or connection string to be used.
Server Login If the server connection is different from the design connection, enter the user login
name needed to access the server database.
Server Password If the server connection is different from the design connection, enter the user password
needed to access the server database.
28
Run-Time Properties (PHP)
Property Description
Errors This is a collection of errors pertaining to the object. Any errors which occur during the
course of the objects execution are registered in this collection.
Methods (ASP)
Method Description
Close Closes the database connection.
Execute Executes an SQL query against the database connection. This method returns a
recordset object containing the query results.
Open Opens a database connection.
ToSQL Transforms values into SQL compatible format depending on the specified data type.
Methods (PHP)
Method Description
connect Establishes a database connection.
f Retrieves the value of a field within a recordset.
next_record Moves the recordset pointer to the next row.
num_rows Retrieves the number of rows returned by the last executed query.
query Executes an SQL query and returns a recordset if applicable. In the recordset, the row
pointer is located before the first row so the next_record method has to be used to move
the pointer to the first row before it can be read.
ToSQL Transforms values into SQL compatible format depending on the specified data type.
class JDBCConnection
Method Description
getPoolName Get the name of the connection pool. This name corresponds to the Connection name
configured within the CodeCharge Studio IDE.
setLocale Set the Locale. The locale is used to determine how to format data before it is inserted,
29
updated and when it is selected.
hasErrors Indicates whether the connection has registered any errors or not.
getErrorsAsString Returns a single string with all the errors that have been registered.
getConnection This method is used to obtain a connection from the pool of connections. A new
connection is created only if there are no other free connections, otherwise existing
connections are reused. You should call the closeConnection method when done with a
connection so as to return the connection to the pool.
closeConnection Returns a connection to the pool. This method doesn't really close the connection but
returns it to the connection pool to be reused in the future.
createCallableStatement Create a CallableStatement by preparing a procedure call provided by the callString
parameter.
createPreparedStatement Create a PreparedStatement from the sql indicated by the sql parameter. A
PreparedStatement differs from an ordinary Statement in that you can use question
marks in place of query parameters.
createStatement Create a Statement. The Statement object can then be used to query the database with
SQL (executeQuery).
closeStatement Free a Statement object when it is no longer needed.
30
Run-Time Properties (.NET)
Property Description
Visible This property controls the visibility of the control. If the property is set to false, the control will not be
displayed.
See also
Date Picker Overview
Events
Event Description
Server Side Events
Before Select This event occurs at the onset of the operations performed to select records from the
database.
31
Before Show Occurs before the form is displayed and after the data for the form has been retrieved
from the database and saved to control variables. This event can be used to populate
custom template variables defined within directory HTML block.
Before Show Category Occurs before each category in the form is shown. This event can be used to alter
category values or performing other operations using the values of the categories.
Before Show Subcategory Occurs before each subcategory in the form is shown. This event can be used to alter
subcategory values or performing other operations using the values of the
subcategories.
Before Build Select This event occurs before the query that will be used to retrieve records from the
database is put together. This event can be used to modify the different clauses that
make up the query such as the WHERE clause or the ORDER BY clause.
Before Execute Select This event occurs immediately before a row selection query is executed but after the
query has been composed. This event can be used to modify the entire query before it is
executed.
After Execute Select This event occurs after the row selection query has been executed and a recordset
containing the results is returned.
32
NumberOfSubcategories Maximum number of subcategories to display per category.
Visible This property determines whether the component will be shown or not.
Methods (.NET)
Interface
Method Description
DataBind Binds a data source to the invoked server control and all its child controls.
Data Provider
Method Description
GetResultSet Executes an SQL command and returns results in an Items array.
33
strSQL This property contains the main portion of the SQL query used to retrieve the records
displayed within the control . In terms of SQL, this property defines the SELECT and
FROM clauses of the SQL query.
strWhere This property contains the WHERE clause portion of the SQL query used to retrieve
records for the control. The WHERE clause provides the criteria which filters the records
retrieved.
query<control name> This variable contains the query object associated with the control.
34
See also
Directory Form Overview
Events
Event Description
Server Side Events
Before Select This event occurs at the onset of the operations performed to select records from the
database.
Before Show This event occurs before a component is rendered to the page.
Before Show Row This event occurs before each row in the form is displayed.
Before Build Select This event occurs before the creation of the query that will be used to retrieve records from
the database.
35
Before Execute Select This event occurs immediately before a row selection query is executed but after the query
has been composed.
After Execute Select This event occurs after the row selection query has been executed and a recordset for the
result is returned.
On Validate This event occurs after standard validation operations have been performed as a result of
submitting values, but before any database operations have been performed with the
submitted values.
Before Submit This event occurs at the onset of the operations performed to submit a database record.
After Submit This event occurs after submitting an existing row in the data source.
Before Build Insert This event occurs before the creation of the query that will be used to insert a new record
into the database.
Before Execute Insert This event occurs immediately before a row insertion query is executed but after the query
has been composed.
After Execute Insert This event occurs after new row insert query has been executed.
Before Build Update This event occurs before the creation of the query that will be used to update database
content.
Before Execute Update This event occurs immediately before a row update query is executed but after the query
has been composed.
After Execute Update This event occurs after a row update query has been executed.
Before Build Delete This event occurs before the creation of the query that will be used to deleted a database
record.
Before Execute Delete This event occurs immediately before a row deletion query is executed but after the query
has been composed.
After Execute Delete This event occurs after a row deletion query has been executed.
Client Side Events
On Load Used for binding Validation rules to the control.
On Submit Occurs on the client side when the user submits the form, before the data is sent to the
server from the form.
36
UpdateAllowed This is a boolean property whose value determines whether the update operation should proceed
or not. The value of this property is set automatically based on the value of the Restricted
property of the form. If the Restricted property is set to No, the value of this property is always
True unless it is modified using event code in the Before Update event.
Visible This property determines whether the form is to be shown or not.
37
Property Description
DataSource->CountSQL This property contains the SQL query which is executed to determine the total number
of browseable rows in the Editable Grid form. The number retrieved as a result of
executing this query is used during the creation of the navigation controls for the form.
DataSource->SQL This property contains the main portion of the SQL query used to retrieve the records
displayed within the form. In terms of SQL, this property defines the SELECT and
FROM clauses of the SQL query.
DataSource->Where This property contains the WHERE clause portion of the SQL query used to retrieve
records for the form. The WHERE clause provides the criteria which filters the records
retrieved. The value of this property is appended to the value of the DataSource->SQL
property to create the final SQL query which is executed against the datasource to
retrieve the records for the form.
DataSource->Order This property contains the ORDER BY clause portion of the SQL query used to retrieve
records for the control. The ORDER BY clause determines the order of appearance of
the retrieved records. The value of this property is appended to the value of the
DataSource->SQL property to create the final SQL query which is executed against the
datasource to retrieve the records for the control.
DataSource->CmdExecution This property determines whether or not the Insert, Update or Delete operation should
proceed depending on the used BeforeExecuteInsert, BeforeExecuteUpdate or
BeforeExecuteDelete event.
DataSource->RecordsCount This property contains a count of all the records that have been retrieved for the form.
38
strWhere This variable contains the WHERE clause portion of the SQL query used to
retrieve records for the form. The WHERE clause provides the criteria which
filters the records retrieved. The value of this property is appended to the value
of the strSQL variable to create the final SQL query which is executed against
the datasource to retrieve the records for the form.
strError<control name> This variable contains any error messages generated during execution of the
form.
strPressedButton This variable contains the name of the form submit button which was clicked to
initiate postback.
query<control name> This variable contains the query object associated with the form.
endOperation<control name> This property determines whether or not the Insert, Update or Delete operation
should proceed depending on the used BeforeExecuteInsert,
BeforeExecuteUpdate or BeforeExecuteDelete event.
39
getListBox Specify a name to find a Listbox control among the collection of children controls.
getRadioButton Specify a name to find a Radiobutton control among the collection of children controls.
getCheckBoxList Specify a name to find a Checkbox List control among the collection of children controls.
getLink Specify a name to find a Link control among the collection of children controls.
getDatePicker Specify a name to find a Date Picker control among the collection of children controls.
isVisible Returns a value indicating whether this control should be displayed or not.
setVisible Specify whether the form should be shown or not.
isCmdExecution Returns a value indicating whether the operation should proceed or not.
setCmdExecution Specify whether the operation should be performed or not.
getParent Get the parent component that contains the form.
Methods (.NET)
Editable Gird Model Layer
Method Description
Validate Performs the item validation and returns true if validation is successful, otherwise false.
40
Editable Gird Data Provider
Method Description
Update Performs update operations for each item in the items array.
GetResultSet Execute a query against the database and return the items array.
See also
Editable Grid Form Overview
Control Source This property depends on the value specified in the Control Source Type property above. If
the Control Source Type is a Database Column, use this property to specify the database
table column that will be used to furnish the control value. Respectively, if the Control
Source Type is a Database Expression or a Code Expression, enter the expression to be
used to furnish the control value. This property can be left blank if the control does not use a
data source.
Required [Yes/No] This property specifies whether the control must submit a file when the form is
submitted. If the control does not submit a file, the form will not be processed to completion
but instead an error message will be displayed.
Error Control Usually, error messages corresponding to a control are displayed at the top of the form as
plain text. However, you might want this error text to be displayed within another existing
control, for instance, in a Label field placed adjacent to the control. Use this property to
specify the name of a control where you want the error message for the current control to be
displayed.
Temporary Folder Specify a file system path to a folder on the web server machine where the upload
component can temporarily place files while they are being processed. The path specified
can be an absolute path e.g. c:\Inetpub\files\temp or a relative path e.g. .\files\temp
File Folder Specify a file system path to a folder on the web server machine where the final uploaded
files should be stored. The path specified can be an absolute path e.g.
c:\Inetpub\files\images or a relative path e.g. .\files\images
Allowed File Masks Specify a semicolon separated list of file masks for files that the user is allowed to upload
41
e.g. *.jpg; *.png; *.gif; *.txt. You can enter an asterisk (*) to allow all file types to be uploaded.
Disallowed FIle Masks Specify a semicolon separated list of file masks for files that the user is not allowed to
upload e.g. *.exe; *.dll; *.bat.
File Size Limit Specify the size limit in bytes of the files that the user can upload. Files larger than the limit
will not be uploaded.
Events
Event Description
Server Side Events
Before Process File This event occurs after an uploaded file is saved to the temporary directory but before it
is moved to the target folder. This event can be used to check additional conditions or to
change the file location or name.
After Process File This event occurs after an uploaded file is moved to the target folder from the temporary
folder. It can be used to perform post processing on the file.
Before Delete File This event occurs before a file is deleted from the server. It can be used to check
additional permissions or conditions before deleting the file.
After Delete File This event occurs after a file has been deleted from the server. It can be used to perform
cleanup operations after removing the file.
Before Show This event occurs before the control is rendered to the page.
On Validate This event occurs after standard validation operations have been performed as a result
of submitting values, but before any database operations have been performed with the
submitted values.
42
Errors This property keeps a reference to the object’s error collection. It is used to collect error
messages generated during the object’s execution.
FileSizeLimit This property specifies the size limit in bytes of the files that the user can upload. Files
larger than the limit will not be uploaded.
FileFolder This property specifies a file system path to a folder on the web server machine where
the final uploaded files should be stored.
TemporaryFolder This property specifies a file system path to a folder on the web server machine where
the upload component can temporarily place files while they are being processed.
Visible This property determines whether the control is displayed or not.
Methods (.NET)
Method Description
ValidateFile Validate an uploaded file and if validation is successful, save the file to the
TemporaryFolder.
SaveFile Save a file to the specified FileFolder.
DeleteFile Delete a file from the server .
Methods (ASP)
Method Description
GetOriginFileName This method can be used to retrieve the original name of the uploaded file i.e. without
the unique timestamp appended to the filename.
Methods (PHP)
Method Description
GetFileName This method can be used to retrieve the original name of the uploaded file i.e. without
the unique timestamp appended to the filename.
GetFileSize This method can be used to retrieve the size of the uploaded file.
GetValue This method retrieves the name of the uploaded file.
SetValue This method sets the name of the uploaded file.
43
Variable Description
fld<control name> This variable contains the name of the uploaded file.
par<control name>.TemporaryFolder This variable specifies a file system path to a folder on the web server machine
where the upload component can temporarily place files while they are being
processed
par<control name>.FileFolder This variable specifies a file system path to a folder on the web server machine
where the final uploaded files should be stored.
hide<control name> This variable determines whether the control is displayed or not.
See also:
File Upload Overview
Events
Event Description
Server Side Events
Before Select Occurs before calling the select operation.
44
Before Show Occurs before showing (populating template with data) page component or control.
Before Show Row Occurs before showing (populating template with data) each grid's row.
Before Build Select Occurs before processing parameters and building selecting query.
Before Execute Select Occurs just before initializing recordset with query data and parameters and opening it
for retrieving resulting rows.
After Execute Select Occurs after data source’s rows selection query has been executed and a recordset for
the result is returned.
45
Property Description
DataSource->CountSQL This property contains the SQL query which is executed to determine the total number
of browseable rows in the Grid form. The number retrieved as a result of executing this
query is used during the creation of the navigation controls for the form.
DataSource->SQL This property contains the main portion of the SQL query used to retrieve the records
displayed within the form. In terms of SQL, this property defines the SELECT and
FROM clauses of the SQL query.
DataSource->Where This property contains the WHERE clause portion of the SQL query used to retrieve
records for the form. The WHERE clause provides the criteria which filters the records
retrieved. The value of this property is appended to the value of the DataSource->SQL
property to create the final SQL query which is executed against the datasource to
retrieve the records for the form.
DataSource->Order This property contains the ORDER BY clause portion of the SQL query used to retrieve
records for the control. The ORDER BY clause determines the order of appearance of
the retrieved records. The value of this property is appended to the value of the
DataSource->SQL property to create the final SQL query which is executed against the
datasource to retrieve the records for the control.
DataSource->RecordsCount This property contains a count of all the records that have been retrieved for the form.
Methods (.NET)
Grid Data Provider
Method Description
GetResultSet Execute a query against the database and return the items array.
46
records for the control. The ORDER BY clause determines the order of appearance of
the retrieved records. The value of this property is appended to the value of the strSQL
variable to create the final SQL query which is executed against the datasource to
retrieve the records for the control.
strSQL This variable contains the main portion of the SQL query used to retrieve the records
displayed within the form. In terms of SQL, this property defines the SELECT and FROM
clauses of the SQL query.
strWhere This variable contains the WHERE clause portion of the SQL query used to retrieve
records for the form. The WHERE clause provides the criteria which filters the records
retrieved. The value of this property is appended to the value of the strSQL variable to
create the final SQL query which is executed against the datasource to retrieve the
records for the form.
hide<control name> This variable determines whether the form is to be shown or not.
47
See also
Grid Form Overview
Events
Event Description
Server Side Events
On Validate This event occurs after standard validation operations have been performed as a result
of submitting values, but before any database operations have been performed with the
submitted values.
Before Show Occurs before the control is rendered to the page.
Client Side Events
On Load Occurs at the beginning of page processing and is used for binding Validation rules to
the control.
48
submitted data fails verification or any other user defined condition is not fulfilled.
Value Holds the value of the control.
Model Layer
Property Description
<control name> Contains the current value of the control.
Methods (PHP)
Method Description
GetValue Retrieves the value of the Hidden control.
SetValue Sets the value for the Hidden control.
49
See also
Hidden Overview
Events
Event Description
Server Side Events
BeforeShow Occurs before the control is rendered to the page. By placing code in this event, the user
can alter the URL of the image or hide the control.
50
Model Layer
Property Description
<control name> Contains current value of control.
Methods (PHP)
Method Description
GetValue Retrieves the value of the Image control (the URL of the image).
SetValue Sets the value of the Image control (the URL of the image).
See also
Image Overview
51
Visible Specify whether the control should be displayed or not.
Control Source Type The type of data source that will provide data for the control: Database Column,
Database Expression, Code Expression.
Control Source Specify the source of data for the control e.g. the name of a database column.
Data Type The type of data that will be contained in the control.
Href Type The type of source where the URL value will come from.
Href Source The page path, database column or other expression containing the URL of the
hyperlink.
Convert URL to Specify whether the URL should be converted to an absolute URL or a secure (https://)
URL.
Format Depending on the Data Type property, select the format of the data that will be contained
in the control.
Default Value Specify a default value to be used for the control if no value is otherwise specified.
Remove Parameters Specify a semicolon-separated list of parameters that should be removed from the
hyperlink.
Preserve Parameters Specify whether GET or Post parameters should be preserved.
DBFormat Specify the format in which you want the control value to be entered into the database.
Events
Event Description
Server Side Events
Before Show Occurs before the control is rendered to the page. This event can be used to change the
URL of the ImageLink control or the path to the image displayed in the control.
Methods (PHP)
Method Description
GetValue Retrieves the value of the ImageLink control, in this case, the path to the image to be
displayed.
SetValue Sets the value of the ImageLink control, in this case, the path to the image to be
displayed.
GetLink Retrieves the URL to which the ImageLink links to.
SetLink Sets the URL to which the ImageLink links to.
52
Interface System.Web.UI.WebControls.HyperLink class is used.
Property Description
ImageUrl Gets or sets the path to an image to display for the HyperLink control. See .NET
Framework SDK reference.
NavigateUrl Gets or sets the URL to link to when the HyperLink control is clicked. See .NET
Framework SDK reference.
Visible This property determines whether the control will be shown or not.
Model Layer
Property Description
<control name> Contains the current value of control.
<control name>Href Contains the URL to link to when the HyperLink control is clicked.
<control name>HrefParameters Contains the URL parameters to be appended to the URL of the control.
See also
Image Link Overview
53
Design-Time Properties
Property Description
Name The name of the control.
Page The page that will be included.
Methods (Servlets)
Method Description
isVisible Indicates whether the include page is to be shown or not.
setVisible Specify whether the include page is to be shown or not.
getParent Get the parent component that contains the Include Page.
See also
Include Page Overview
Label Reference
Design-Time Properties
Property Description
Name The name of the control.
Control Source Type The type of data source that will provide data for the control: Database Column,
Database Expression, Code Expression.
Control Source Specify the source of data for the control e.g. the name of a database column.
Data Type The type of data that will be contained in the control.
Format Depending on the Data Type property, select the format of the data that will be contained
in the control.
54
Default Value Specify a default value to be used for the control if no value is otherwise specified.
Content Specify whether the content of the control is plain text or HTML code.
DBFormat Specify the format in which you want the control value to be entered into the database.
Events
Event Description
Server Side Events
Before Show Occurs before the control is rendered to the page. This event can be used to change the
value of the control.
Model Layer
Property Description
<control name> Contains the current value of the control.
Methods (PHP)
Method Description
GetValue Retrieves the value of the Label control.
SetValue Sets the value of the Label control.
55
Method Description
getPage Get the page that contains this control.
getFormattedValue Get the value formatted according to the control format.
setFormattedValue Use a String to set the control value. The value is taken as is i.e. formatting will not be
applied to this value.
getValue Retrieves the value of the control without any formatting applied to it.
setValue This method sets the value of the control.
hasErrors Indicates whether the control has (validation) errors.
addError Add an error description to the errors collection.
getErrorsAsString Return a single String with all the error messages separated by <br> tags.
isVisible Indicates whether this control should be shown or not.
setVisible Specify whether this control or component should be shown or not.
getParent Get the parent component that contains this control.
See also
Label Overview
Link Reference
Design-Time Properties
Property Description
Name The name of the control.
Visible Specify whether the control should be displayed or not.
Control Source Type The type of data source that will provide data for the control: Database Column,
Database Expression, Code Expression.
Control Source Specify the source of data for the control e.g. the name of a database column.
Data Type The type of data that will be contained in the control.
Format Depending on the Data Type property, select the format of the data that will be contained
in the control.
Default Value Specify a default value to be used for the control if no value is otherwise specified.
Content Specify whether the content of the control is plain text or HTML code.
Href Type The type of source where the URL value will come from.
Href Source This property opens the Href Source window where you can specify the page to be
linked to as well as any parameters that should be transmitted via the URL.
Convert URL to Specify whether the URL should be converted to an absolute URL or a secure (https://)
URL.
Remove Parameters Specify a semicolon-separated list of parameters that should be removed from the
hyperlink.
Preserve Parameters Specify whether GET or Post parameters should be preserved.
DBFormat Specify the format in which you want the control value to be entered into the database.
Events
Event Description
56
Server Side Events
Before Show Occurs before the control is rendered to the page. By placing code in this event, the user
can change the text or the URL of the Link control.
Methods (PHP)
Method Description
GetValue Retrieves the value of the Link control, in this case, the text displayed in the Link.
SetValue Sets the value of the Link control, in this case, the text displayed in the Link.
GetLink Retrieves the URL to which the Link links to.
SetLink Sets the URL to which the Link links to.
Model Layer
Property Description
<control name> Contains the current value of the control.
<control name>Href Contains the URL to link to when the HyperLink control is clicked.
<control name>HrefParameters Contains the URL parameters to be appended to the URL of the control.
57
fld<control name>Link This variable contains the URL that will be linked to.
hide<control name> This variable determines whether the control is to be shown or not.
See also
Link Overview
List Box
Design-Time Properties
Property Description
Name The name of the control.
Visible Specify whether the control should be displayed or not.
Caption The name used to refer to the control in an error message.
Control Source Type The type of data source that will provide data for the control: Database Column,
Database Expression, Code Expression.
Control Source Specify the source of data for the control.
Connection The database connection from where information will be retrieved.
Data Source Type Specify the type of source of data for the list of values to be shown in the control.
Data Source Specify the actual source of data for the list of values depending on the List Source
Type.
Bound Column Refers to the data source for the values that are submitted.
Text Column Refers to the data source for the values that are displayed.
Data Type The type of data that will be contained in the control.
Default Value Specify a default value to be used for the control if no value is otherwise specified.
Required Yes/No] Select ‘Yes’ if a value must be entered for the control in order for the form to be
58
submitted successfully.
Unique [Yes/No] Select ‘Yes’ if you want a check to be made to ensure that any value entered in
the control does not already exist in the database.
Error Control Specify the name of a control that will be used to display any error messages pertaining
to the control. If this value is not specified, all error messages are displayed at the top of
the form in which the control is contained.
Validation Rule Specify an expression that will be used to check the validity of the data entered in the
control.
Validation Text Specify the text that will be displayed if the data entered in the control does not meet the
validation rule.
Events
Event Description
Server Side Events
On Validate This event occurs after standard validation operations have been performed as a result
of submitting values, but before any database operations have been performed with the
submitted values.
Before Show This event occurs before the control is rendered to the page.
Before Build Select This event occurs before the query that will be used to retrieve records from the
database is put together. This event can be used to modify the different clauses that
make up the query such as the WHERE clause or the ORDER BY clause.
Before Execute Select This event occurs immediately before a row selection query is executed but after the
query has been composed. This event can be used to modify the entire query before it is
executed.
After Execute Select This event occurs after the row selection query has been executed and a recordset
containing the results is returned.
Client Side Events
On Change Occurs on the client side whenever the control's value is changed and focus is lost.
On Load Used for binding Validation rules to control. A user can provide JavaScript code that will
be executed by the browser.
59
Run-Time Properties (PHP)
Property Description
ComponentType Specifies type of an object, such as "TextBox", "Record", etc.
Parent Specifies parent container of an object, for example a record form for a textbox that is
included within that form.
DataSource A Data Source object created for the purpose of retrieving the IDs and values to be
displayed in the List Box control.
Errors An object that contains the error messages generated during script execution when
submitted data fails verification or any other user defined condition is not fulfilled.
Visible This property determines whether the control is visible or not.
Model Layer
Property Description
<control name> Contains the current value of the control.
<control name>Items This is a Collection of the control items.
Methods (PHP)
Method Description
GetValue Retrieves the value of the List Box control.
SetValue Sets the value of the List Box control.
60
strOrder<control name> This property contains the ORDER BY clause portion of the SQL query used to
retrieve records for the control. The ORDER BY clause determines the order of
appearance of the retrieved records. The value of this property is appended to
the value of the strSQL<control name> property to create the final SQL query
which is executed against the datasource to retrieve the records for the control.
strSQL<control name> This property contains the main portion of the SQL query used to retrieve the
records displayed within the control. In terms of SQL, this property defines the
SELECT and FROM clauses of the SQL query.
strWhere<control name> This property contains the WHERE clause portion of the SQL query used to
retrieve records for the control. The WHERE clause provides the criteria which
filters the records retrieved. The value of this property is appended to the value
of the strSQL<control name> property to create the final SQL query which is
executed against the datasource to retrieve the records for the control.
hide<control name> This variable controls the visibility of the control. If the variable is set to true, the
control will not be displayed.
See also
List Box Overview
Navigator Reference
Design-Time Properties
Property Description
61
Name The name of the Navigator component.
Page Links Specify the number of displayed page links (10 by default).
Type Specify the type of links used in the Navigator.
Events
Event Description
Server Side Events
Before Show Occurs before the component is rendered to the page.
See also
Navigator Overview
62
Page Reference
Design-Time Properties
Property Description
Restricted Specify if the Group Access authorization is used.
Access Denied Page Page used for redirection in case of denied access.
Convert URL To Specify if the Access Denied URL should be converted to different format.
Includable Specify of the Page is included in other pages
SSL Access Only If the page is not accessed via SSL then the connection error occurs.
Events
Event Description
Server Side Events
After Initialize Occurs after all page components have been initialized, before processing submitted
data or showing components. It can be used for defining code that should be executed
before any other event code. It can be used on pages that don't contain any objects and
are used only for processing data, without outputting the rendered template (e.g. for
pages that should output binary data, like images or files). Another common application
is conditional redirecting (using Redirect global variable).
On Initialize View Occurs after handling submitted data and before loading templates for page showing. A
common application is changing template filename to use different page templates
conditionally.
Before Show Occurs after the template object has been initialized with the template page contents and
before showing (populating template with data) page components and controls. This
event can be used for putting dynamic content into template variables (i.e.
{var_name}, where var_name is the name of the variable).
Before Output Occurs after page template is rendered and before output content to the client.
Before Unload Occurs before disposing page’s components objects, after page output is completed. It
can be used for defining code that should be executed just before the page execution is
complete. Another application is closing additional database connections or freeing other
custom resources.
Client Side Events
On Load Used for binding Validation rules to control, initializing any JavaScript functions. It is
invoked when the page loading is completed by the browser. It can be used to initialize
some DHTML components like menus or trees placed on page.
On Unload Invoked when the page is about to be closed, or the user navigates to another page. It
can be used to detect unsubmitted changes or ask for page leaving confirmation.
63
PathToRoot This variable holds relative path to access site's root directory from page's parent
directory. It is usually composed of number of .. parent paths (depending on page's
level).
Redirect This variable contains relative or absolute URL, or just page name to redirect. This
redirection is made just before On Initialize View event, so it only makes sense to set
variable's value in After Initialize event or some submit processing event in page sub
components.
ScriptPath This variable contains absolute filesystem path to current page's directory.
TemplateFileName This variable contains name of the template file. This file is loaded to retrieve page and
components rendering HTML blocks.
Tpl This variable holds a reference to root template block. It can be used to access template
variables defined in HTML code.
64
setRedirectString Specify URL string for redirect. This redirection is made just before On Initialize View
event, so it only makes sense to set variable's value in After Initialize event or some
submit processing event in page sub components.
getRequest Returns the current request associated with this page.
getResponse Returns the current response associated with this page.
getHttpGetParameters
getHttpGetParameter Returns the value of a request GET parameter as a String, or null if parameter does not
exist.
getHttpPostParameters
getHttpPostParameter Returns the value of a request POST parameter as a String, or null if parameter does not
exist.
getParameter Returns the value of a request parameter as a String, or null if parameter does not exist.
getFile Returns a UploadedFile object that present a uploaded file, or null if file does not
uploaded.
getTemplate Returns the Template object for the direct usage of the template library or null for JSP.
isRestricted Whether users must be logged in before accessing the form.
setRestricted Specify whether users must be logged in before accessing the form.
getChild Specify a name to find a child control among the collection of children controls.
getChildren Return all children controls of a collection.
getControl Specify a name to find a Control among the collection of controls.
getFileUpload Specify a name to find a FileUpload control among the collection of children controls.
getButton Specify a name to find a Button control among the collection of children controls.
getListBox Specify a name to find a Listbox control among the collection of children controls.
getRadioButton Specify a name to find a Radiobutton control among the collection of children controls.
getCheckBoxList Specify a name to find a Checkbox List control among the collection of children controls.
getLink Specify a name to find a Link control among the collection of children controls.
getDatePicker Specify a name to find a Date Picker control among the collection of children controls.
isVisible Returns a value indicating whether this control should be displayed or not.
setVisible Specify whether this control or component should be shown.
getParent Get the parent component that contains this control or component.
65
executed page's directory.
PathToRoot This variable holds relative path to access site's root directory from
page's parent directory.
strRedirect This variable contains relative or absolute URL, or just page name to
redirect. This redirection is made just before On Initialize View event,
so it only makes sense to set variable's value in After Initialize event
or some submit processing event in page sub components.
strTemplateFileName (for CFT only) This variable contains name of the template file. This file is loaded to
retrieve page and components rendering HTML blocks.
Panel Reference
Design-Time Properties
Property Description
Name The identifier used in the generated code and HTML template.
Visible Specify whether the panel should be shown on the page at run-time. If the value is "No" the Panel and
included components will be not displayed.
Note: this property specifies the default state of the panel, which can be changed dynamically using the
custom code or actions.
Events
Event Description
Before Show This event occurs before panel component is rendered within the page.
Methods (ASP)
Method Description
AddComponents This method can be used to add an array of controls.
66
Run-Time Variables (CF,CFT)
Variable Description
hide<control name> Specify if the control will be shown or not. If the value is 'true' the control will not be displayed.
Property Description
Visible Retrieves or specifies the value indicating whether the control will be rendered on the page.
See also
• Panel Control
• Placing an existing component within a new panel
• Restricting SQL Execution for Components Hidden Using a Panel
• Iterating Panel Controls
• Working with Panels
Path Reference
Design-Time Properties
Property Description
Name Name of the control.
Connection Select one of the project database connection names.
Data Source Type Specify the type of Data Source.
Data Source Specify the actual source of data for the list of values depending on the Source Type.
ID Field Specify the field containing the unique ID that identifies the categories.
Parent Field Specify the field with primary key values of the parent categories.
Events
Event Description
Server Side Events
Before Select This event occurs at the onset of the operations performed to select records from the
database.
67
Before Show This event occurs before a component is rendered to the page.
Before Show Category This event occurs before each category in the Path is displayed.
Before Build Select This event occurs before the creation of the query that will be used to retrieve records
from the database.
Before Execute Select This event occurs immediately before a row selection query is executed but after the
query has been composed.
After Execute Select This event occurs after the row selection query has been executed and a recordset for
the result is returned.
68
Run-Time Properties (.NET)
Interface
Property Description
DataSource This property stores a reference to the data source bound to the component.
Visible This property determines whether the component will be shown or not.
Model Layer
Property Description
errors This property keeps a reference to the object’s error collection. It is used to collect error
messages generated during the object’s execution.
<control name> For each control that is located within a component, a member property is created with
the same name as the control.
Methods (.NET)
Data Provider
Method Description
GetResultSet Executes an SQL command and returns results in an Items array.
69
HashMap; This method never returns a null.
currentRow Returns the current row.
getChild Specify a name to find a child control among the collection of children controls.
getChildren Return all children controls of a collection.
getControl Specify a name to find a Control among the collection of controls.
getFileUpload Specify a name to find a FileUpload control among the collection of children controls.
getButton Specify a name to find a Button control among the collection of children controls.
getListBox Specify a name to find a Listbox control among the collection of children controls.
getRadioButton Specify a name to find a Radiobutton control among the collection of children controls.
getCheckBoxList Specify a name to find a Checkbox List control among the collection of children controls.
getLink Specify a name to find a Link control among the collection of children controls.
getDatePicker Specify a name to find a Date Picker control among the collection of children controls.
isVisible Returns a value indicating whether this control should be displayed or not.
setVisible Specify whether this component should be shown.
getParent Get the parent component that contains this control or component.
See also
Path Overview
Project Reference
Properties
Property Description
Code Language Select the programming language in which the code will be generated.
Site Language Specify the spoken language for the site.
Server URL: The HTTP URL to be used to access the published pages.
Secured Server URL Specify the SSL HTTP URL to be used to access the published pages. This option is
only used if you want to access the pages over a SSL connection and the server you are
using supports SSL.
Server Path The file system path where the pages will be published.
Location: Specify whether the generated pages will be published to a local computer or network or
whether they will be published to a remote computer via FTP.
FTP Server The address of the FTP host machine.
FTP Folder The path to the folder in the FTP host machine where the pages will be uploaded.
FTP Login The login name required to access the FTP host machine.
FTP Password The password required to access the FTP host machine.
FTP Server URL The HTTP URL that maps to the location on the FTP host where the pages are
uploaded.
FTP Passive Mode Whether or not the FTP session should use passive mode, for instance if connecting
from behind a firewall.
Default Date Format Select the format in which you want date values to be displayed in the project. If no
selection is made, date values will be displayed in the default database format
Start Page Specify the starting page for your project.
70
Security Type
• None: No site security is implemented
• Table: Security will be based on information contained in a database table
• Database: The inbuilt database security will be used for the site
Login Page Select the project page that will be used to enter authentication details by the users.
Convert URL To Specify whether URLs should be automatically converted to absolute URLs or secure
URLs for the SSL protocol (https://).
User ID Stored As Select the method to be used to store the User ID after a user logs in (Session, URL,
Cookies).
Security Connection Select the connection from where security information will be retrieved.
User Table Select the database table containing user security information.
User ID Field Select the database table field containing the unique ID that identifies the users.
User Login Field Select the database table field containing the login usernames of the users.
User Password Field Select the database table field containing the login passwords of the users.
Level/Group Field If applicable, select the database table field containing the security level of the users.
User ID Variable Enter a name to be used for the user ID variable for a logged in user.
User Login Variable Enter a name to be used for the user login name variable for a logged in user.
User Password Variable Enter a name to be used for the user password variable for a logged in user.
Group ID Variable Enter a name to be used for the group ID variable for a logged in user.
Level Inclusion If this option is selected, users with a higher security level will be able to access pages
designated with a lower security level. Otherwise, an exact match will be needed in order
to access any page.
Character Set CodePage Set the value for the code page used for setting the body of the HTTP request. This can
be necessary when sending data in the body using a character set other than the system
default.
Geographic Local LCID The LCID is a locale identifier that identifies the language in use.
71
Content The type of the content [Text or HTML].
Required [Yes/No] Select 'Yes' if a value must be entered for the control in order for the form to be
submitted successfully.
Unique Yes/No] Select 'Yes' if you want a check to be made to ensure that any value entered in
the control does not already exist in the database.
Error Control Specify the name of a control that will be used to display any error messages pertaining
to the control. If this value is not specified, all error messages are displayed at the top of
the form in which the control is contained..
Validation Rule Specify an expression that will be used to check the validity of the data entered in the
control.
Validation Text Specify the text that will be displayed if the data entered in the control does not meet the
validation rule.
Events
Event Description
Server Side Events
On Validate Occurs after the control value have been submitted to the server and before the
submitted value is used to update any database content. This event is meant to be used
to specify any validation operations that should be run against the submitted value to
ensure that the value is valid. The addErrors method of the form can be used to log an
error if the validation check fails.
Before Show Occurs before the control is rendered to the page. This event can be used to set
template variables placed within the control's HTML block. For instance, the control can
be disabled conditionally.
Before Build Select Occurs before the query used to retrieve the data for the control is built. This event can
be used to modify the data retrieval query e.g. set the value of the where or order by
clause.
Before Execute Select Occurs before the query used to retrieve the data for the control is executed. This event
can be used to modify the entire query before it is executed.
After Execute Select Occurs after the query used to retrieve the data for the control has been executed and
the results of the query have been returrned in a recordset.
Client Side Events
On Click Occurs immediately after the control has been clicked. This event can be used to provide
interactive behavior when the control is clicked.
72
Run-Time Properties (PHP)
Property Description
ComponentType Specifies type of an object, such as "TextBox", "Record", etc.
Parent Specifies parent container of an object, for example a record form for a textbox that is
included within that form.
DataSource This property stores a reference to the data source bound to the radio button. The data
source handles all data retrieval operations.
Errors An object that contains the error messages generated during script execution when
submitted data fails verification or any other user defined condition is not fulfilled.
Visible This property determines whether the component is to be shown or not. Components
can only be hidden if they have Extended HTML generated. To hide the component this
property has to be set to false in some parent component's Before Show event.
Methods (PHP)
Method Description
Model Layer
Property Description
<control name> Contains current value of control.
<control name>Items Collection of control items.
73
for gets data.
strWhere<control name> This variable contains the WHERE clause to be used with the SQL query to
execute for a query object (cfquery tag).
query<control name> This variable contains query object.
See also
Radio Button Overview
74
Allow Update Specify whether the form can be used to update existing data.
Allow Delete Specify whether the form can be used to delete existing data.
Preserve Parameters Specify whether Get or Post parameters should be preserved.
Custom Insert Type If you wish to override the default insert mechanism, select the type of method to be used to
perform the insert operation.
Custom Insert Specify the procedure to be used to insert data.
Custom Update Type If you wish to override the default update mechanism, select the type of method to be used to
perform the update operation.
Custom Update Specify the procedure to be used to update data.
Custom Delete Type If you wish to override the default delete mechanism, select the type of method to be used to
perform the delete operation.
Custom Delete Specify the procedure to be used to delete data.
Events
Event Description
Before Select This event occurs at the onset of the operations performed to select records from the
database.
Before Show This event occurs before a component is rendered to the page.
Before Build Select This event occurs before the creation of the query that will be used to retrieve records from
the database.
Before Execute Select This event occurs immediately before a row selection query is executed but after the query
has been composed.
After Execute Select This event occurs after the row selection query has been executed and a recordset for the
result is returned.
On Validate This event occurs after standard validation operations have been performed as a result of
submitting values, but before any database operations have been performed with the
submitted values.
Before Insert This event occurs at the onset of the operations performed to insert a new record into the
database.
Before Build Insert This event occurs before the creation of the query that will be used to insert a new record
into the database.
Before Execute Insert Occurs directly before executing new row insertion query, after all its components have been
prepared.
After Execute Insert This event occurs after new row insert query has been executed.
After Insert This event occurs after inserting a new row into data source, but before error processing.
Before Update This event occurs before preparing to update an existing record.
Before Build Update This event occurs before the creation of the query that will be used to update database
content.
Before Execute Update This event occurs immediately before a row update query is executed but after the query
has been composed.
After Execute Update This event occurs after a row update query has been executed.
After Update This event occurs after updating an existing row in the data source, but before error
processing.
Before Delete This event occurs before preparing for a row deletion.
Before Build Delete This event occurs before the creation of the query that will be used to deleted a database
record.
Before Execute Delete This event occurs immediately before a row deletion query is executed but after the query
has been composed.
75
After Execute Delete This event occurs after a row deletion query has been executed.
After Delete This event occurs after deleting a row from the data source, but before error processing.
76
within that form.
DataSource This property stores a reference to the data source bound to the form. The data source handles all
data retrieval and update operations. It serves as an abstraction layer that hides underlying data
source details, whether it is a database table, SQL query or stored procedure.
DeleteAllowed This property determines whether the delete operation should proceed or not. The value of this
property is set automatically based on the value of the Restricted property of the form. If the
Restricted property is set to No, the value of this property is always True unless it is modified
using event code in the Before Delete event.
EditMode This property specifies the mode in which a form currently is in. A form can either be in Insert mode
or Edit mode.
Errors This property keeps a reference to the form's error collection. It is used to collect error messages
generated during the form’s execution.
FormSubmitted This property determines how a form is processed based on whether the form is being shown for
the first time or has been submitted for postback. In the initial display, the form fields are assigned
data values before being displayed. Otherwise if the form has been submitted for postback, the
submitted data is processed based on the operation that was initiated upon submission.
InsertAllowed This property determines whether the insert operation can proceed or not.
PressedButton This property contains the name of the form submit button which was clicked to initiate postback.
ReadAllowed This property determines whether the data read operation can proceed or not.
UpdateAllowed This is a boolean property whose value determines whether the update operation should proceed
or not. The value of this property is set automatically based on the value of the Restricted property
of the form. If the Restricted property is set to No, the value of this property is always True unless
it is modified using event code in the Before Update event.
Visible This property determines whether the form is to be shown or not.
77
operation should proceed or not. The value of this variable is set automatically
based on the value of the Restricted property of the form. If the Restricted
property is set to No, the value of this property is always True unless it is
modified using event code in the Before Update event.
hide<control name> This variable determines whether the control is to be shown or not.
strError<control name> This variable contains any error messages generated during execution of the
form.
strOperation This variable indicates the operation to be performed based on the value of the
submit button that was clicked to initiate postback.
strPressedButton This variable contains the name of the form submit button which was clicked to
initiate postback.
strSQL This variable contains the main portion of the SQL query used to retrieve the
records displayed within the form. In terms of SQL, this property defines the
SELECT and FROM clauses of the SQL query.
strOrder<control name> This variable contains the ORDER BY clause to be used in the SQL query
executed for a query object (cfquery tag).
strSQL<control name> This variable contains the SELECT and FROM clauses of the SQL query to be
used for a query object (cfquery tag).
strWhere<control name> This variable contains the WHERE clause of the SQL query to be used for a
query object (cfquery tag).
query<control name> This variable contains the query object associated with the form.
endOperation<control name> This property determines whether or not the Insert, Update or Delete operation
should proceed depending on the used BeforeExecuteInsert,
BeforeExecuteUpdate or BeforeExecuteDelete event.
78
getCheckBoxList Specify a name to find a Checkbox List control among the collection of children controls.
getLink Specify a name to find a Link control among the collection of children controls.
getDatePicker Specify a name to find a Date Picker control among the collection of children controls.
isVisible Returns a value indicating whether this control should be displayed or not.
setVisible Specify whether the form should be shown or not.
isCmdExecution Returns a value indicating whether the operation should proceed or not.
setCmdExecution Specify whether the operation should be performed or not.
getParent Get the parent component that contains the form.
Methods (.NET)
Record Model Layer
Method Description
CreateFromHttpRequest Returns an instance of an item whereby the values are initialized from Http request values.
Validate Performs the item validation and returns true if validation is successful, otherwise false.
79
FillItem Execute a query against the database and return the results in an items array.
See also
Record Form Overview
Report Reference
Design-Time Properties
Property Description
Name The name of the form.
Connection The database connection from which information will be retrieved.
Data Source Type The type of data source or the method used to retrieve the data.
Data Source The database column, SQL Query or other expression from where the data will be
retrieved.
Groups Report groups that is used to manage repeating values and totals.
Restricted Specify whether users must be logged in before accessing the form.
Lines per Web Page The size of page in the Web show mode, measured in lines.
Page Size Limit The maximum number of lines per page for Web view mode.
Enable Print Mode Specify whether print mode can be enabled in runtime.
Lines per Print Page The size of page in the Print view mode, measured in lines.
Default View Mode Specify the default view mode, which will be used for report.
Events
Event Description
Server Side Events
Before Select This event occurs at the onset of the operations performed to select records from the
database.
Before Show This event occurs before a component is rendered to the page.
Before Build Select This event occurs before the creation of the query that will be used to retrieve records
from the database.
Before Execute Select This event occurs immediately before a row selection query is executed but after the
query has been composed.
After Execute Select This event occurs after the row selection query has been executed and a recordset for
the result is returned.
80
Property Description
DataSource.SQL This property contains the main portion of the SQL query used to retrieve the records
displayed within the form. In terms of SQL, this property defines the SELECT and FROM
clauses of the SQL query.
DataSource.Where This property contains the WHERE clause portion of the SQL query used to retrieve
records for the form. The WHERE clause provides the criteria which filters the records
retrieved. The value of this property is appended to the value of the DataSource.SQL
property to create the final SQL query which is executed against the datasource to
retrieve the records for the form.
81
TotalPages Gets the number of pages in current report.
PageSizeLimit Gets or sets the page size limit for print mode of report.
PageSize Gets or sets the page size for the print mode of report.
PreviewPageNumber Gets or sets the page number for the web mode.
RowNumber Gets the current row number of report.
ViewMode Gets or sets the view mode of report.
WebPageSize Gets or sets the page size for the web mode of report.
82
isDetailControl Returns true if the specified control belongs to Detail row (Detail section); otherwise -
false
isEnablePrintMode Returns true if print view mode is enabled for report component; otherwise - false
setEnablePrintMode Sets enablePrintMode value
getPageSizeLimit Returns int value of page size limit if viewMode is Report.VIEW_MODE_WEB; otherwise
returns zero. Zero means that all records should be displayed. PageSizeLimit is applied
to web mode only.
setPageSizeLimit Sets maximal allowed size of the Report page in the web view mode
getSection Get section with given name.
getPage Get the current page being shown in the Report.
setPage Set the page number to be shown in the Report.
getNumberOfRows Get the total number of rows in the Report.
getNavigator Use a name to find the Navigator among the collection of children controls.
getSorter Use a name to find a Sorter among the collection of children controls.
getPageSize Get number of records per page.
setPageSize Set number of records per page.
isAllowRead Returns a value indicating whether the data read operation can proceed or not.
setAllowRead Use to toggle the value which determines whether the data read operations can proceed
or not.
isRestricted Returns a value indicating whether users must be logged in before accessing the form.
setRestricted Specify whether users must be logged in before accessing the form.
getPageModel Get the page to which the component belongs.
isProcessed Indicates whether a component has been processed (the ccsForm parameter is
equivalent to the name of the component).
hasNextRow Returns true if there are more elements in a collection.
getChild Specify a name to find a child control among the collection of children controls.
getChildren Return all children controls of a collection.
getControl Specify a name to find a Control among the collection of controls.
getFileUpload Specify a name to find a FileUpload control among the collection of children controls.
getButton Specify a name to find a Button control among the collection of children controls.
getListBox Specify a name to find a Listbox control among the collection of children controls.
getRadioButton Specify a name to find a Radiobutton control among the collection of children controls.
getCheckBoxList Specify a name to find a Checkbox List control among the collection of children controls.
getLink Specify a name to find a Link control among the collection of children controls.
getDatePicker Specify a name to find a Date Picker control among the collection of children controls.
isVisible Returns a value indicating whether this control should be displayed or not.
setVisible Specify whether the form should be shown or not.
getParent Get the parent component that contains the form.
See also
Report Form
Report Section
Report Section Reference
Report Label Reference
83
Report Label Reference
Design-Time Properties
Property Description
Name The name of the control.
Control Source Type The type of data source that will provide data for the control: Database Column, Code
Expression, Special Value.
Control Source Specify the source of data for the control e.g. the name of a database column.
Data Type The type of data that will be contained in the control.
Format Depending on the Data Type property, select the format of the data that will be contained
in the control.
Text if Empty Text to display, when the label's value is empty
Content Specify whether the content of the control is plain text or HTML code.
DBFormat Specify the format in which you want the control value to be entered into the database.
Hide Duplicates Specify if the duplicated values will be shown.
Function Function to be used if the value is to be auto-calculated
Reset At Specify the group name, where value of control should be reseted
Percent Of Specify the dispalying of value as percentage of total value
Events
Event Description
Server Side Events
Before Show Occurs before the control is rendered to the page. This event can be used to change the
value of the control.
Methods (PHP)
Method Description
84
GetValue Retrieves the value of the Label control.
SetValue Sets the value of the Label control.
Reset Reset value of the total function.
Model Layer
Property Description
<control name> Contains the current value of the control.
85
getPage Get the page that contains this control.
getFormattedValue Get the value formatted according to the control format.
setFormattedValue Use a String to set the control value. The value is taken as is i.e. formatting will not be
applied to this value.
getValue Retrieves the value of the control without any formatting applied to it.
setValue This method sets the value of the control.
hasErrors Indicates whether the control has (validation) errors.
addError Add an error description to the errors collection.
getErrorsAsString Return a single String with all the error messages separated by <br> tags.
isVisible Indicates whether this control should be shown or not.
setVisible Specify whether this control or component should be shown or not.
getParent Get the parent component that contains this control.
isHtmlEncode Whether to encode control value before it is shown (so that html tags it may contain will
be shown as is).
setHtmlEncode Set whether to encode control value before it is shown (so that html tags it may contain
will be shown as is).
See also
Report Form
Report Sections
Report Section Reference
Events
Event Description
86
Run-Time Properties (PHP)
Property Description
ComponentType Specifies type of an object, such as "TextBox", "Record", etc.
Parent Specifies parent container of an object, for example a record form for a textbox that is
included within that form.
Visible This property determines whether the control will be shown or not.
Height Specify height of section.
See also
Report Form
Report Sections
Report Label Reference
Sorter Reference
Design-Time Properties
Setting Description
Name The name of the form.
Sort Order Specify the field to be used to sort by.
Reverse Order Optionally specify a field to be used to sort in the reverse order.
Visible [Yes/No] Specify whether the sorter should be displayed or not.
Events
Event Description
Server Side Events
Before Show Occurs before the control is rendered to the page. This event can be used to influence
the appearance of the Sorter.
87
Run-Time Properties (ASP)
Property Description
Visible This property determines whether the control is visible or not.
See also
Sorter Overview
88
Format Depending on the Data Type property, select the format of the data that will be contained
in the control.
Default Value Specify a default value to be used for the control if no value is otherwise specified.
Required [Yes/No] Select 'Yes' if a value must be entered for the control in order for the form to be
submitted successfully.
Unique [Yes/No] Select 'Yes' if you want a check to be made to ensure that any value entered in
the control does not already exist in the database.
Input Validation Select a regular expression to be used to check the validity of the data entered in the
control.
Error Control Specify the name of a control that will be used to display any error messages pertaining
to the control. If this value is not specified, all error messages are displayed at the top of
the form in which the control is contained.
Validation Rule Specify an expression that will be used to check the validity of the data entered in the
control.
Validation Text Specify the text that will be displayed if the data entered in the control does not meet the
validation rule.
DBFormat Specify the format in which you want the control value to be entered into the database.
Events
Event Description
Server Side Events
On Validate Occurs after the control value have been submitted to the server and before the
submitted value is used to update any database content. This event is meant to be used
to specify any validation operations that should be run against the submitted value to
ensure that the value is valid. The addErrors method of the form can be used to log an
error if the validation check fails.
Before Show Occurs before the control is rendered to the page. This event can be used to influence
the visibility or appearance of the control or alter the value of the control.
Client Side Events
On Key Press Occurs when the user presses an alphanumeric key within the control.
On Load Occurs after the control has been rendered to the page and before the user can perform
any operations. This event can be used to bind validation rules to the control.
On Change Occurs when the value of the control is changed.
89
Format This property specifies a format to be applied to the value of the control.
Visible This property determines whether the component is to be shown or not.
Model Layer
Property Description
<control name> Contains the current value of the control.
Methods (PHP)
Method Description
GetValue Retrieves the value of the control.
SetValue Sets the value for the control.
See also
Text Area Overview
90
Text Box Reference
Design-Time Properties
Property Description
Name The name of the control.
Visible Specify whether the control should be displayed or not.
Caption The name used to refer to the control in an error message.
Control Source Type The type of data source that will provide data for the control: Database Column,
Database Expression, Code Expression.
Control Source Specify the source of data for the control e.g. the name of a database column.
Data Type The type of data that will be contained in the control.
Format Depending on the Data Type property, select the format of the data that will be contained
in the control.
Default Value Specify a default value to be used for the control if no value is otherwise specified.
Required [Yes/No] Select ‘Yes’ if a value must be entered for the control in order for the form to be
submitted successfully.
Unique [Yes/No] Select ‘Yes’ if you want a check to be made to ensure that any value entered in
the control does not already exist in the database.
Input Validation Select or enter a regular expression to be used to check the validity of the data entered
in the control.
Error Control Specify the name of a control that will be used to display any error messages pertaining
to the control. If this value is not specified, all error messages are displayed at the top of
the form in which the control is contained.
Validation Rule Specify an expression that will be used to check the validity of the data entered in the
control.
Validation Text Specify the text that will be displayed if the data entered in the control does not satisfy
the validation rule.
DBFormat Specify the format in which you want the control value to be entered into the database.
Events
Event Description
Server Side Events
On Validate Occurs after the control value has been submitted to the server and before the submitted
value is used to update any database content. This event is meant to be used to specify
any validation operations that should be run against the submitted value to ensure that
the value is valid. The addErrors method of the form can be used to log an error if the
validation check fails.
Before Show Occurs before the control is rendered to the page. This event can be used to influence
the visibility or appearance of the control or alter the value of the control.
Client Side Events
On Key Press Occurs when the user presses an alphanumeric key within the control.
On Load Occurs after the control has been rendered to the page and before the user can perform
any operations. This event can be used to bind validation rules to the control.
On Change Occurs when the value of the control is changed.
91
submitted data fails verification or any other user defined condition is not fulfilled.
Format This property specifies a format to be applied to the value of the control.
Visible This property determines whether the component is to be shown or not.
Value Holds the value of the control.
Model Layer
Property Description
<control name> Contains the current value of the control.
Methods (PHP)
Method Description
GetValue Retrieves the value of the Text Box control.
SetValue Sets the value for the Text Box control.
92
addError Add an error description to the errors collection.
getErrorsAsString Return a single String with all the error messages separated by <br> tags.
isVisible Indicates whether this control should be shown.
setVisible Specify whether this control should be shown.
getParent Get the parent component that contains this control.
See also
Text Box Overview
Properties
A-C
Applies to
.NET Projects
Description
This property can be used to specify whether the debug option should be added to the compiler. Valid values are as
follows:
• Debug: Disables optimizations and enables attaching a debugger to the running program.
• Release: Enables optimizations and emits general debugging information.
Applies to
Page
Description
This property specifies the page used instead of Login Page for the unauthorized users.
Important: The value of this property is applied only if the value of the Restricted property is set to 'Yes'.
See also
Restricted property
93
Aliases Property
Specify if the display of database aliases is enabled during the design time.
Applies to
Connection
Description
You can use this property to specify if the display of database aliases is enabled during the design time.
See Also
Connection Reference, Connecting to Databases
Applies to
Record, Editable Grid
Description
You can set this property value to 'No' to disallow the insertion of new records using the Record or Editable Grid. The
value of this property is set to 'Yes', if the Record was created using the Record Builder, and 'Allow Insert' checkbox
was checked on the 'Define Record Option' page of the Record Builder.
See also
Allow Delete property, Allow Update property
Applies to
Record, Editable Grid
Description
You can set this property value to 'No' to disallow update the records using the Record or Editable Grid. The value of
this property is set to 'Yes', if the Record is placed on the page using the Record Builder, and 'Allow Update' box is
checked on 'Define Record Option' page of the Record Builder.
See also
Allow Delete property, Allow Insert property
94
Allow Delete Property
Specify if the records be deleted with this form.
Applies to
Record, Editable Grid
Description
You can set this property value to 'No' to disallow the deletion of records using the Record or Editable Grid. The value
of this property if set to 'Yes', if the Record is place on page by clicking on the Record Builder, and 'Allow Delete'
checkbox is checked on the 'Define Record Option' page of the Record Builder.
See also
Allow Insert property, Allow Update property
Applies to
File Upload
Description
The property contains the semicolon-separated list of file masks for files that the user is allowed to upload e.g. *.jpg;
*.png; *.gif; *.txt. By default, this property contains the "*" mask, i.e. all files are allowed.
See also
Disallowed File Masks property
Assemblies Property
Specify the semicolon-separated list of the used assemblies.
Applies to
.NET Projects
Description
You can use this property to specify the semicolon-separated list of the assemblies linked to the project.
95
Applies to
Checkbox List, List Box, Radio Button
Description
If the Source Type property is set to Table/View, Procedure or SQL, use this property to specify the database field
that will provide the List Box or Radio Button values to be submitted.
See also
Text Column property, Data Source Type property, Data Source property
Applies to
Connection
Description
You can use this property to specify the boolean format of the data as it will appear in the database.
See Also
Connection Reference, Connecting to Databases, DBFormat property
Caption Property
The name used to refer to the control in an error message.
Applies to
Hidden, List Box, Checkbox List, Radio Button, Text Area, Text Box
Description
This property is present in all form controls that are capable of submitting form values. If after submission it is
determined that the control submitted an invalid value, an error message is displayed to indicate the problem. You
can use this property to set a name that will be used to refer to the control within the error message.
If a value is not specified for this control, the value of the Name property above is used by default. However, since
control names are often cryptic by nature, it is advisable to set a more readable caption which will better help the user
understand what the error message is referring to.
Catalog Property
Specify the Catalog for the database object display during the design time.
Applies to
Connection
96
Description
You can use this property to specify the Catalog for the database object display during the design time. It is used for
MSSQL databases.
See Also
Connection Reference, Connecting to Databases
Applies to
Directory
Description
Specify the data field that contains category id of the first level categories.
See also
Data Source property, Subcategory ID Field property
Charset Property
Specify the name of the character set.
Applies to
ASP, PHP Projects
Description
Charset project property is used to define the response encoding to be used by the programs. Charset is deprecated
starting with CCS 2.3 and will be removed in the next product release. When possible, set Charset property to empty
(blank) and Use the 'Default HTML Encoding' project setting and META declarations within HTML pages instead.
Applies to
Checkbox
Description
The default HTML checkbox always submits a value of 'on' when the checkbox is checked. This property allows you
to specify a different value to be associated with the checked state of the checkbox.
97
Examples
The Checkbox can be linked to a database field of the "Text" type which stores "Yes" and "No" values. To do that set
the DataType property to "Text", and enter "Yes" for the Checked Value Property and "No" for the Unchecked Value
property obligatory in double quotes.
The following are the possible applications:
See also
DataType property, Unchecked Value property
Applies to
Java Projects
Description
You can use this property to specify the list of libraries required for the project compilation. By default, if this property
is blank, the value of the %CLASSPATH% environment variable is used otherwise the value is added to the
classpath for the compilation.
Class Path requirements:
JSP
• Servlet 2.2 & JSP 1.1 API library
• JAXP 1.0 library
• SAX 2.0 parser (such as crimson or xerces)
• JDBC 2.0 extensions library if you use Data Sources Extension
• Jakarta ORO if you use regexp for validations
Servlets with Templates
• Servlet 2.2 API library
• JDBC 2.0 extensions library if you want to use Data Sources Extension
• Jakarta ORO if you use regexp for validations
See Also
Use Data Source Extension property
Applies to
Project
98
Description
You can use this property to specify the programming language in which the project will be generated. You can
always select other programming language for your, and all the project code will be regenerated in the new
programming language besides the custom code of the events or properties.
Applies to
ASP Projects
Description
CodePage project property is deprecated starting with CCS 2.3, and will be removed in the next product release. Use
the 'File Encoding' project setting instead.
See Also
Locale Identifier property
Applies to
ColdFusion Projects
Description
You can use this property to specify the type of the ColdFusion Server. This property can take the following values:
Value Description
CF 4.01 Specify if the ColdFusion Server version 4.01 is to be used
prior to CFMX Specify if the used ColdFusion Server version is higher than 4.01 but lower than CFMX
CFMX Specify if the ColdFusion MX Server is to be used
Applies to
Connection
Description
You can use this property to specify the connection cached option. The Connection Cached option is similar to an
ordinary Connection, except that the returned database handle is also stored in a hash associated with the given
99
parameters. If another call is made to connect_cached (the cached connection) with the same parameter values,
then the corresponding cached $dbh (database handle) will be returned if it is still valid. The cached database handle
is replaced with a new connection if it has been disconnected or if the ping method fails.
See Also
Connection Reference, Connecting to Databases
Connection Property
The database connection from where information will be retrieved.
Applies to
Checkbox List, Directory, Editable Grid, Grid, List Box, Radio Button, Record, Report, Path
Description:
You can use this property to specify a connection for retrieving control's data. You should specify the value of this
property even if only one connection is used in the project.
A List Box and Radio Button control are capable of containing values that are based on any existing connections
within the project. A connection can be from the Record's one. For this reason, this property allows you to select the
connection from where the List Box values will be retrieved.
See also:
Connection Reference, Connecting to Databases,
Applies to
Connection
Description
You can use this property to specify ADO connection string or ODBC Data Source Name used for the database
connection.
See Also
Connection Reference, Connecting to Databases, Connection Type property
Applies to
Connection
100
Description
You can use this property to specify the connection type which will be used, "Connection string" or "ODBC Data
Source".
See Also
Connection Reference, Connecting to Databases, Connection String property
Content Property
The type of the content.
Applies to
Checkbox List, Label, Label (Report), Link, Radio Button
Description
The following are the Data options of the Content Property:
Setting Description
Text The control value is composed of plain text. All HTML tags are converted into the corresponding escape
(default) (ESC) sequences. For example, ">" is converted into ">".
Important: If the sourse text contains the line break symbol then it is converted into the "<br>" HTML tag.
HTML The control value is composed of HTML markup. The source text is displayed without converting. If the
source text contains the HTML tags, then they are dispayed by the browser as normal HTML.
Examples:
This following is an example of the Label outputs:
Applies to
Java Projects
Description
You can use this property to specify the context path (including the leading slash) of the web application you are
dealing with. It is used only if the target server is Tomcat.
See Also
Target Server property
101
Control Source Property
Specify the source of data for the control e.g. the name of a database column.
Applies to
Checkbox, Checkbox List, File Upload, Hidden, Image, Image Link, Label, Link, List Box, Radio Button, Text Area,
Text Box
Description
This property depends on the value specified in the Source Type property. If the Source Type is a Database Column,
use this property to specify the database table column that will be used to furnish the control value. Respectively, if
the Source Type is a Code Expression, enter the exact code expression to be used to furnish the control value.
In the case of an image, the value of this property should be the path to an image file. The path can be a relative URL
depending on where the pages will be published or it can be an HTTP URL.
See Also
Control Source Type property
Applies to
Label (Report)
Description
This property depends on the value specified in the Source Type property. If the Source Type is a Database Column,
use this property to specify the database table column that will be used to furnish the control value. Respectively, if
the Source Type is a Code Expression, enter the exact code expression to be used to furnish the control value.
Control Source
Description Examples
Type
Database Column
Code Expression
• 1 assigns the value "1" to the control.
• now() assigns the current date and time to the control value.
See Also
• Control Source Type property
• Using Special Values example
102
Applies to
Checkbox, Checkbox List, File Upload, Hidden, Image, Image Link, Label, Link, List Box, Radio Button, Text Area,
Text Box
Description
The type of data source from which the control gets its value. This can be one of the following:
Setting Description
Database Column The control value will come from a column within a database table.
(default)
Database The control value will come from a database expression such as an SQL statement or stored
Expression procedure.
Code Expression The control value will be derived from an expression specific to the particular programming
language being used. This could be a function that returns a value, a pre-existing variable or any
other valid language construct that will evaluate to a definite value.
See Also
Control Source property, Data Source property
Applies to
Label (Report)
Description
This property depends on the value specified in the Source Type property. If the Source Type is a Database Column,
use this property to specify the database table column that will be used to furnish the control value. Respectively, if
the Source Type is a Code Expression, enter the exact code expression to be used to furnish the control value.
Control Source
Description Examples
Type
Database Column
Code Expression
• 1 assigns the value "1" to the control.
• now() assigns the current date and time to the control value.
See Also
• Control Source Type property
• Using Special Values example
103
Applies to
Button, Editable Grid, Image Link, Link, Record
Description
The following are the possible value:
Setting Description
None The URL is not converted.
(default)
Absolute The URL is converted into the absolute URL based on 'Server URL' set in the Project Settings.
SSL The URL is converted into the SSL based on 'Server URL' set in the Project Settings.
Example
For example, the page has a name name = 'my_page.asp', and 'Server URL' is set as
'www.domain.com/my_project/'.
Setting Result after conversion
None <a href='my_page.asp'>
Absolute <a href='http://www.domain.com/my_project/my_page.asp'>
SSL <a href='https://www.domain.com/my_project/my_page.asp'>
Control Property
Specify the name of a control to be used for return of the selected date.
Applies to
Date Picker
Description
Specify the name of a control, usually the Text Box in which the selected date of the Date picker is returned. The date
for this control will be returned in the format set in the Format property. If the Format property is not defined then the
date is returned in the format set in the Default Date Format property for the project.
Important: The Text Box used as a control should be obligatory placed inside the Record or Editable Grid, in which
the Date Picker is located.
See Also
Format property, Default Date Format property
Control Properties
This section examines the properties for the various controls found under the Control tab of the Toolbox. Many of
the Controls share similar properties and the tale below presents all the possible properties in alphabetic order. The
third column indicates the controls that possess the property.
104
Column refers to the data source for the values that are submitted.
Caption The name used to refer to the control in an error message. TextBox,
TextArea,
ListBox,
RadioButton,
Hidden
Checked The value submitted by a Checkbox Control when it is checked. Checkbox
Value
Column For a Sorter control, this specifies the Grid column that the sorter applies. Sorter
Connection The database connection from where information will be retrieved. ListBox,
RadioButton
Control Specify the source of data for the control e.g. the name of a database column TextBox,
Source TextArea,
ListBox,
Checkbox,
RadioButton,
Label,
Image,
Hidden,
Link,
ImageLink
Convert URL Specify whether the URL should be converted to an absolute URL or a secure Button,
To (https://) URL. ImageLink,
Link
Data Type The type of data that will be contained in the control: TextBox,
TextArea,
• Text
Checkbox,
• Integer RadioButton,
ListBox,
• Float
Label,
• Date Hidden,
Link,
• Boolean ImageLink
• Memo
DBFormat Specify the format in which you want the control value to be entered into the TextBox,
database e.g. the user may enter a date value in one format but you want it to be TextArea,
entered into the database in a different format. Label,
Hidden
Default Button [Yes/No] If you select ‘Yes' the button will be the default button on the form so that Button
clicking on the Enter key will be equivalent to clicking on the button.
Default Specify a default value to be used for the control if no value is otherwise specified. TextBox,
[Value] TextArea,
Checkbox,
RadioButton,
ListBox,
Label,
Image,
Hidden,
Link,
ImageLink
Enable [Yes/No] Specify whether validation should be enabled when the button is clicked. Button
Validation
Error Control Specify the name of a control that will be used to display any error messages TextBox,
pertaining to the TextArea,
Checkbox,
RadioButton,
ListBox,
Hidden
Format Depending on the Data Type property, select the format of the data to be contained TextBox,
in the control. TextArea,
Label,
105
Hidden,
Link,
ImageLink
Href Source The page path, database column or other expression containing the URL of the ImageLink
hyperlink.
Href Type The type of source where the URL value will come from. ImageLink,
Link
Content [Text/HTML] If 'Text' is selected, All HTML tags are converted into the Checkbox List,
corresponding escape (ESC) sequences. For example, ">" is converted into ">". Label,
Link,
If 'HTML' is selected, the control value will not be converted to text before being
Radio Button
displayed. As such, if the value is HTML markup, it will be appear as regular HTML
markup on the page.
Input Select a regular expression to be used to check the validity of the data entered in TextBox,
Verification the control. Hidden
List Data Specify the actual source of data for the list of values depending on the List Source ListBox,
Source Type. RadioButton
List Source Specify the type of source of data for the list of values to be shown in the control ListBox,
Type e.g. the name of a database column. RadioButton
Name The name of the control. ALL
Operation The type of operation performed when the button is clicked [Insert, Update, Delete, Button
Cancel or Search]
Page Links Specify the number of page links to be shown on the Navigator. The default is 10. Navigator
Preserve Specify whether GET or Post parameters should be preserved. ImageLink,
Parameters Link
Remove Specify a semicolon-separated list of parameters that should be removed from the ImageLink,
Parameters hyperlink. Link
Required [Yes/No] Select ‘Yes' if a value must be entered for the control in order for the form TextBox,
to be submitted successfully. TextArea,
RadioButton,
ListBox
Return Page Specify the page where the user should be directed after the button operation has Button
been performed.
Source Type The type of data source that will provide data for the control: TextBox,
TextArea,
• Database Column
ListBox,
• Database Expression Checkbox,
RadioButton,
• Code Expression
Label,
Image,
Hidden,
Link,
ImageLink
Href Source This opens the Href Source window where you can specify the page to be linked Link
to as well as any parameters that should be transmitted via the URL.
Text Column Each option in a ListBox or RadioButton control is represented by a pair of values Listbox,
whereby one value is displayed to the user and another is submitted. Text Column RadioButton
refers to the data source for the values that are displayed.
Type Select the type of page links to be shown in the Navigator control. Navigator
Unchecked The value submitted by a Checkbox Control when it is unchecked. Checkbox
Value
Unique [Yes/No] Select ‘Yes' if you want a check to be made to ensure that any value TextBox,
entered in the control does not already exist in the database. TextArea,
RadioButton,
ListBox,
Hidden
Validation Specify an expression that will be used to check the validity of the data entered in TextBox,
Rule the control. TextArea,
106
Checkbox,
RadioButton,
ListBox,
Hidden
Validation Specify the text that will be displayed if the data entered in the control does not TextBox,
Text meet the validation rule. TextArea,
Checkbox,
RadioButton,
ListBox,
Hidden
Applies to
.NET Projects
Description
Specify whether CCS will automatically create IIS Application during publishing.
Applies to
Record, Editable Grid
Description
Clicking on this property opens the Custom Delete window where you can specify the table, enter the procedure with
required parameters or SQL statement based on the Custom Delete Type property used to perform the Delete
operation.
See Also
Custom Delete Type property
Applies to
Record, Editable Grid
Description
If you wish to override the default delete mechanism, you can specify the type of method to be used to perform the
delete operation.
107
The list of available types:
• Table
• Procedure
• SQL
Important: If you set any value in this property you should specify the Custom Delete property, otherwise the Delete
operation will not be performed.
See Also
Custom Delete property
Applies to
Record, Editable Grid
Description
Clicking on this property opens the Custom Insert window where you can specify the table, enter the procedure with
required parameters or SQL statement based on the Custom Insert Type property used to perform the Insert
operation.
See Also
Custom Insert Type property
Applies to
Record, Editable Grid
Description
If you wish to override the default insert mechanism, you can specify the type of method to be used to perform the
Insert operation.
The list of available types:
• Table
• Procedure
• SQL
Important: If you set any value for this property you should also set the Custom Insert property, otherwise the Insert
operation will not be performed.
See Also
Custom Insert property
108
Custom Update Property
Specify the procedure to be used to update data.
Applies to
Record, Editable Grid
Description
Clicking on this property opens the Custom Update window where you can specify the table, enter the procedure with
required parameters or SQL statement based on the Custom Update Type property used to perform the Update
operation.
See Also
Custom Update Type property
Applies to
Record, Editable Grid
Description
If you wish to override the default update mechanism, you can specify the type of method to be used to perform the
Update operation for this property.
The list of available types:
• Table
• Procedure
• SQL
Important: If you set any value for this property the Custom Update property should be also set, otherwise the
Update operation will not be performed.
See Also
Custom Update property
D-I
Applies to
Checkbox List, Directory, Editable Grid, Grid, List Box, Record, Report, Path, Radio Button
109
Description
This property depends on the selection made in the Source Type property. If you selected a Table/View, use this
property to specify the table or view from where the List Box values will be retrieved. If you selected a Procedure,
specify the procedure to be used and likewise if you selected SQL, enter the SQL statement. Lastly, if you selected
ListOfValues, enter the semicolon delimited list of pairs.
See Also
Data Source Type property, Text Column property, Bound Column property
Applies to
Checkbox List, Directory, Editable Grid, Grid, List Box, Record, Radio Button, Path
Description
The type of data source from which the control gets its value. This can be one of the following:
Setting Description
Table/View This is the most common method whereby the values come from a database table.
(default)
Procedure This option allows you to specify a procedure to be used to provide the values.
Bear in mind that List Box values come in pairs.The first value is the value submitted by the
control and the second is the value displayed to the user.
SQL With this option you can specify an SQL query to be used to provide the value.
Again, bear in mind that List Box values come in pairs.
ListOfValues This option allows you to specify a static set of values for the List Box. The values should be in
(for the List Box and a semicolon delimited list of the form. The first value is the value that would be submitted by
Radio Button only) the control while the second would be displayed e.g. 1;Yes;2;No;3;Neutral.
See Also
Data Type property, Data Source property, Text Column property, Bound Column property
Applies to
Checkbox, Checkbox List, Hidden, Image, Image Link, Label, Label(Report), Link, List Box, Radio Button, Text Area,
Text Box
Description
Specify the type of data that will be contained in the control:
• Text
• Integer
• Float
• Date
110
• Boolean
• Memo
Since Text Area fields are often used in conjunction with database fields that contain large amounts of data such as
MS Access Memo fields, the Data Type property is usually set to 'Memo' instead of 'Text' to accommodate the special
requirements of dealing with large amounts of data.
See Also
Format property, DBFormat property
Applies to
Connection
Description
You can use this property to specify the pointing URL to the database to which the connection is established (e.g.,
jdbc.odbc:intranet).
See Also
Connection Reference, Connecting to Databases
Applies to
Calendar
Description
You can use this property to specify the database format of the field containing event date.
See also
• Date Field property
• Time DB Format property
Applies to
Calendar
111
Description
You can use this property to specify the field containing event date. This field must contain valid date value and it
cannot be NULL. Date can be full date (date and time) or only date. In the latter case you also need to specify the
Time Field property).
See also
• Date DB Format property
• Time Field property
Applies to
Connection
Description
You can use this property to specify the format of the data as it appears in the database for the whole project. Some
databases such as MySQL and PostgreSQL are particular about the format used, so this property should be set to
correspond to the format of the value as contained within the database.
Note:
You can redefine the date format for controls using the DBFormat property.
See Also
Connection Reference, Connecting to Databases, Date/Time Format property, DBFormat property
DBFormat Property
Specify the format in which you want the control value to be entered into the database.
Applies to
Hidden, Image, Image Link, Label, Label (Report), Link, Text Area, Text Box
Description
This property specifies the format of the data as it appears in the database. The DBFormat property determines the
format that will be used to extract as well as place the control value into the database. Some databases such as
MySQL and PostgreSQL are particular about the format used so this property should be set to correspond to the
format of the value as contained within the database.
Note: The Format property can be used to display the control value in a format different from the database format.
See also:
Data Type property, Format property
112
Applies to
Project
Description
You can use this property to select the format in which you want boolean values to be displayed in the project.
Applies to
Button
Description
If you select 'Yes' the button will be the default button on the form so that clicking on the Enter key will be equivalent
to clicking on the button. This property is applicable if you use the Microsoft Internet Explorer and if there is only one
field on the form that could be associated with the Enter key hit. This property can be also used if the form is
submitted by the DHTML method form.submit().
Applies to
Project
Description
You can use this property to select the format in which you want date values to be displayed in the project. If the
Default Date Format is not specified, the standard mechanism of the programming language is applied to convert the
date to string. The results can differ depending on the used language pattern and local settings.
Applies to
Checkbox Checkbox List, Hidden, Image, Label, Link, Image Link, List Box, Radio Button, Text Area, Text Box
Description
If specified, the default value will be assigned to the control in case the Control Source property does not yield any
value. The default property can be a literal such as a string e.g. "Default Value" or it could be a numeral as an integer
or it could be a language function e.g. functionName(). The Default Value is a Code Expression returning a value of
the corresponding type (Text -> String, Integer -> Int, Long, etc.) or being brought to a certain type.
Important: If the value of the Data Type property is set to "Text" or "Memo" the value of Default Value property
should be entered in double quotes, besides the cases of using the language function.
113
The following are the possible values:
See Also
Control Source property, Data Type property
Applies to
Report
Description
The Report component supports two display modes: Print and Web. In Web mode the report contains navigation links
or buttons that users can click to navigate through multiple report pages. In Print mode all report pages are shown at
once in the Web browser, however, report pages are separated by invisible page break tags that result in page
breaks between printed pages when a user prints the report.
Applies to
Editable Grid
Description
You can use this property to specify the control value used as a deletion indicator for the rows of the Editable Grid.
When the Editable Grid is submitted all rows for which the control value is not empty will be deleted. Checkbox or
hidden can be used as the Delete control. This property is not required. If the value of this property is not set, the
DELETE operation is not performed. The Delete Control is shown only if rows with records exist.
Applies to
Java Projects
114
Description
You can use this property to specify how the application will published to the folder. It has the following two options:
• "as war file" - the standard WAR will be generated. This options works almost with all modern application
servers and handy with auto-deployment feature of several servers (see deployment scenarios below).
• "unpacked" - the application will be published to folder unpacked. This option is helpful for changes in one
JSP page and its quick publish (when only one page is published). Some older servers (that do not support WAR
archive files) may need this options too.
Applies to
Connection
Description
You can use this property to specify the type of a database which is being accessed during design time. If your
database type is not listed, you may select the 'ANSI SQL-92' option.
See Also
Connection Reference, Connecting to Databases
Applies to
File Upload
Description
The property contains the semicolon-separated list of file masks for files that the user is not allowed to upload e.g.
*.exe; *.dll; *.bat. The validation of the disallowed file masks is applied if the file contains any of the allowed file
masks.
See also
Allowed File Masks property
Applies to
ASP Projects
115
Description
You can use this property to specify the COM based components used by the Send Email action.
The CDONTS.NewMail supports only local SMTP servers. It is also no longer shipped with Windows XP or Windows
Server 2003. For Windows 2000 or above you can use CDO.Message. Unlike CDONTS.NewMail it can be configured
for a remote SMTP server.
See Also
Send Email action
EmptyRows Property
Specify the number of rows to be added on the Editable Grid.
Applies to
Editable Grid
Description
You can use this property to specify the number of rows to be added to the bottom of the Editable Grid table. This
value is set to 3 by default.
If the Allow Insert property is "No", the rows for the new records are not displayed.
See Also
Allow Insert property
Applies to
Report
Applies to
Button
Description
You can set this property to 'Yes' so that submitted values are check for validity, otherwise the form will not check to
ensure that the submitted values conform to the validation rules assigned to them. By default this property is set to
'Yes' for the 'Insert' and 'Update' buttons and 'No' for the 'Cancel' and 'Delete' buttons.
Important: If buttons are added by clicking on the button in the Forms tab of the Toolbox, the value of this property is
set to 'Yes'.
116
Encoding Extension Property
Specify the PHP extension module to be used for encoding conversion.
Applies to
PHP Projects
Description
You can use this property to specify which of the PHP extension modules is to be used for encoding conversion. This
property can take the following values:
Value Description
iconv Specify if the iconv function of the iconv Extension should be used
mb Specify if the mb_convert_encoding function of the Multibyte string module should be used
Applies to
Checkbox, Checkbox List, Hidden, List Box, Radio Button, Text Area, Text Box
Description
Usually, error messages corresponding to a control are displayed at the top of the form as plain text. However, you
might want this error text to be displayed within another existing control, for instance, in a Label field placed adjacent
to the control. Use this property to specify the name of a control where you want the error message for the current
control to be displayed.
Important: The Label used as an Error control should be obligatory placed inside the Record or Editable Grid form.
This Property is applied only if the control is located inside the Record or Editable Grid form.
Applies to
File Upload
Description
The property specifies the full path or the relative path to the target folder beginning from the current page folder.
If the property value starts with "%", the environment variable specifies the path to the temporary folder. If the
language doesn't have functions for loading the environment variable content, the following error message is shown:
Invalid value of the File Folder property.
117
Specifies the maximum allowed file size to upload.
Applies to
File Upload
Description
The property contains the numeric value of the maximum allowed file size in bytes for uploading.
Applies to
ASP Projects
Description
You can use this property to specify the COM based components used by the File Upload control.
See Also
File Upload control
Format Property
Number Format
Sign Description Example Number Result
0 Digit placeholder with fixed length (000) 000-00-00 121231212 (012) 123-12-12
# Digit placeholder. Insignificant zeros are not #.00 123.1 123.10
displayed.
. Decimal separator. #.00 123.1 123.10
, Group separator. #,###.00 1234.1 1,234.10
% Percent notation #.#% 0.123 12.3%
\c literal character "c" \#0 10.1 #10
; Section separator.
[Color] Specifies the color that will be used for #.#;[Red]#.# -1.45 <font color="Red">-
output. 1.45</font>
{} Condition formatting. {$ > 100.01 <font
10}[Red]#.#;#.# color="Red">100.01</font>
$ Represent the name of the variable that will
be used in the code.
E.g. the condition {$ > 10} specifies that the
current mask
will be applied only when the amount is
greater than 10.
118
Sections
The number formatting mask consists of four predefined sections.
The default values for decimal separator and for the group separator will be taken from the regional settigns in case
the programming language supports the localized output of numbers. If the group separator was not presented in the
mask then the number would not be devided at the groups. If the decimal separator not presented then will be
displayed only the integer part of number.
Condition formatting
You may use the condition formatting if want to specify the exact format for the range. Use the {} in order to specify
the condition that will be used for this mask. Note that in the condition you may use the language specific operators
and functions and the condition is not language independed. If you have the masks with condition and without them
then the first mask without condition is used for default formatting for positive numbers, second mask without
condition is used for for default formatting of the negative numbers. If more than one mask can be applied then the
leftmost mask with condition will be applied.
Examples
Mask Numbers Results
{$ > 10}[Red]#.#;{0 =< $ < 10}#.#;{$ < 0}(#.#) 10.01 <font color="Red">10.01</font>
5 5
-20 (20)
Property Description
DBDateFormat Specify the format in which the control value will be entered into the database.
DefaultDateFormat The default date format for all fields
Field Format Set this property if you want to change default Date format
Later you can change the language, database or platform modifying the following parameters. You do not need to
change the code.
See Also
Date Format, Date Format Compare
Date/Time Format
You can set the Format property using the predefined date and time formats or use the custom formats for the
Date/Time data type setting.
Setting
Predefined Formats
The following table shows the predefined Format property settings for the Date/Time data type.
119
Setting Description
GeneralDate This format depends from regional settings.
If the value is a date only, no time is displayed; if the value is a time only, no date is displayed. This
setting is a combination of the Short Date and Long Time settings.
Examples: 4/3/93, 05:34:00 PM, and 4/3/93 05:34:00 PM.
Warning: Predefined Formats are valid only for languages which have the ability to formatting the date in
corresponding of the current LCID (ASP, Java). In the other languages this formats will be equal to the standard US
Date/Time formats.
Custom Formats
You can create custom date and time formats by using the following symbols.
Symbol Description
d Day of the month in one or two numeric digits, as needed (1 to 31).
dd Day of the month in two numeric digits (01 to 31).
ddd First three letters of the weekday (Sun to Sat).
dddd Full name of the weekday (Sunday to Saturday).
w Day of the week (1 to 7).
m Month of the year in one or two numeric digits, as needed (1 to 12).
mm Month of the year in two numeric digits (01 to 12).
mmm First three letters of the month (Jan to Dec).
mmmm Full name of the month (January to December).
q Date displayed as the quarter of the year (1 to 4). This format is supported only in ASP, PHP and
Perl.
yy Last two digits of the year (01 to 99).
yyyy Full year (0100 to 9999).
h 12-hour format without leading zeros (1 to 12).
hh 12-hour format with leading zeros (01 to 12).
H Hour in one or two digits, as needed (0 to 23).
HH Hour in two digits (0 to 23).
n Minute in one or two digits, as needed (0 to 59).
nn Minute in two digits (00 to 59).
s Second in one or two digits, as needed (0 to 59).
ss Second in two digits (00 to 59).
AM/PM Twelve-hour clock with the uppercase letters "AM" or "PM", as appropriate.
120
am/pm Twelve-hour clock with the lowercase letters "am" or "pm", as appropriate.
A/P Twelve-hour clock with the uppercase letter "A" or "P", as appropriate.
a/p Twelve-hour clock with the lowercase letter "a" or "p", as appropriate.
ww Week of the year (1 to 53). The first week considered the week which has January 1.
Note: This parameter is not supported in .NET.
Example
The following are examples of custom date/time formats.
Setting Display
ddd, mmm d, yyyy Mon, Jun 2, 1997
mmmm dd, yyyy June 02, 1997
dddd Tuesday
See Also
Date Format Compare, Date format using concept
121
ddd ddd EE ddd ddd D First three letters of the weekday (Sun to Sat).
dddd dddd EEEE dddd dddd Full name of the weekday (Sunday to Saturday).
w w w Day of the week.
l (lowercase "L") Full name of the weekday (Sunday
to Saturday).
y D z Day of the year (0 to 365)
Months
m m M m M n Month of the year in one or two numeric digits, as
needed (1 to 12).
mm mm MM mm MM m Two numeric digits (01 to 12) of Month of the Year.
mmm mmm mmm MMM M First three letters of the month (Jan to Dec).
mmmm mmmm MMM mmmm MMMM F Full name of the month (January to December).
Years
yy yy yy yy yy y Last two digits of the year (01 to 99).
yyyy yyyy yyyy yyyy yyyy Y Full year (0100 to 9999).
y The two last digits of the year without the leading
zero (1 to 99).
Hours
H h H H H G Hour in one or two digits, as needed (0 to 23).
HH hh HH HH HH H Hour in two digits (00 to 23).
h K h h g Hour in one or two digits, as needed (0 to 11).
hh KK hh hh h Hour in two digits (00 to 11).
Minutes
n n m m m Minute in one or two digits, as needed (0 to 59).
nn nn mm mm mm i Minute in two digits (00 to 59).
Seconds
s s s s s Second in one or two digits, as needed (0 to 59).
ss ss ss ss ss s Second in two digits (00 to 59).
Milliseconds
S Milisecond in one or two digits, as needed (0 to 99).
SS Milisecond in two digits (00 to 99).
Other
AM/PM AM/PM h/k + tt tt A Twelve-hour clock with the uppercase letters "AM"
a or "PM", as appropriate.
am/pm am/pm a Twelve-hour clock with the lowercase letters "am"
or "pm", as appropriate.
A/P A/P t t Twelve-hour clock with the uppercase letter "A" or
"P", as appropriate.
a/p a/p Twelve-hour clock with the lowercase letter "a" or
"p", as appropriate.
AMPM Twelve-hour clock with the appropriate
morning/afternoon designator based on current
regional settings.
z The time zone offset (hour only). Single-digit hours
will not have a leading zero.
zz The time zone offset (hour only). Single-digit hours
will have a leading zero.
zzz The full time zone offset (hour and minutes). Single-
122
digit hours and minutes will have leading zeros.
L boolean for whether it is a leap year; i.e. "0" or "1"
t number of days in the given month; i.e. "28" to "31"
z T Timezone setting of this machine; i.e. "MDT"
U seconds since the epoch
Z timezone offset in seconds (i.e. "-43200" to
"43200"). The offset for timezones west of UTC is
always negative, and for those east of UTC is
always positive.
I (capital i) 1 if Daylight Savings Time, "0" otherwise.
S English ordinal suffix, textual, 2 characters; i.e. "th",
"nd"
" ' Escape for text (Delimiter), e.g. 'on' MMM dd means
"on July 25"
zzzz Time zone, full form e.g. "Pacific Standard Time"
W Week in month (1-4)
F Day of week in month e.g. 2 (2nd Wed in July)
G gg gg Era designator e.g. AD
: : : Time separator (taken from the Regional settings)
/ / / Date separator (taken from the Regional settings)
ww ww w Week of the year (1 to 53). The first week
considered the week which has January 1.
Note: This parameter is not supported in .NET.
q q Date displayed as the quarter of the year (1 to 4).
This format is supported only in ASP, PHP and Perl.
\c \c Where c is any character. Displays the character
literally.
Access
CCS Java ColdFusion .NET PHP Description
(VBA)
See Also
Date Format, Date format using concept
Function Property
Specify the function for auto-calculated labels.
Applies to
ReportLabel
Description
This property is used to specify function for auto-calculated labels. This can be one of the following:
Setting Description
(none) No function will be used.
Sum The report label value will be calculated as the sum of previous row values.
Count If the Control Source is empty the value will be calculated as the count of previous data rows. Otherwise
the value will be calculated as the count of previous data rows with non-empty values.
123
Min The value will be calculated as the minimum of previous row values.
Max The value will be calculated as the maximum of previous row values.
Average The value will be calculated as the average of non-empty values from previous rows.
See Also
Reset At property
Percent Of property
Groups Property
Report groups that is used to manage repeating values and totals
Applies to
Report
Description
The list of report groupings and sections. Click the [...] button to maintain the report groups or view its sections. When
report groups are used, the data rows will be grouped into collections with the same value of the grouped field in
each collection. Each group also has a unique name, associated group field, and the data sort order.
Height Property
The height of the section in abstract "line" units.
Applies to
Section
Description
The height can be equivalent to pixels or other units, as long as consistent units are used throughout the report. You
can imagine that a line is 1 pixel high and specify the true pixel height, if known. In other cases you may decide to
use data rows as a "line" and specify "1" as the section height. Refer to report properties for more information.
Applies to
ReportLabel
Description
This property can be used to hide report labels when their value is the same as in the preceding record.
124
Home Page Property
Specify the starting page for your project.
Applies to
Project
Description
You can use this property to set starting page for your project.
Applies to
Link, Image Link
Description
The selection made in this property depends on the value of the Href Type property. If the Href Type is a page, use
this property to select the page to be linked to. Alternatively, if the Href Type is a database column, use this property
to select the database column that holds the URL of the page to be linked to.
Clicking on this property opens the Href Source window where you can also specify Link Parameters that will be
transmitted to the linked page. This is often used when linking a grid form to a record form and a parameter needs to
be transferred to the record form to indicate the record that will be retrieved.
See Also
Href Type property,
how to Create Mailto Hyperlink,
how to Configure Hyperlink
Applies to
Image Link, Link
Description
Indicate whether the value of the page to be linked to will come from:
Setting Description
Page One of the existing project pages
(default)
Database The URL of the page to be linked to is contained within a database column
See Also
Href Source property
125
Includable Property
Specify if the page is included into other pages.
Applies to
Page
Description
You can set this property to 'Yes' to specify that the page is not used separately, it is used only an includable to other
pages. The following HTML tags are excluded from these pages: <HTML><HEAD><BODY>. This page cannot be
accessed regularly, it can be only included into other pages.
For Header and Footer pages this property is always set to 'Yes'.
See Also
Page property
Applies to
ASP Projects
Description
You can use this property to specify the type of the path used to include the common files: relative or absolute
(starting from the root) virtual path.
ID Field Property
Specify the field containing the unique ID that identifies the categories.
Applies to
Path
Description
Specify the field containing the unique ID that identifies the categories. This field must contain a unique value and the
value cannot be NULL.
See also
Parent field property
126
Applies to
PHP Projects
Description
If this property is set to 'Yes' then all HTTP headers which disable browser caching will be removed.
Applies to
Hidden, Text Area, Text Box
Description
In this property, you can enter a Regular Expression that will be used to determine the validity of a submitted value. A
submitted value that fails to comply with the regular expression will cause an error message to be displayed.
Within the property, there are two regular expressions; one for validating email addresses and another for 5-digit zip
codes. Besides these, you can type in your own regular expression.
Important: The regular expressions should be set taking into consideration the programming language.
J-P
Applies to
Connection
Description
You can use this property to specify the name of the driver to be used, (e.g., sun.jdbc.odbc.JdbcOdbcDriver).
See Also
Connection Reference, Connecting to Databases
Applies to
127
Java Projects
Description
You can use this property to specify the level of logging. The DEBUG will display all messages.
Applies to
Perl Projects
Description
You can specify this property if you use mod_perl.
Setting this property will add the appropriate prefix to all classes/packages. For example, the record form's clsUsers
class on Page1 will have the following full name: pagePrefix::Page1::clsUsers.
Server
Property Value
API
CGI Specify the unique prefix for the server. If the prefix is not used leave this property blank.
mod_perl Specify the unique prefix for the server. If you leave this property blank the project's name will be used
as the prefix.
Applies to
Report
Description
In Print mode the "Lines per Print page" value is used to determine where to end the page and show the page footer
and the page break tag.
See also
Lines Per Web Page property
Applies to
Report
128
Description
In Web mode the "Lines per Web page" value is used to determine where to end the page and display the page
footer and the navigator.
See also
Lines Per Print Page property
Applies to
ASP Projects
Description
You can use this property to specify the locale ID. It determines the formatting of certain information, such as date
and time values, currency, and so on. Each locale is identified by an integer value and it’s defined in the operating
system.
See Also
Code Page property
Login Property
Specify the Login used to establish a database connection.
Applies to
Connection
Description
You can use this property to specify Login used to establish a database connection during the design time.
See Also
Connection Reference, Connecting to Databases
LongReadLen Property
Specify the DBI LongReadLen attribute.
Applies to
Connection
Description
129
You can use this property to control the maximum length of long fields ('blob', 'memo', etc.) which the driver will read
from the database automatically when it fetches each row of data. The LongReadLen attribute only relates to fetching
and reading long values; it is not involved in inserting or updating them.
See Also
Connection Reference, Connecting to Databases, LongTruncOk property
LongTruncOk Property
Specify the DBI LongReadLen attribute.
Applies to
Connection
Description
You can use this property to control the effect of fetching a long field value which has been truncated (typically
because it's longer than the value of the LongReadLen attribute). For example, if LongTruncOk is set to "Yes" the
over-long value will be silently truncated to the length specified by LongReadLen without an error.
See Also
Connection Reference,
Connecting to Databases,
LongReadLen property
Applies to
Java Projects
Description
You can use this property to specify the connection login for the Tomcat application manager. It is used only if the
target server is Tomcat.
See Also
Target Server property
Applies to
Java Projects
130
Description
You can use this property to specify the connection password for the Tomcat application manager. It is used only if
the target server is Tomcat.
See Also
Target Server property
Applies to
Java Projects
Description
You can use this property to specify the manager URL of the Tomcat application. It is used only if the target server is
Tomcat.
See Also
Target Server property.
Applies to
Connection
Description
You can use this property to specify the maximum number of connections to the database. (0 - unlimited).
See Also
Connection Reference, Connecting to Databases
Name
The name of the control.
Applies to
Button, Checkbox, Checkbox List, Connection, Date Picker, Directory, Editable Grid, Grid, Hidden, Image, Image
Link, Include Page, Label, Label(Report), Link, List Box, Navigator, Panel, Radio Button, Record, Report, Path,
Sorter, Text Area, Text Box
Description
131
A unique name used to identify the instance of the control. It is used to specifically address the control for getting
and/or changing control properties.
Important: This is also the name used to reference the control within the programming code.
Name Property
The name of the control.
Applies to
Report Section
Description
A unique name used to identify the instance of the control. It is used to specifically address the control for retrieving
or specifying control properties. It is read-only.
No of Columns Property
Specifies the number of Calendar columns.
Applies to
Calendar
Description
You can use this property to specify the number of Calendar columns. One cell is allocated for each month. The
Annual Calendar can have from 1 to 12 columns, quarterly and 3-months Calendars - from 1 to 3 columns.
No of Years Property
Specifies the range of years shown in the Calendar Navigator.
Applies to
Calendar Navigator
Description
You can use this property to specify the range of years shown in the Calendar Navigator. The Calendar Navigator
has the predefied layout with year counting. If the specified value equals to 1, three numbers will be displayed: the
previous year, current year and next year.
132
Applies to
Directory
Description
You can use this property to specify the number of columns to output the list of the categories. By default the value of
this property is equal to 1. The categories are output from up to down, from left to right. If the number of the
categories is not divisible by the number of columns, then the bigger number of the categories will be output in the
columns to the left. For example, you have 2 columns and 3 categories, then 2 categories will be output in the first
column from the left and 1 in the second one.
See also
Number of Subcategories property
Applies to
Directory
Description
You can use this property to specify the number of subcategories displayed in one column. If the actual quantity of
the subcategories is bigger then the value entered into this property, the number of subcategories to be displayed will
be equal to the number set in this property value the contents of the 'SubcategoriesTail' template will be output below.
Note: If you want to see all subcategories the value of this property should be empty.
See Also
Number of Columns property
Operation Property
The type of operation performed when the button is clicked [Insert, Update, Delete, Cancel or Search].
Applies to
Button
Description
Specify the operation that will be performed after the button has been clicked.
The list of available operations is provided by the parent component.
Record
• Insert
• Update
• Delete
• Cancel
• Search
Editable Grid
133
• Cancel
• Submit
Important: If you select of Insert, Update or Delete setting, the appropriate operation of the Record form will not be
automatically performed, the value of the appropriate Allow Delete, Allow Insert or Allow Update property should be
set to 'Yes'.
See Also
Allow Delete property, Allow Insert property, Allow Update property
Applies to
PHP, Perl Projects
Description
You can use this property to specify the line feed symbol used in the output file: one-byte for UNIX\Linux or two-byte
for Windows.
See Also
Perl Path property
Page Property
Specify the page that will be included.
Applies to
Include Page
Description
This property is used to specify the page that will be is as includable. You can select the page as the 'Page to Include'
in the dialog box which will be displayed after you click on the corresponding icon in the Forms Tab of the Toolbox.
Important: If you select a page as the Include Page, the Includable property for this page should be obligatory set to
'Yes'.
See Also
Includable property
Applies to
134
Navigator
Description
Specify the number of page links to be shown on the Navigator. The default is 10.
This property is applied only if the Type property has the 'Centered' or 'Moving' value.
See Also
Type property
Applies to
Grid, Editable Grid
Description
Specify the maximum number of records a user may opt to display per page if using a search form that allows control
over the number of records displayed via URL. In combination with the Records Per Page property it is used to set
different output options for data into the grid.
See Also
Records Per Page property
Applies to
Path
Description
Specify the field with values pointing at the parent ID subcategory.
See also
ID Field property
Password Property
Specify the Password used to establish a database connection.
Applies to
Connection
135
Description
You can use this property to specify Password used to establish a database connection during the design time.
See Also
Connection Reference, Connecting to Databases
Applies to
Java Projects
Description
You can use this property to specify the full path to the log file. It can have the following values: 'out' - System.out,
'err' - System.err.
Percent Of Property
Specify whether the report value should be output as percentage of the corresponding group's total value.
Applies to
ReportLabel
Description
This property is used to specify the name of the report group for which the percent value will be calculated.
See Also
Function property
Reset At property
Applies to
Perl Projects
Description
You can use this property to specify the absolute path to the Perl executable. Basically, this line specifies the location
of the Perl program and therefore the line changes based on whether a Windows or Linux/Unix machine is being
used. An example path for windows would be#!c:\perl\bin\perl.exe while for Linux/Unix, a common path is
#!/usr/local/bin/perl.
136
In Linux/Unix, you can find out the location of the Perl executable by typing the command 'which perl' in the command
prompt of a shell session.
For windows, the command Perl -h should produce information about the program including its path.
See Also
Output File Format property
Applies to
Connection
Description
You can use this property to specify the PHP database library used for the database connection on the server side.
See Also
Connection Reference, Connecting to Databases,
Applies to
PHP Projects
Description
You can use this property to specify the file extension of the generated code files. .php is set by default.
Note: The value of this property should contain '.' - dot symbol in front of the extension.
Applies to
Connection
Description
You can use this property to specify the PHP database library used for the database connection on the server side.
See Also
Connection Reference, Connecting to Databases,
137
PrintError Property
Specify if the warnings are generated in addition to returning error codes in the normal way.
Applies to
Connection
Description
You can use this property to force errors to generate warnings (using warn) in addition to returning error codes in the
normal way. When set 'Yes', any method which results in an error occurring will cause the DBI to effectively do a
warn('$class $method failed: $DBI::errstr') where $class is the driver class and $method is the name of the method
which failed.
See Also
Connection Reference, Connecting to Databases
Applies to
Image Link, Link, Record, Editable Grid
Description
Specify the types of parameters that should be preserved by the Link and propagated to the linked page.
Setting Description
None No parameters will be propagated by the link.
Get (default) All received Get parameters will be appended to the link.
Post All received Post parameters will be appended to the link.
All All received Get and Post parameters will be appended to the link.
• For the Grid form you can set this property to 'Post' to transfer all parameters via URL not depending on
"<form method=" value in the HTML file.
• For the Record form you can set this property to "Get" to return all URL parameters (e.g. the search
parameters) on the grid, after the form is submitted.
• If you set the value of this property to "None" no parameters will be propagated by the link besides the ones
entered with the link. For example, the ones specified using the Href Source property.
See Also
Remove Parameters property, Href Source property
Publishing Property
Specify whether the generated pages will be published to a local computer to a remote computer via FTP.
Applies to
138
Project
Description
Specify whether the generated pages will be published to a local computer or network or whether they will be
published to a remote computer via FTP.
R-S
RaiseError Property
Specify if an error raises an exception rather than return the error code.
Applies to
Connection
Description
You can use this property to force errors to raise exceptions rather than return error codes in the normal way. It is
'NO' by default. Otherwise any method which results in an error will cause the DBI to effectively do a die('$class
$method failed: $DBI::errstr') where $class is the driver class and $method is the name of the method that failed.
See Also
Connection Reference, Connecting to Databases
Applies to
Grid, Editable Grid
Description
You can use this property to specify the number of records to be displayed per page by default. The table below
shows the datasource data in three modes depending on this property and the Page Size Limit property:
Important: If the 'Record Per Page' property is not set, the page size is accepted as equal to the value entered in the
Page Size Limit property.
See Also
139
Page Size Limit property
References Property
Specify the semicolon-separated list of the project references.
Applies to
.NET Projects
Description
You can use this property to specify the semicolon-separated list of the external .dlls linked to the project.
Applies to
Java Projects
Description
You can use this property to specify the RegExp library used in the project.
Applies to
Editable Grid, Image Link, Link
Description
Use this property to specify names of incoming Post or Get parameters that should not be propagated via the link. If
the Record form has the Preserve Parameters property set to 'Get', this parameter will be applied to the 'Add record'
link on the Grid form.
Examples:
The following are the property results for the page URL with parameters
my_page?page_id=3&emp_name=joe&emp_email=email@ com.com&object_id=26:
Setting Result after removing
page_id;object_id my_page.asp?emp_name=joe&emp_email=email@com.com
See Also
Preserve Parameters property
140
Required Property
Specify if a value must be entered for the control in order for the form to be submitted successfully.
Applies to
Checkbox List, Hidden, File Upload, List Box, Radio Button, Text Area, Text Box
Description
You can set this property to 'Yes' to specify that the control must submit a value when the form is submitted. If the
control does not submit a value, the form will not be processed to completion but instead an error message will be
displayed.
Reset At Property
Specify when the value of auto-calculated label will be reset during calculations.
Applies to
ReportLabel
Description
This property is used to specify when the value of auto-calculated label should be reset. Possible values are "Report",
"Page" or name of any defined report group.
See Also
Function property
Percent Of property
Restricted Property
Specify whether users must be logged in before accessing the form.
Applies to
Page, Grid, Record, Report, Editable Grid, Directory
Description
The following is this property application to the Page and other controls:
Setting Description
Page If set to 'Yes', the login validation is performed, otherwise the users are redirected to the Login page set in
the Security Tab of the Project Settings. You can also set the Security Groups for the page, and the
unauthorized group users will be redirected to the Login page. Additionally, you can specify the
redirection page for unauthorized users using the Access Denied Page property.
Others If set to 'Yes' and the Security Groups are not specified, the control is not shown to the unauthorized
controls users. If you specify the Security Groups you can additionally set the available options for each group.
See Also
Access Denied Page property
141
Return Page Property
Specify the page where the user should be directed after the button operation has been performed or the record has
been submitted.
Applies to
Button, Editable Grid, Record
Description
Use this property to specify the page that should be viewed after the button has been clicked, or the Record form has
been submited.
If the Record form was created using the Record Builder, this property will be empty for all buttons. The return page is
used only for the Record form.
Applies to
Sorter
Description
This property is used to specify fields for the reverse sorting. If the value of this property is not specified than the
reverse sorting is performed for the same field set in the Sort Order property.
If you select several fields in the Sort Order property you should also select the necessary fields and set the sorting
direction for this property. Otherwise, the sorting direction will be changed only for the last field specified in the Sort
Order property (the DESC parameter will be added to the SQL statement).
See also
Sort Order property
Applies to
Java Projects
Description
You can use this property to specify the semicolon separated file list of Runtime libraries. These files will be copied to
the WEB-INF\lib directory of your application.
142
Applies to
Project
Description
This option is only used if you want to access the pages over a SSL connection and the server support SSL.
Applies to
Project
Description
The following are the possible values:
Setting Description
None No site security is implemented
(default)
Table Security will be based on information contained in a database table
Applies to
Perl Projects
Description
You can use this property to specify the type of the used Server API. It can take the following values:
Parameter Description
CGI Used by default
mod_perl version 1 Specify if mod_perl version 1 is used.
mod_perl version 2 Specify if mod_perl version 1 is used.
Applies to
Connection
143
Description
You can use this property to specify the ADO connection string or ODBC Data Source Name used for the database
connection if the server connection is different from the design connection.
See Also
Connection Reference, Connecting to Databases, Server Same As Design property
Applies to
Connection
Description
You can use this property to specify the ADO connection string or ODBC Data Source Name used for the database
connection if the server connection is different from the design connection.
See Also
Connection Reference, Connecting to Databases, Server Same As Design property
Applies to
Connection
Description
You can use this property to specify the type of database accessed during the server (live) execution. If your
database type is not listed, you may select the 'ANSI SQL-92' option. This property is used to determine database
specific SQL features during run-time.
See Also
Connection Reference, Connecting to Databases
Applies to
Connection
Description
144
You can use this property to specify the server database name or DBI Data Source Name for Perl.
See Also
Connection Reference, Connecting to Databases
Applies to
Connection
Description
You can use this property to specify the type of database being accessed during the server (live) execution. If your
database type is not listed, select the ANSI SQL-92 option. This property is used to determine database specific SQL
features during Run-time.
See Also
Connection Reference, Connecting to Databases
Applies to
Connection
Description
You can use this property to specify the IP address or hostname of the machine where the SQL server is located.
See Also
Connection Reference, Connecting to Databases
Applies to
Connection
Description
You can use this property to specify Login used to access the server database.
145
See Also
Connection Reference, Connecting to Databases
Applies to
Connection
Description
You can use this property to specify Password used to access the server database.
See Also
Connection Reference, Connecting to Databases
Applies to
Java Projects
Description
You can use this property to specify the server path to the published files. It is used only if the target server is
Tomcat.
See Also
Target Server property
Applies to
Perl Projects
Description
You can use this property to specify the absolute path to the root of web folder where scripts should be run. For
example: /var/www/perl/Project1.
Note: If the value of this property is not specified, FindBin(CGI) or Apache::request(mod_perl) modules will determine
this value depending on the server's API.
146
Server Persistent Connection Property
Specify if the persistent server connection is used.
Applies to
Connection
Description
You can use this property to specify that opened connections are reused whenever available.
See Also
Connection Reference, Connecting to Databases
Applies to
Connection
Description
You can use this property to specify the SQL server port. If the default port is used this property should be blank, for
example the default port for MySQL is 3306.
See Also
Connection Reference, Connecting to Databases
Applies to
Connection
Description
You can use this property to specify if the server connection matches the design connection.
See Also
Connection Reference, Connecting to Databases
147
Applies to
Perl Projects
Description
You can use this variable to specify how often the session files will be checked for expiration, and the expired files will
be deleted.
If 'Sessions Files Clean Rate' = 100, such check will be performed when each 100th page of your application will be
called. If your site is stressed enough you might want to increase this value to improve the performance. And if you
have only several visitors per day, you can decrease this value without significant impact for the overall performance.
Applies to
Perl Projects
Description
You can use this property to specify the absolute or relative path to the folder where the session variable information
will be stored. This should be a folder with read/write access.
Applies to
Perl Projects
Description
You can use this property to specify the time in minutes after which the session variables in an inactive session will
be terminated.
Schema Property
Specify a database schema for the object display during the design time.
Applies to
Connection
Description
You can use this property to specify a database schema for the object display during the design time. It is used for
Oracle and MSSQL databases.
The Schema is a collection of the related database objects, usually grouped by the database userid. The Schema
Objects include tables, views, sequences, stored program units, synonyms, indexes, clusters, and database links.
148
See Also
Connection Reference, Connecting to Databases
Applies to
Calendar
Description
You can use this property to specify whether to show days of the surrounding months if the 1st or last week of the
month includes days of other months.
Applies to
Project
Description
Specify the spoken language for the project pages. You can select a language from the list and all the text of your
site, i.e. the header, footer error messages, buttons etc., will be generated on this spoken language.
Important: You will not be able to change the language on the earlier generated pages. Only the text for the record
error messages will be changed.
Applies to
Sorter
Description
This property contains a field name (or comma-separated list of field names) used to sort data source’s rows. Field
names can be followed by 'ASC' or 'DESC' to alter sorting order.
Note: If there are several fields selected or "DESC" used for one of the fileds you should select the necessary fields
and set the sorting direction in the Reverse Order property. Otherwise, the sorting direction of the last field will be
changed in the Reverse Order property.
See also
Reverse Order property
149
SSL Access Only Property
Specify if the SSL access is applied to the page.
Applies to
Page
Description
This property specifies that the SSL connection will be applied to the page. If the property value is set to 'Yes', the
SSL connection validation is performed. If you view the page without using the secured connection, the following
error message is displayed: "SSL connection error. This page can be accessed only via
secured connection."
By default the property value is set to 'No'.
Style Property
Specify the css style applied to the Date Picker/Selector.
Applies to
Date Picker
Description
You can use this property to specify the css style applied to the Date Picker/Selector.
Applies to
Directory
Description
Specify the data field that contains category id of the second level categories.
See Also
Data Source property, Category ID Field property
Synonyms Property
Specify if the display of database synonyms is enabled during the design time.
Applies to
Connection
150
Description
You can use this property to specify if the display of database synonyms is enabled during the design time.
See Also
Connection Reference,
Connecting to Databases
Applies to
Connection
Description
You can use this property to specify if the display of database system tables is enabled during the design time.
See Also
Connection Reference, Connecting to Databases
Applies to
Connection
Description
You can use this property to specify if the display of database system views is enabled during the design time.
See Also
Connection Reference, Connecting to Databases
T-Z
Applies to
151
.NET Projects
Description
You can use this property to specify the target schema for ASPX pages.
Applies to
Java Projects
Description
You can use this property to specify the host server where your application will be deployed.
See Also
Server Path property, Context Path property, Manager Password property, Manager Login property, Manager URL
property
Applies to
.NET Projects
Description
You can use this property to specify the target .NET framework version.
Applies to
File Upload
Description
The property specifies the full path or the relative path to the temporary folder beginning from the current page folder.
If the property value starts with "%", the environment variable specifies the path to the temporary folder. If the
language doesn't have functions for loading the environment variable content, the following error message is shown:
Invalid value of the Temporary Folder property.
152
Text Column Property
Refers to the data source for the values that are displayed.
Applies to
Checkbox List, List Box, Radio Button
Description
If the Source Type property is set to Table/View, Procedure or SQL, this property is used to specify the database field
that will provide the List Box values to be displayed.
See Also
Bound Column property, Data Source Type property, Data Source property
Applies to
ReportLabel
Description
This property is used to specify the text that will be displayed when the label value is empty.
Applies to
Calendar
Description
You can use this property to specify the database format of the field containing event time.
See also
• Time Field property
• Date DB Format property
Applies to
Calendar
153
Description
You can use this property to specify the field containing event time. You must use this property when event's date
and time are stored in saparate fields.
See also
• Time DB Format property
• Date Field property
Applies to
Connection
Description
You can use this property to specify the duration of time after which an idle or unresponsive connection will be
terminated (in milliseconds).
See Also
Connection Reference, Connecting to Databases
Type Property
Specify the type of page links to be shown in the Navigator control.
Applies to
Navigator
Description
The following are the possible values:
Setting Description
Simple Only the current page and the Number of Pages are displayed in the Navigator.
Centered The Number of Pages is shown as it is set in the Page Links property and the current page is displayed in
the center of the Navigator.
Moving The Number of Pages is shown as it is set in the Page Links property and the current page is displayed
moving on the page list of the Navigator.
If you like to change the value of this property from 'Simple' to "Centered" or "Moving" the HTML should be modified.
See Also
Page Links property
154
Type Property
Specifies the Calendar type.
Applies to
Calendar
Description
The possible values are the following:
Setting Description
Annual Specifies that all 12 months of the year will be shown in the Calendar.
Quarterly Specifies that quarter (three months) of the year will be shown in the Calendar.
3-Months Specifies that any of 3 months of the year will be shown.
Monthly Specifies that one month Calendar will be shown.
Applies to
Checkbox
Description
In conjunction to the Checked Value property, this property allows you to specify a value to be associated with the
unchecked state of the checkbox. Ordinarily, an unchecked HTML checkbox does not submit any value, this property
can be used to associate a value with the unchecked state.
Examples
This control can be used to update a database field of the "Text" type, which stores the 'Yes' or 'No' value. In order to
do that you can set the DataType property to 'Text', and enter "Yes" for the Checked Value property and "No" for the
Unchecked Value Property. The value should be obligatory entered in double quotes.
The following are the possible applications:
See Also
Checked Value property, DataType property
Unique Property
Specify if it is validated that any value entered in the control does not already exist in the database.
155
Applies to
Checkbox List, Hidden, List Box, Radio Button, Text Area, Text Box
Description
Set "Yes" to ensure that a value submitted by the control does not match any other value that is already in the
database. If a duplicate is encountered, form processing will terminate and an error message will be displayed stating
the problem.
Applies to
Java Projects
Description
You can use this property to specify if the JDBC 2.0 Standart Extension will be used in the project.
See Also
Class Path property
Applies to
Connection
Description
Use this property to optimize the database performance by returning only the records that are used within the form. If
set to "Yes", the changes will be applied to the Data Source of the Grid, Editable Grid and Record components when
used with any of the following databases: MySQL, PostgreSQL, Microsoft SQL Server and Microsoft Access.
The following table shows how the "Use LIMIT/TOP" property is utilized:
Record MySQL, PgSQL LIMIT 1 is added to the Select SQL after ORDER BY.
156
MS SQL Server, When using Table or SQL data source, "TOP 1" is applied to the Select SQL in
MS Access the same manner as when using the Grid component.
Notes:
• "row_count+offset" is a value calculated as the sum of starting row and the number of rows to be returned.
• the LIMIT/TOP clause is applied even when using custom code that alters the DataSource.
• to disable LIMIT/TOP in individual forms create an alternative database connection that doesn't utilize the
"Use LIMIT/TOP" property.
See Also
Connection Reference, Connecting to Databases
Applies to
Checkbox, Checkbox List, Hidden, List Box, Radio Button, Text Area, Text Box
Description
This property presents you with the opportunity to enter a programming language specific condition that will be used
to determine the validity of the submitted value. If the requirement is not satisfied the error message from Validation
Text property is shown.
Important: If there is no text entered into the Validation Text property the message is not shown and the following
warning message appears in the Messages Window: "Warning: TextBox DateFiled: The
Validation Text property is empty." The property value depends on the programming language of
the project.
Example
For instance, if using ASP and you have a control that submits date values, you can enter a simple condition to
ensure that the date is later than the current date i.e. FieldName is the name of the control being validated.
See Also
Validation Text property
Applies to
Checkbox, Checkbox List, Hidden, List Box, Radio Button, Text Area, Text Box
Description
This property is related to the Validation Rule property and is used to specify an error message that will be displayed
in case the validation rule is not satisfied.
157
Important: If the Validation Rule property is not set, the property text is not shown and the following warning
message is shown in the Message Window: "Warning: TextBox DateFiled: The Validation Rule
property is empty."
See Also
Validation Rule property
Applies to
.NET Projects
Description
Indicates whether request validation should occur. If true, request validation checks all input data against a hard-
coded list of potentially dangerous values. If a match occurs, an HttpRequestValidationException exception is thrown.
The default is true.
Views Property
Specify if the display of database views is enabled during the design time.
Applies to
Connection
Description
You can use this property to specify if the display of database views is enabled during the design time.
See Also
Connection Reference, Connecting to Databases
Visible Property
Specifies if the Sorter is displayed on the grid.
Applies to
Sorter, Panel, Report Section
Description
This property is used to specify if the Sorter will be displayed on the grid. If the value is set to 'No' the Sorter is not
shown.
158
Events
On Change event
Applies to
List Box, Text Area, Text Box
Description
This event occurs on the client side after the control's value is changed and focus is lost. It can be used to change
values of other controls and for validation of input values.
Examples
The following is an example of a Celsius-to-Fahrenheit temperature converter. In a Record form called NewRecord1
with the text boxes TextBox1 and TextBox2, the Custom Code in the On Change event converts the Celsius value
entered in Textbox1 to a Fahrenheit value which is displayed in Textbox2.
<script language="JavaScript">
function page_NewRecord1_TextBox1_OnChange()
{
var result;
document.NewRecord1.TextBox2.value = ((9/5) *
document.NewRecord1.TextBox1.value ) + 32;
return result;
}
function bind_events() {
check_and_bind('document.NewRecord1.TextBox1','onchange',page_NewRecor
d1_TextBox1_OnChange);
forms_onload();
}
window.onload = bind_events;
</script>
On Click event
159
Applies to
Button, Check Box, Check Box List, Radio Button
Description
This event occurs when the user clicks the left mouse button on the object.
Possible applications: Handling button clicking. Executing custom button actions.
Examples
The following is an example usage of the On Click event. In this case, a Confirmation Message action is added to
the On Click event of a Delete button in a Record form called Record1. The following is the code generated for the
action (CodeCharge Studio comments are removed):
<script language="JavaScript">
function page_NewRecord1_Delete_OnClick() {
return confirm('Delete record?');
}
function bind_events() {
check_and_bind('document.NewRecord1.Delete','onclick',
page_NewRecord1_Delete_OnClick);
forms_onload();
}
window.onload = bind_events;
</script>
On Key Press
Applies to
Text Area, Text Box
Description
This event occurs when the user presses an alphanumeric key. It can be used to change the value of other controls.
Examples
The following example shows how the On Key Press event can be used to set the value of a Text Box called
TextBox2 whenever a new value is entered in another Text Box called TextBox1.
<script language="JavaScript">
function page_NewRecord2_TextBox1_OnKeyPress()
{
var result;
//Custom Code
var maxlength = document.NewRecord2.TextBox1.value.length + 1;
document.NewRecord2.TextBox2.value = maxlength;
//End Custom Code
return true;
160
}
function bind_events() {
check_and_bind('document.NewRecord2.TextBox1','onkeypress',page_NewRec
ord2_TextBox1_OnKeyPress);
forms_onload();
}
window.onload = bind_events;
</script>
On Load event
Applies to
Button, Check Box, Editable Grid, Hidden, List Box, Page, Record, Text Area, Text Box
Description
• Page
This event occurs on the client side directly after the page is loaded into the browser. This event is often used to
setup the mechanism for validating controls within the page.
• Button, Check Box, Editable Grid, Hidden, List Box, Record, Text Area, Text Box
The On Load event does not apply directly to the above controls but is used to attach validation criteria to
controls when the page loads. This is mostly done for controls that reside within Record or Editable Grid forms.
For the above controls, On Load is not a native DHTML event but is wired through the page On Load event.
Examples
The following is an example of the minimum length validation for a Text Box called Textbox2 which is located within a
Record form called NewRecord2. In this case, a Validate Entry action is added to the On Load event with the
following settings:
Validate Entry
Property Value
Required True
Minimum Length 8
Maximum Length
Input Mask
Regular Expression
Error Message Minimum length: 8
Validation Function
As a result the generated code will be as follows (CodeCharge Studio comments are removed):
<script language="JavaScript">
function page_NewRecord2_TextBox2_OnLoad() {
var result;
this.ccsRequired = true;
161
this.ccsMinLength = 8;
this.ccsErrorMessage = "Minimum length is 8";
this.ccsCaption = "";
return result;
}
function bind_events() {
check_and_bind('document.NewRecord2','onLoad',page_NewRecord2_TextBox2
_OnLoad);
forms_onload();
}
window.onload = bind_events;
</script>
On Unload event
Applies to
Page
Description
This event occurs immediately before the page is unloaded from the browser.
Examples
On Submit event
Applies to
Editable Grid, Record
Description
This event occurs on the client side when the user submits a form but before the data is sent to the server from the
form. It can be used for the validation, to confirm the submission or alter control values.
Examples
In this example, a Confirmation Message action is added to the On Submit event of a Record form called Record1.
The action causes a message ("Submit form?" ) to be displayed whenever the form is submitted.
<script language="JavaScript">
function page_NewRecord1_OnSubmit() {
return confirm('Submit form?');
}
162
function bind_events() {
check_and_bind('document.NewRecord1','onsubmit',page_NewRecord1_OnSubm
it);
forms_onload();
}
window.onload = bind_events;
</script>
Applies to
Editable Grid, Record
Description
This event occurs after a row deletion query has been executed.
Possible applications:
• Checking operation status
• Processing query errors
• Changing parameters and re-executing the query
• Performing other transaction’s queries and closing the transaction
Applies to
Editable Grid, Record
Description
This event occurs after new row insert query has been executed.
Possible applications:
• Checking operation status
• Processing query errors
• Changing parameters and re-executing the query
• Performing other transaction’s queries and closing the transaction
163
After Execute Select Event
Applies to
Check Box List, Directory, Editable Grid, Grid, List Box, Path, Radio Button, Record, Report
Description
This event occurs after the row selection query has been executed and a recordset for the result is returned.
Possible applications:
• Processing query errors
• Retrieving recordset’s state
• Changing parameters and re-executing the query
Applies to
Editable Grid, Record
Description
This event occurs after a row update query has been executed.
Possible applications:
• Checking operation status
• Processing query errors
• Changing parameters and re-executing the query
• Performing other transaction’s queries and closing transaction
Examples
Execute Custom SQL
Applies to
Record
Description
This event occurs after deleting a row from the data source.
Possible applications:
• Checking operation status
• Processing operation errors
• Altering returned error collection
• Performing cascading deletion of linked rows from other tables or updating item counters
164
• Modifying the redirect string
Examples
This example After Delete event shows how to perform a cascading delete of link records that are related to a user
record that has been deleted.
Function members_AfterDelete()
If members.DataSource.Errors.Count = 0 Then
DBInternet.Execute ("DELETE FROM links WHERE user_id_add_by = "
&_
DBInternet.ToSQL(members.DataSource.Parameters("urluser_id"),ccsIntege
r))
End If
End Function
Applies to
FileUpload Control
Description
This event is executed if user submits upload form with delete checkbox selected, after performing file delete
operation.
Possible applications:
• removing any additional information kept about the file (database records)
• removing any other files related to the file
Applies to
Page
Description
This event occurs after all page components have been initialized but before dynamic database content is processed.
Possible applications:
• Loading custom resources
• Setting session and application variables
• Altering component properties
• Preprocessing submitted data
• Creating custom objects and structures
165
Examples
Custom Error Message,
Add URL Parameters to a Page
Applies to
Record
Description
This event occurs after inserting a new row into the data source.
Possible applications:
• Checking operation status
• Processing query errors
• Performing supplemental queries: updating item counters, propagating modification date
• Modifying the redirect string
Applies to
FileUpload Control
Description
This event is executed after processing uploaded file (saving into target directory).
Possible applications:
• inserting additional file information into some table record
Applies to
Editable Grid
Description
This event occurs after the data rows are modified.
Possible applications:
• Checking operation status
• Processing query errors
• Performing modification date propagation, logging user operation
• Modifying redirect string
166
After Update Event
Applies to
Record
Description
This event occurs after updating an existing row in the data source.
Possible applications:
• Checking operation status
• Processing query errors
• Performing modification date propagation, logging user operation
• Modifying the redirect string
Applies to
Editable Grid, Record
Description
This event occurs before the creation of the query that will be used to deleted a database record.
Possible applications:
• Setting custom query parameters or changing existing ones.
Applies to
Editable Grid, Record
Description
This event occurs before the creation of the query that will be used to insert a new record into the database.
Possible applications:
• Setting custom query parameters or changing existing ones
Applies to
Check Box List, Directory, Editable Grid, Grid, List Box, Path, Radio Button, Record, Report
167
Description
This event occurs before the creation of the query that will be used to retrieve records from the database.
Possible applications:
• Altering the criteria used to select the database record.
Examples
Dynamically Modify the WHERE and ORDER BY Clauses of a ListBox,
Dynamically Modify the ORDER BY Clause,
Dynamically Modify the SQL Statement,
Dynamically Modify the WHERE Clause,
Retrieve Values From a Multi-Select ListBox
Applies to
Editable Grid, Record
Description
This event occurs before the creation of the query that will be used to update database content.
Possible applications:
• Setting custom query parameters or changing existing ones
Applies to
Record
Description
This event occurs at the onset of the operations performed to delete an existing record.
Possible applications:
• Checking delete rights
• Preventing row deletion
• Setting query parameters
Applies to
FileUpload Control
168
Description
This event is executed if user submits upload form with delete checkbox selected, before performing file delete
operation.
Possible applications:
• changing file name to delete
• backing up file for later undoing operation
Applies to
Editable Grid, Record
Description
This event occurs after the query has been composed and immediately before a delete query is executed.
Possible applications:
• Altering query components
• Opening a transaction
• Performing transaction operations
Applies to
Editable Grid, Record
Description
This event occurs after the query has been composed and immediately before a row update query is executed.
Possible applications:
• Altering query components
• Opening a transaction
• Performing transaction operations
Applies to
Check Box List, Directory, Editable Grid, Grid, List Box, Path, Radio Button, Record, Report
Description
This event occurs after the query has been composed and immediately before a row update query is executed.
Possible applications:
169
• Altering query components
Applies to
Editable Grid, Record
Description
This event occurs after the query has been composed and immediately before a row update query is executed.
Possible applications:
• Altering query parameters
• Opening a transaction
• Performing transaction operations
Applies to
Record
Description
This event occurs at the onset of the operations performed to insert a new record.
Possible applications:
• Checking insert rights
• Preventing row insertion
• Setting custom query parameters
• Modifying the data to be inserted
Examples
Replace Control Value Before Inserting
Applies to
Page
Description
This event occurs after the current page is rendered and before the output is sent to the client (Web browser).
Possible applications:
• Modify the HTTP entity body before transmission.
170
Before Process File Event
Applies to
FileUpload Control
Description
This event is executed before processing uploaded file (before moving file from temporary into target directory).
Possible applications:
• changing target folder depending on a file extension
Applies to
Directory, Editable Grid, Grid, Path, Record, Report
Description
This event occurs at the onset of the operations performed to select records from the database.
Possible applications:
• Modifying Select parameters
• Changing component properties
Applies to
Button, Check Box, Check Box List, Directory, Editable Grid, Grid, Hidden, Image, Image Link, Label, Label(Report),
Link, List Box, Navigator, Page, Panel, Path, Radio Button, Record, Report, Report Section, Sorter, Text Area, Text
Box
Description
This event occurs before a component is rendered to the page.
Possible applications:
• Assigning custom template variables
• Altering data for populating the template
• Changing structure of the template
• Modifying component properties and visibility
Examples
• Change Control Value
• Changing Text Color
• Dynamic Login Field in a Registration Form
• Hiding a Grid If No Records are Found
171
• Hiding a Record Form Control
• Dynamically Modify the "List Of Values" of a ListBox
• Lookup Single Field Value in a Database
• Retrieve Multiple Field Values from a Database
• Dynamically Set the Default Value of a ListBox
• Add Custom HTML to a Page
• Utilize MySQL Enum Field Type
• Examine Form's Mode
• Working with Custom Template Blocks
Applies to
Directory Path
Description
This event occurs before each top level category is displayed.
Possible applications:
• Altering the data to be displayed in each category
• Assigning custom template variables
Applies to
Editable Grid, Grid
Description
This event occurs before each row in the form is displayed.
Possible applications:
• Altering the data to be displayed in each row
• Assigning custom template variables
Examples
Changing Table Cell Color,
Dynamically Modify a Hyperlink,
Create a Grid Column with a Calculated Value,
Simple Report With Group Headers,
Simple Report with Total,
Simple Report with Simple Grouping
172
Before Show Subcategory Event
Applies to
Directory
Description
This event occurs before showing a subcategory.
Possible application:
• Altering the data to be displayed in each subcategory
• Assigning custom template variables
Applies to
Editable Grid
Description
This event occurs before any database operations are performed with the submitted data.
Possible applications:
• Checking update rights
• Preventing row from updating
• Setting custom query parameters
Applies to
Page
Description
This event occurs before disposing page components and after the page has been composed.
Possible applications:
• Freeing custom resources and other structures
See also
Dynamically Redirect Users to Another Page
173
Applies to
Record
Description
This event occurs at the onset of the operations performed to update a database record.
Possible applications:
• Checking update rights
• Preventing a row from updating
• Setting custom query parameters
Examples
Replace Control Value Before Inserting
On Calculate Event
Applies to
ReportSection
Description
This event occurs after the totals of all function-based controls in the current section are calculated.
Possible applications:
• Custom calculations.
• Change the total control value.
On Click Event
Applies to
Button
Description
This event occurs when a form’s button has been clicked but before any other operations have been performed as a
result of the submission.
Possible applications:
• Performing custom actions in response to button clicks.
Examples
Create Custom Session Variables,
Dynamically Redirect Users to Another Page
174
On Initialized Event
Applies to
ReportSection
Description
This event occurs on initialization of section instance.
Possible applications:
• Dynamically change the height of the current section.
Applies to
Page
Description
This event occurs after handling submitted data and before loading templates for displaying the page.
Possible applications:
• Altering the file name of the loaded template
• Changing the content type
On Validate Event
Applies to
Check Box List, Editable Grid, Hidden, List Box, Radio Button, Record, Text Area, Text Box
Description
This event occurs after standard validation operations have been performed as a result of submitting values, but
before any database operations have been performed with the submitted values.
Possible applications:
• Performing custom validation
• Altering the validation result
Examples
Using the Control Validation Event,
Using the Form Validation Event
Actions
175
Client Side Actions
Custom Code
This action allows you to enter your own code to be executed when the event occurs.
Confirmation Message
This action is used to confirm different operations. To perform this action the JavaScript's Confirm function is applied.
For instance, this action can be placed in the On Click event of a Delete button withint a Record form so as to confirm
the deletion.
Property Description
Message Specify the message to be shown in the confirmation dialog.
Property Description
Control Name Name of the control to be validated.
Regular Expression Regular expression to be used for validation.
Error Message Error message to be displayed if the control value does not match the regular expression.
Set Focus
This action is used to set focus to a particular object in the window. For a input field, focus means that anything typed
by the user will be entered into the field. For a button, focus means that pressing the enter key is equivalent to
clicking the button. Use this action to set focus to a particular field for the convenience of the user or in cases where
you want input to begin at a particular field. When you add this action there are two properties you have to provide.
Property Description
Form Name of the form that the control to be focused on is located.
Control Name of the control to receive focus.
176
Submit Form
You can use this action to submit a form whose name is specified in the Form Name property. The action can also
be used to submit one form from another form or from elsewhere within the page.
Property Description
Form Name The name of the form that should be submitted.
Validate Entry
This action is used to setup one or more validation conditions for a field. Multiple fields within a form can have their
own Validate Entry actions. After the Validate Entry actions have been setup, the Validate Form action is used to
execute all the validations.
Property Description
Required Specify whether a field value is required or not.
Minimum Minimum acceptable field value size.
Length
Maximum Maximum acceptable field value size.
Length
Input Mask Input mask to be used to determine the validity of the field value. The following symbols can be used
for the mask:
• 0 - any digit,
• L - any character in the lower or upper case.
All other symbols should be the same as in the mask string. For example, mask (000) 000-00-00 will
allow entering the telephone in format (123) 123-45-67. Mask LLLL-LL00 will allow outputting the
alphanumeric code with the sign in the middle, for example: ABCD-EF35.
Regular Regular expression to be used to determine the validity of the field value.
Expression
Error Error message to be displayed if an invalid entry is made.
Message
Validation Name of a custom validation function to be executed.
Function
Validate Form
This action makes use of the built-in CodeCharge Studio validation functionality contained in a Jscript include file
called functions.js. A function is called in the file to validate any conditions that have been set for the fields within the
forms using the Validate Entry action. The possible conditions are:
• Required field value
• Minimum field value
• Maximum Field value
• Check against a regular expression
• Call a custom function to validate the field
If any of the conditions are not satisfied, the function displays an appropriate error message.
Property Description
Control Name Name of the control to be validated.
Maximum Length Maximum allowable length of input in the control.
Error Message Error message to be displayed if the maximum length is exceeded.
Property Description
Control Name Name of the control to be validated.
Maximum Value Maximum allowable input value.
Error Message Error message to be displayed if the input value exceeds the maximum value.
Property Description
Control Name Name of the control to be validated.
Minimum Length Minimum allowable length of input in the control.
Error Message Error message to be displayed if the input is less than the minimum length.
Property Description
Control Name Name of the control to be validated.
Minimum Value Minimum allowable input value.
Error Message Error message to be displayed if the input value exceeds the maximum value.
178
Validate Required Value
This action is usually used for any control that accepts input and ensures that the control has a value. The action can
be placed in the On Click event of a button among other places.
The following are the properties that need to be configured for the action.
Property Description
Control Name Name of the control to be validated.
Error Message Error message to be displayed if the control has no value.
Property Description
Expression A code expression which returns the number of columns to be displayed in the Directory form.
Custom Code
This action allows you to enter your own code to be executed when the event occurs.
Declare Variable
The Declare variable action is used to create and initialize a new variable of the specified type.
Property Description
Name Name of the variable. The name should conform to the variable naming conventions of the language
used. If PHP or Perl is used, the "$" sign will automatically be added to the name of the variable in the
code.
Type Type property is ignored for type less languages: ASP, PHP, etc. If the exact type of the variable is not
known, you can use the standard CodeCharge Studio data type which will be converted to the closest
type for the language used.
Initial Value or expression which will evaluate to a value to be assigned to the variable.
value
179
DLookup
Use this action to retrieve the value of a single database field or expression. The retrieved database value is then
used to set the value of a target variable.
Property Description
Expression Field or expression to be used in the SELECT clause of the SQL statement to be executed.
Domain Table or view name to be used in the FROM clause of the SQL statement to be executed.
Criteria Criteria to be used in the WHERE clause of the SQL statement to be executed.
Connection Connection from which the database value will be retrieved.
Convert Data type to which the retrieved value should be converted. The type specified must comply with the
result to nature of the value to be retrieved i.e. a string cannot be converted to an integer. The possible data
types are Text, Integer, Float, Date, Boolean and Memo.
Type Of Type of variable which will receive the retrieved database value [Control, variable, expression,
Target session, application, cookie].
Target Name of the variable which will receive the retrieved database value.
Hide-Show Component
You can use this action to manage the visibility of the component based on the specified condition.
Property Description
Component The name of the component.
Name
Hide/Show Performed Action. The default value is 'Hide'.
Condition Type Specify the Type of calculated expression for the Action to be performed. Valid values: Parameter,
Expression. The default value is 'Parameter'.
Condition Comparison Condition. If 'true' the specified action will be performed.
Compare As Data type of compared parameters. This property is valid if the Condition Type is 'Parameter'. The
default value is 'Text'.
Parameter1(2) Comparison parameters.
Name Parameter name or expression.
Source Type Parameter source. This property is valid if the Condition Type is 'Parameter'.
Format Format used for parameter parsing and formatting before comparison.
Login
The Login action is used to authenticate users after they submit their username and password. This action is found in
all Login forms created using the Authentication Builder, but can also be added to any Record form into which a
user can enter their authentication information. Before a Login action is added to any form within a project, the
security settings for the project must be properly configured in the Project Settings window.
180
Property Description
Login Control Name of the input field where the user will enter their username.
Password Control Name of the input field where the user will enter their password.
Redirect To Prev Specify whether the user should be redirected back to the page they wanted to view before they
Page were directed to the Login page.
See also
Logout action
Logout
This action is the opposite of the Login as it terminates a currently authenticated user session. The action does this
by clearing the values of the session variables which hold the details of the authenticated user.
Property Description
Parameter Name of a URL parameter which indicates that the Logout action should be performed. If the
Name parameter name is set, the Logout action is performed only if this parameter is received.
Return Page Page to which the user is redirected after logging out.
Note: If there is no value entered into this property, then the redirect will not be performed after
logout.
Page If set to False the redirect is performed in this Action to the Return Page. If set to True the redirect is
Redirect performed after closing all connections and clearing the memory on the page level.
Note for .NET users: As the .NET has an improved Garbage Collection Mechamism all redirects are
performed directly. Setting this property to True has no redirect effect.
See also
Login action
Print Text
Use this action to print out some variable or literal text to the screen.
Property Description
Expression Enter the variable or literal to be printed out. Literals such as strings must be properly specified, i.e.
within quotation marks in the case of a string literal.
Property Description
Control Name Name of the control whose value is to be validated. If empty then the current control is used.
Regular Expression Regular expression to be used for validation.
Error Message Error message to be displayed if an invalid entry is made.
181
Retrieve Active Page
Specify this action to retrieve the active page within a Grid or Editable Grid form. The action can be used only in the
Before Show event of a control within a Grid or Editable Grid form. If the Grid or the Editable Grid form is empty, a
value of "1" is returned.
Property Description
Control Name of the control whose value will be set.
Name
Source Type Type of source from where the control value will be retrieved [Expression, URL, form, application,
session or cookie].
Source Actual name of the source variable containing the value to be assigned to the form control.
Name
Property Description
Variable Name of the variable whose value will be set.
Name
Source Type Type of source from where the variable value will be retrieved [Expression, URL, form, application,
session or cookie].
Source Name Actual name of the source variable containing the value to be assigned to the variable.
Property Description
Control Name Name of the control whose value is to be saved.
Destination Type Type of the variable which will receive the value of the control.
Destination Name Actual name of the variable where the control value will be saved.
Property Description
Variable Name Name of the variable whose value is to be saved.
Destination Type Type of the variable which will receive the value of variable being saved.
Destination Name Actual name of the variable where the value will be saved.
Send Email
The Send Email action is used in a Record form to send information based on the value of fields within the form.
Property Description
From Name of a control which will provide the 'From' field of the email. If the value starts with '=', then the
expression coming after this symbol is used in it's literal form. For example, the expression
="someone@somecompany.com" will strictly define the value of the 'From' field as
someone@somecompany.com.
To Name of a control that will provide the 'To' field of the email. If the value starts with '=', then the
expression coming after this symbol is used in it's literal form.
Subject Name of a control that will provide the 'Subject' field of the email. If the value starts with '=', then the
expression coming after this symbol is used in it's literal form.
Message Name of a control which will provide the email's body. If the value starts with '=', then the expression
Body coming after this symbol is used in it's literal form.
HTML Format in which to send the email. If set to True, the massage is sent in HTML format, otherwise it is
sent as plain text.
SMTP Server Address of a SMTP server which will be used to send the email.
Messagebox Full path to the pickup directories for the SMTP service.
Path
Property Description
Expression Expression which returns the page number to be set.
183
Set Number Of New Records
Use this action to set the number of empty rows to be used for adding new records in an Editable Grid form. The
action is used in the Before Select event of the Editable Grid form.
Property Description
Expression Expression that returns the number of empty rows to be used for adding new records.
Property Description
Expression Expression that returns the number of records per page to be displayed in the Grid or Editable Grid. This
should be a positive integer or -1 if all records should be shown on one page.
Set Tag
The Set Tag action is used to set the value of a template variable. This action cannot be used in the non-template
languages such as C#, JSP and ColdFusion without Templates.
Property Description
Tag Name Name of the template variable whose value is to be set.
Expression Expression that will be used to set the value of the tag.
Validate Email
This action is typically used in conjunction with input fields that receive text values. The action ensures that the value
entered is in the valid format of an email address. This action can only be used in the On Validate event.
Property Description
Control Name Name of the control that will contain the email address.
Error Error message to be displayed if the input value does not correspond with the format of an email
Message address.
Property Description
Control Name Name of the control to be validated.
Maximum Length Maximum allowable length of input in the control.
Error Message Error message to be displayed if the maximum length is exceeded.
184
Validate Maximum Value
This action is typically used in conjunction with input fields that receive numeric values. The action ensures that the
value entered is less than a specified maximum value. This action can only be used in the On Validate event.
Property Description
Control Name Name of the control to be validated.
Maximum Value Maximum allowable input value.
Error Message Error message to be displayed if the input value exceeds the maximum value.
Property Description
Control Name Name of the control to be validated.
Minimum Length Minimum allowable length of input in the control.
Error Message Error message to be displayed if the input is less than the minimum length.
Property Description
Control Name Name of the control to be validated.
Minimum Value Minimum allowable input value.
Error Message Error message to be displayed if the input value is less than the minimum value.
Validate Phone
This action is typically used in conjunction with input fields that receive text values. The action ensures that the value
entered corresponds with the specified phone number format. This action can only be used in the On Validate event.
Property Description
Control Name Name of the control to be validated.
Format Phone number format used for validation. Default value is (000) 000-0000.
Error Message Error message to be displayed if the input value does not match the phone number format.
185
Property Description
Control Name Name of the control to be validated.
Error Message Error message to be displayed if the control has no value.
Validate ZIP
This action ensures that the value entered in an input control corresponds with a specified ZIP code format. This
action can only be used in the On Validate event.
Property Description
Control Name Name of the control to be validated.
Format Format used for the validation. Default value is 00000.
Error Message Error message to be displayed if the input value does not match the ZIP format.
186
Programming Reference
ASP
Functions
Description
Add the parameter with specified value into the GET query string. If the parameter with given name exist its value will
be changed for ParameterValue.
Syntax
CCAddParam(QueryString, ParameterName, ParameterValue)
Return value
String
Parameters
Name Type Description Required
QueryString String Query string to which the parameter is added. Yes
ParameterName String Name of the parameter. Yes
ParameterValue Variant Value of the parameter. Yes
See also:
CCRemoveParam function
Description
187
Looks up a value from the database by executing a database query against a connection. It queries a database table
based on a specified filter and returns the value of the first retrieved field.
Syntax
CCDLookUp(ColumnName, TableName, Where, Connection)
Return value
variant
Parameters
Name Type Description Required
ColumnName string Database expression to evaluate. In most cases a field name. Yes
TableName string Name of the database table or view to query. Yes
Where string WHERE clause to filter the returned records. Yes
Connection clsDB<name> object Connection object to use for executing the query. Yes
Example 1
This code would usually be placed in the Before Show event of a Record form.
if tasks.EditMode then
tasks.user_id_assign_by.Value = CCDLookUp("emp_name", "employees",
"emp_id=" &_
DBIntranetDB.ToSQL(tasks.user_id_assign_by.Value, ccsInteger) ,
DBIntranetDB)
else
tasks.user_id_assign_by.Value = CCDLookUp("emp_name", "employees",
"emp_id=" &)_
DBIntranetDB.ToSQL(CCGetUserID(), ccsInteger), DBIntranetDB)
end if
Example 2
The following code uses the CCDLookUp function to lookup the sender's name and email address, and the receiver's
email address for sending an email using the ASPEmail component. This code would usually be placed in the After
Insert event of a Record form.
Dim Mailer
188
Mailer.Host = "mysmtphost.com"
Mailer.IsHTML = True
Mailer.Subject = "New task for you"
Mailer.Body = "A new task was assigned to you. "
Mailer.Send
set Mailer = Nothing
Description
Formats a date value according to the specified format mask.
Syntax
CCFormatDate(DateToFormat,FormatMask)
Return value
String
Parameters
Name Type Description Required
DateToFormat Date Date value to format. Yes
FormatMask Array of Each string is one of the following components (all other components are Yes
strings left unchanged when building formatted value):
d day
w week
m month
q quarter
y day of the year
h hour in 12-hour format
H hour in 24-hour format
n minute
s second
dd zero-filled day
ww week of year
mm zero-filled month
yy two-digit year
hh zero-filled hour in 12-hour format
HH zero-filled hour in 24-hour format
nn zero-filled minute
ss zero-filled second
ddd short weekday name
mmm short month name
189
A/P A or P according to AM/PM
a/p a or p according to AM/PM
dddd weekday name
mmmm month name
yyyy year
AM/PM AM or PM
am/pm am or pm
LongDate long date format
LongTime long time format
ShortDate short date format
ShortTime short time format
GeneralDate general date format
Example
Description
Retrieves a value of the GET input parameter. If there is no value returned, the function returns the default value
specified in the function call.
Syntax
CCGetFromGet(ParameterName, DefaultValue)
Return value
String
Parameters
Name Type Description Required
ParameterName String Name of the parameter to retrieve. Yes
DefaulfValue Variant Value to return if parameter is not set. Yes
See also:
CCGetParam function,
CCGetFromPost function
190
Description
Retrieves a value of the POST input parameter. If there is no value returned, the function returns the default value
specified in the function call.
Syntax
CCGetFromPost(ParameterName, DefaultValue)
Return value
String
Parameters
Name Type Description Required
ParameterName String Name of the parameter to retrieve. Yes
DefaulfValue Variant Value to return if parameter is not set. Yes
See also:
CCGetParam function,
CCGetFromGet function
Description
Retrieves the security group ID value of the currently logged in user.
Syntax
CCGetGroupID()
Return Value
Integer
Description
Retrieves a value of the GET or POST input parameter. The function first attempts to retrieve the parameter from the
GET query string and if no value is returned, then the function checks for a POST input parameter with the same
name. If no value is returned by a GET or POST input parameter, the function returns the default value specified in
the function call.
Syntax
CCGetParam(ParameterName, DefaultValue)
191
Return value
String
Parameters
Name Type Description Required
ParameterName String Name of the parameter to retrieve. Yes
DefaulfValue Variant Value to return if parameter is not set. Yes
Example 1
This code would usually be placed in the After Initialize event of a Page.
Example 2
The following code disables record updates if a task is not assigned to the current user. CCGetParam function is
used to retrieve the current task id from the GET or POST data being submitted. This code would usually be placed in
the Before Update event of a Record form.
Dim current_task
Dim assigned_user
current_task = CCGetParam("task_id", Empty)
assigned_user = CCDLookUp("user_id_assign_to", "tasks", "task_id=" &_
DBIntranetDB.ToSQL(current_task, ccsInteger), DBIntranetDB)
if current_task <> 0 and CCGetUserID <> assigned_user Then
tasks.UpdateAllowed = False
end if
See also:
CCGetFromGet function,
CCGetFromPost function
Description
Retrieves the primary key value that uniquely identifies the currently logged in user.
Syntax
CCGetUserID()
192
Return Value
Integer
Example 1
This code would usually be placed in the Before Show event of a Record form.
If tasks.EditMode Then
tasks.user_id_assign_by.Value = CCDLookUp("emp_name", "employees",
"emp_id=" &_
DBIntranetDB.ToSQL(tasks.user_id_assign_by.Value, ccsInteger),
DBIntranetDB)
Else
tasks.user_id_assign_by.Value = CCDLookUp("emp_name", "employees",
"emp_id=" &_
DBIntranetDB.ToSQL(CCGetUserID(), ccsInteger), DBIntranetDB)
End if
Example 2
The following code uses the CCGetUserID function to lookup the current user's name and email address which is
then used for sending an email using the ASPEmail component.
This code would usually be placed in the After Insert event of a Record form.
Dim Mailer
Set Mailer = Server.CreateObject("Persits.MailSender")
Mailer.From = CCDLookUp("email", "employees", "emp_id=" &_
DBIntranetDB.ToSQL(CCGetUserID(), ccsInteger), DBIntranetDB)
Mailer.FromName = CCDLookUp("emp_name", "employees", "emp_id=" &_
DBIntranetDB.ToSQL(CCGetUserID(), ccsInteger), DBIntranetDB)
Mailer.AddAddress = CCDLookUp("email", "employees", "emp_id=" &_
DBIntranetDB.ToSQL(tasks.user_id_assign_to.Value, ccsInteger) ,
DBIntranetDB)
Mailer.Host = "mysmtphost.com"
Mailer.IsHTML = True
Mailer.Subject = "New task for you"
Mailer.Body = "A new task was assigned to you. "
Mailer.Send
set Mailer = Nothing
Description
Retrieves the specified field value from the current row of a recordset.
Syntax
CCGetValue(RecordSet,FieldName)
193
Return Value
String
Parameters
Name Type Description Required
RecordSet ADODB.Recordset Recordset to retrieve the value from. Yes
FieldName String or Integer Field name or field index whose value is to be retrieved. Yes
Description
Opens a new recordset based on a specified SQL query.
Syntax
CCOpenRS(RecordSet,SQL, Connection,ShowError)
Parameters
String (error message)
Parameters
Name Type Description Required
RecordSet Variant (ADODB.Recordset after call) Variable in which the recordset will be Yes
returned.
SQL String The SQL query to be used to select records Yes
for the recordset.
Connection ADODB.Connection or Connection object to execute the query Yes
clsDB<name>.connection object against.
Description
Parses the specified date string into a date value according to the specified date format.
Syntax
CCParseDate(ParsingDate,FormatMask)
Return value
Date
Parameters
194
Name Type Description Required
ParsingDate String Date to parse. Yes
FormatMask Array of strings (see CCFormatDate for available Format mask to parse the date Yes
patterns) with.
Example
CCParseDate("2002 May 1",array("yyyy"," ","mmm"," ","d")) -> #2002-05-
01#
Description
Returns a text description of the last error for the current connection or 'Empty' if the error collection is empty.
Syntax
CCProcessError(Connection)
Return value
String
Parameters
Name Type Description Required
Connection ADODB.Connection or clsDB<name>.connection Connection object to get the Yes
object errors.
Description
Removes a parameter from the GET query string.
Syntax
CCRemoveParam(QueryString, ParameterName)
Return value
String
Parameters
195
Name Type Description Required
QueryString String Query string from which the parameter is removed. Yes
ParameterName String Name of the parameter to remove. Yes
See also:
CCAddParam function
Description
Evaluates an expression and returns one of two results, depending on whether the expression is True or False.
Syntax
IIf(Expression,TrueResult,FalseResult)
Parameters
Name Type Description Required
Expression Boolean Expression to be evaluated. Yes
TrueResult Variant Result to be returned if the expression is True. Yes
FalseResult Variant Result to be returned if the expression is False. Yes
Example
IIf(2>1,"yes","no") -> "yes"
Methods
Applies to
Panel
Syntax
object.AddComponents(Components)
Parameters
Name Type Description Required
Components Array Array contains components. Yes
196
Description
This method binds components to the panel object.
Example
Panel1.AddComponents(Array(Label1,TextBox1,Grid1))
Applies to
Connection Object
Syntax
<connection>.Close
Description
This method closes a database connection and releases its resources. This method should always be called after a
currently open database connection is no longer needed. However, this should be done with connections that were
created manually only or if page processing is finished because of user's redirection for instance.
Examples
This example closes database connection and redirects to a root website URL. This may be used if some fatal page
requirement is not met (required parameter for instance).
It assumes connection is called Connection1.
DBConnection1.Close
Response.Redirect "/"
Response.End
See also
Redirect Variable
Before Unload Event
Applies to
Connection Object
Syntax
<connection>.Execute query
Set <recordset> = <connection>.Execute(query)
Return value
ADODB.Recordset
197
Parameters
Name Type Description Required
query string or String containing an SQL query to be executed against the Yes
ADODB.Command object database or an ADODB.Command object to execute.
Description
This method executes a specified SQL query against the database connection.
The first syntax shown above is used when the query will not return a recordset (e.g. INSERT/UPDATE/DELETE
queries). The second syntax is used when the query will return a recordset object (e.g. SELECT query).
Examples
The following example opens a custom recordset to build a list of groups the user belongs to (comma-separated).
Recordset is iterated, string built and assigned to record's label control.
It assumes groups and group_users tables exist. Connection is called Connection1. UserProfile form and
UserGroups label are assumed to exist. This code may be inserted into label's Before Show event.
Dim rsGroups
Dim strGroups
Dim SQL
strGroups = ""
SQL = "SELECT group_name FROM group_users gu LEFT JOIN groups g ON
gu.group_id = g.group_id "&_
"WHERE gu.user_id = " &
DBConnection1.ToSQL(CCGetUserID(),ccsInteger)
Set rsGroups = DBConnection1.Execute(SQL)
While rsGroups.EOF
strGroups = IIf(strGroups = "", rsGroups("group_name"), ", " &
rsGroups("group_name"))
rsGroups.MoveNext
Wend
UserProfile.UserGroups.Value = strGroups
See also
DataSource.SQL Property
Applies to
Calendar Form
Syntax
Set ev = object.GetEvents DateEvents
Return value
object
Parameters
198
Name Type Description Required
DateEvents date Specifies the date for which the events should be returned. Yes
Description
This method returns calendar events for the specified date.
Examples
The following example shows how to retrieve events for current date.
Dim DayEvents
Set DayEvents = Calendar1.GetEvents(Calendar1.CurrentProcessingDate))
If DayEvents Is Nothing Then
Calendar1.label1.Value=""
Else
Calendar1.label1.Value=DayEvents.Count
End If
See also
CalendarSetEvent
Applies to
FileUpload Control
Syntax
object.GetOriginFileName
Description
This method retrieves the original file name of an uploaded file (i.e. without the prefix that is added to ensure that the
file name is unique).
This function can be used to display the original file name to the user or construct alternative save names.
Examples
The following example constructs an uploaded file download link with a specific label containing original file name
and size.
It assumes the form is named Form1 and the upload control is named FileUpload1. DownloadLink is a link control.
If Form1.FileUpload1.IsUploaded Then
Form1.DownloadLink.Link = Form1.FileUpload1.Value
Form1.DownloadLink.Value = "download " &
Form1.FileUpload1.GetOriginFileName(Form1.FileUpload1.Value) & " [" &
Form1.FileUpload1.FileSize & "]"
End If
199
See also
Value Property
FileFolder Property
Get Original Filename Action
Applies to
Connection Object
Syntax
<connection>.Open
Description
This method establishes a database connection. If the user creates a custom connection object, this method should
be called to initialize the database connection.
Examples
This example creates a custom connection.
Dim customConn
customConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" & Server.MapPath("database.mdb")
customConn.Open
See also
ConnectionString Property
Applies to
Calendar Form
Syntax
object.SetEvent DateEvent, CalendarEvent
Parameters
Name Type Description Required
DateEvent date Specifies the date of the event Yes
CalendarEvent object Specifies a event. Yes
Description
This method adds a new event to the Calendar events collection.
200
See also
CalendarEvents
Applies to
Template object
Syntax
<object>.SetVar VariableName,Value
Return value
None
Parameters
Name Type Description Required
VariableName string Specifies the template block or variable name in the template file bound to the Yes
template object.
Value string Specifies a value that should replace the template block or variable provided as Yes
the first argument.
Description
This method replaces a template block or a variable defined in the template file with the value provided as the second
argument. A template variable is an identifier surrounded by curly braces (i.e. {templ_variable}. A template
block is a part of the template file surrounded by two special HTML comments. One that starts the block: <!--
BEGIN block_name --> and the other that ends the block: <!-- END block_name -->.
Note: If there are multiple template blocks or variables with the same name, SetVar will replace all of them with the
same value.
Applies to
Connection Object
Syntax
<connection>.ToSQL(Value, DataType)
Return value
string
Parameters
Name Type Description Required
Value any A value to be converted to Yes
SQL compatible format.
201
Data The data type the value will be converted to. You can use any of Desired data type. Yes
Type the predefined constants: ccsDate, ccsBoolean, ccsInteger,
ccsFloat, ccsText, ccsMemo
Description
This method converts values to the specified data type in order to make them SQL compatible.
Run-Time Properties
Applies to
FileUpload Control
Type
string
Access
read/rite
Syntax
object.AllowedFileMasks [= value]
Description
Specifies a list of file masks (separated with semicolon) that are allowed by the FileUpload component. If a user tries
to upload a file with a mask that matches one of the masks specified in this property, the file will be uploaded (unless
the mask is also listed in the DisallowedFileMasks property). Otherwise, the upload will fail and an error message
will be displayed. The AllowedFileMasks property corresponds to the "Allowed File Masks" Design-Time property of
the FileUpload component.
Example
The AfterInitialize event procedure shown below alters the AllowedFileMasks property for logged and not logged in
users. Anonymous users are allowed to upload only text files (txt), logged in users may upload any file.
Function Page_AfterInitialize()
End Function
202
See also
DisallowedFileMasks Property
Applies to
Calendar Form
Type
dictionary
Access
read/write
Syntax
object.CalendarStyles
Description
Contains the calendar styles that depend on the builder settings.
Note: This property can be modified in the Before Show event.
Examples
The following example shows how to change some styles.
See also
CurrentStyle property
Applies to
Panel
Type
dictionary
Access
read/write
Syntax
object.Components
203
Description
Contains all children of the current panel. Can be used to iterate through all children.
Example
The following example iterates through panel controls and sets their Visible property to False.
Applies to
Connection Object
Type
object (ADODB.Connection)
Access
Read-only
Syntax
object.Connection.<member>...
Description
Retrieves ADO Connection object used to access underlying database. This object can be used to perform some low-
level database operations not exposed by wrapping Connection Object. They may include extracting some database-
specific settings and attributes or starting and closing transactions for instance.
For complete listing of properties and methods for this object refer to ActiveX Data Objects Reference available from
Microsoft's website.
Examples
The following ADO Connection object's methods can be used to start transaction, rollback it or commit the results.
Transaction is a set of database operations that have to be executed as a whole, if one fails previous ones should be
reverted.
DBInternetDB.Connection.BeginTrans
DBInternetDB.Connection.RollbackTrans
DBInternetDB.Connection.CommitTrans
Note: Some database types or drivers may not support transactions
See also
Execute Method
ConnectionString Property
204
ConnectionString Run-Time Property (ASP)
Applies to
Connection Object
Type
string
Access
read/write
Syntax
object.ConnectionString [=value]
Description
This property contains connection string used to establish database connection. This string includes connection type,
user credentials, database name or path and some other parameters. The connection string is passed to ADO
Connection object when opening.
This property can be modified if some database connection properties are determined during run-time.
For complete connection string syntax refer to ActiveX Data Objects Reference available from Microsoft's website.
Note: For property change to take effect connection object has to be closed and reopened.
Examples
This example modifies connection's ConnectionString property to use MS Access driver and database path extracted
from a session variable.
DBConnection1.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
Session("DatabasePath")
DBConnection1.Close
DBConnection1.Open
See also
Connection Property
Applies to
Calendar Form
Type
date
Access
read/write
205
Syntax
object.CurrentDate [= value]
Description
Specifies the date shown in the calendar. For example, for the Monthly calendar the date can be any date of this
month.
Note: The value of this property can be modified in the Page's Before Show event.
Examples
The following example shows how to make the calendar always show January 2005.
Calendar1.CurrentDate = DateSerial(2005, 1, 1)
Applies to
Calendar Form
Type
date
Access
read
Syntax
object.CurrentProcessingDate
Description
Specifies the current processing date. The value of this property can be modified in the Before Show Day, Before
Show Week, Before Show Month, and Before Show events.
See also
PrevProcessingDate property,
NextProcessingDate property
Applies to
Calendar Form
Type
string
206
Access
read/write
Syntax
object.CurrentStyle [= value]
Description
Contains the calendar style of the currently processed block.
Note: The value of this property can be modified in the Before Show Day, Before Show Week, Before Show Month,
and Before Show events.
Examples
The following example shows how to change style.
See also
CalendarStyles property
Applies to
Grid Form, ListBox Control, RadioButton Control, CheckboxList Control, Navigator Control, Record Form,
EditableGrid Form, Directory Form, Path Form
Type
Data Source Object
Access
read/write
Syntax
object.DataSource [= value]
Description
This property stores reference to data source bound to the specified object. Data source handles all data retrieval
and update operations. It serves as an abstraction layer that hides underlying data source details, whether it is a
database, a list of values or even a web service. It is common to use this property to access field values from within
bound objects. DataSource object provides properties (i.e. SQL, Where, Order) that can be used to modify the SQL
query that is executed in order to provide data for the object.
Examples
This example shows how the SQL property of the DataSource object can be modified to alter the list of values
extracted from the database.
Note: the syntax used to concatenate two fields (firstname and lastname) into the name field is not
recognized by the standard of SQL language (here it is used for Access database only).
Function customers_DataSource_BeforeBuildSelect()
207
customers.DataSource.Sql = "SELECT customer_id, (firstname & ' ' &
lastname) AS name, city FROM customers"
End Function
See also
Connection Property
DataSource.SQL
DataSource.Where
DataSource.Order
Related Examples
Dynamically Modify the SQL Statement
Dynamically Modify the WHERE Clause
Dynamically Modify the WHERE and ORDER BY Clauses of a ListBox
Dynamically Modify the ORDER BY Clause
Applies to
DataSource Object
Type
string
Access
read/write
Syntax
object.DataSource.CountSQL [=value]
Description
Stores the main part of the SQL query that is used to find the number of records fetched by DataSource object.
This property does not include the WHERE clause. Before the query is executed, conditions from the Where and
WhereParameters properties are used instead.
Note: The usual content of this property includes the COUNT aggregate function: SELECT COUNT(*) FROM ...
See Also
DataSource.SQL Property
DataSource.Where Property
Recordset.RecordCount Property
Applies to
DataSource object
208
Type
string
Access
read/write
Syntax
object.DataSource.Order [=value]
Description
This property holds the list of fields that are used in the ORDER BY clause of the SELECT query. CCS initializes this
property internally, for example if an order option has been specified in the properties of the form. Modification of this
field (before the query is executed) will change the order of the results.
Example
The sample code below assigns default sorting field to the Order property if the property has not been initialized
earlier.
Function Page_AfterInitialize()
If articles.DataSource.Order = Empty Then
articles.DataSource.Order = "date_add"
End if
End Function
See also
DataSource.SQL property
DataSource.Where property
Related Examples
Dynamically Modify the ORDER BY Clause
Applies to
DataSource object
Type
string
Access
read/write
Syntax
object.DataSource.SQL [=value]
209
Description
This property stores the main part of a query that retrieves data for the form. The main part usually includes the
actual SQL command (SELECT), list of fields to be retrieved and a list of tables from which the data will be retrieved
(FROM).
The SQL query is eventually built as concatenation of SQL, Where and Order properties.
To modify the SQL property (alter the SQL query), you should use the BeforeBuildSelect event procedure of the
form.
Examples
This example shows how the SQL property of the DataSource object can be modified to alter the list of values
extracted from the database.
Note: The syntax used to concatenate two fields (firstname and lastname) into the name field is not
recognized by the standard of SQL language (here it is used for Access database only).
See also
DataSource property
DataSource.Where property
DataSource.Order property
Applies to
DataSource Object
Type
string
Access
read/write
Syntax
object.DataSource.Where [=value]
Description
This property stores all conditions that are eventually used in the WHERE clause of a query that selects, updates or
deletes data from the database. Programmers can add their own conditions (preserving the SQL syntax) in one of the
events triggered before the final query is built and executed (i.e. BeforeBuildSelect, BeforeBuildDelete,
BeforeBuildUpdate).
See also
DataSource.SQL property
DataSource.Order property
Related Examples
Dynamically Modify the WHERE and ORDER BY Clauses of a ListBox
Dynamically Modify the WHERE Clause
Retrieve Values From a Multi-Select ListBox
210
DeleteAllowed Run-Time Property (ASP)
Applies to
Record Form, EditableGrid Form
Type
Boolean
Access
read/write
Syntax
object.DeleteAllowed [= value]
Description
This property contains a Boolean value that determines if the form has record delete operation enabled. This affects
Delete button displaying and database delete operations.
If security is configured for the site and the form's Restricted property has been set to "Yes", the default delete
operation permission depends on current user's group permissions. If Restricted property is set to “No” then
DeleteAllowed property is set to True unless modified in Before Delete event event.
This property may be set according to a custom permissions checking scheme to enable or disable delete record
operation. The delete button is hidden only if the value is set before the form's Before Show event (for instance in the
parent component). Requested delete operation may be cancelled in Before Delete event if the DeleteAllowed
property is set to false.
Examples
The following example checks if the order record that is requested to be removed belongs to the currently logged in
user. If it does, the operation is carried out. Otherwise, the delete database operation is not performed.
The example assumes DeleteOrder form exists and user_id hidden field to store the owner's identifier is inserted.
This code may be inserted into Before Delete event.
See also
Before Delete Event
ReadAllowed Property
InsertAllowed Property
UpdateAllowed Property
Applies to
FileUpload Control
211
Type
string
Access
read/write
Syntax
object.DisallowedFileMasks [= value]
Description
Specifies a list of file masks (separated by semicolons) that are not allowed by the FileUpload component. File mask
item may contain * and ? characters for matching any characters.
If a user provides a file with a name that matches one of the masks specified in this property, the file will not be
uploaded and an error message will be displayed. The verification is performed during control validation, before
calling the control's On Validate event. The result of the check may be reset during this event.
The DisallowedFileMasks property corresponds to the "Disallowed File Masks" Design-Time property of the
FileUpload component.
Note: The DisallowedFileMasks property has higher priority than AllowedFileMasks property. In other words, if a
mask is mentioned in both properties (AllowedFileMasks and DisallowedFileMasks) the upload will fail.
Examples
The following example resets disallowed file masks if the user's security level is higher than 1. Otherwise, HTML,
ASP and ZIP files are restricted.
See also
OnValidate event
AllowedFileMasks property
Applies to
Record Form, EditableGrid Form
Type
Boolean
Access
read-only
Syntax
object.EditMode
212
Description
This property determines whether given record form is currently in edit or insert mode. In edit mode all data source
parameters need to have values assigned (including row identifier). In insert mode some data items may be empty.
See also
Errors property
Example
The following code (placed in the OnValidate event procedure ) checks the state of the modified_by form field
and generates an error message if the field is empty. Thanks to the EditMode property, custom verification takes
place only if the record is updated (not inserted).
Function articles_OnValidate()
End Function
Applies to
EditableGrid Form
Type
number
Access
read/write
Syntax
object.EmptyRows [=value]
Description
Specifies the number of empty rows displayed at the bottom of the editable grid. Each empty row allows the user to
insert a new record into the database. The more empty rows, the more records can be inserted at once.
Users may modify this property to change the number of empty rows according to their preferences, or to display a
constant number of rows (editable and empty ones) on the form.
Examples
The following code sets the number of empty rows according to session variable that stores the preferred number of
insertable rows. This code should be placed in editable grid's Before Show event.
Dim RowsNum
RowsNum = Session("NoRowsToInsert")
If IsNumeric(RowsNum) AND NOT IsEmpty(RowsNum) Then
213
InvoiceRowsGrid.EmptyRows = RowsNum
Else
InvoiceRowsGrid.EmptyRows = 1
End If
Applies to
ReportLabel Control
Type
string
Access
read/write
Syntax
object.EmptyText
Description
Specifies the text to be output when the label value is empty.
Example
ReportLabel1.EmptyText = "xxx"
Applies to
EditableGrid Form
Type
array of strings
Access
read/write
Syntax
object.ErrorMessages(<index>) [=value]
Description
214
This property is used to collect error messages from all rows of the editable grid. The index of the ErrorMessages
array corresponds to the row number in the editable grid (on the given page). Messages are inserted to the table
while each row values are validated. If the validation is successful (all data is correct) - the property is empty,
otherwise its content is used to display error messages above the rows that did not pass the validation.
Users may modify this array by either resetting existing messages or replacing the existing with custom ones. Either
grid's Before Show or On Validate events can be used for this modification.
Examples
The following code replaces all specific validation error messages in the editable grid with plain "This line needs to be
corrected".
Dim i
For i = 1 To UBound(OrderItems.ErrorMessages)
If Not IsEmpty(OrderItems.ErrorMessages(i)) Then
OrderItems.ErrorMessages(i) = "This line needs to be corrected"
End If
Next
See also
Errors property
OnValidate event
Applies to
Label Control, TextBox Control, TextArea Control, Checkbox Control, Image Control, ImageLink Control, DatePicker
Control, Hidden Control, Connection Control, Grid Form, ListBox Control, CheckboxList Control, RadioButton Control,
Record Form, EditableGrid Form, Path Control, Directory Control, FileUpload Control
Type
object (clsErrors)
Access
read-only
Syntax
object.Errors.<member>...
Description
This property keeps the reference to the object's errors collection. This collection is used to collect error messages
generated during the object's execution.
Errors collection exposes three important members:
Member Description
Errors.Count This property returns the number of errors the collection contains. It can be used for
testing if the collection is empty or contains any error messages.
Errors.AddError <message> This method adds specified error message to the collection. It can be used to insert
error messages when performing custom validation.
Errors.Clear This method resets the collection removing all previously added error messages. It
215
can be used to force successful form submit processing despite validation errors or to
clear error messages before replacing them with custom ones.
Examples
The following code checks if the errors collection is empty. If there are any error messages, all of them are replaced
with a customized one.
The code assumes OrderForm form exists on the page. This code may be inserted into On Validate event.
See also
On Validate event
Related Examples
Using the Control Validation event
Using the Form Validation event
Retrieve Multiple Field Values from a Database
Applies to
Calendar Form
Type
object
Access
read/write
Syntax
object.Events
Description
Contains the calendar events. This value can be manually modified.
Note: The value of this property can be also modified in Before Show event.
Examples
The following example shows how to add new event.
216
CustomEvent.EventTime = TimeSerial(12, 30, 0)
CustomEvent.EventDescription = "Some text"
AddEvent CustomEventDateTime, CustomEvent
Applies to
FileUpload Control
Type
string
Access
read/write
Syntax
object.FileFolder [=value]
Description
Specifies a folder on the web server where uploaded files will be eventually stored. The initial value of this property
comes from the "File Folder" design-time property of the FileUpload component.
This property may be used to specify different target folders for keeping different file types or to sort uploads in
different folders for different users. The property should be set in Before Process File event.
Note: The property's value is set only if the pointed folder exists. Absolute filesystem paths should be used to avoid
context ambiguities. Server.MapPath method can be used to determine the absolute folder path.
Examples
The following example checks if the uploaded file extension is JPG. If so, the file will be saved into images
subdirectory. Otherwise, the file will saved into uploads subdirectory.
The code assumes Form1 form exists and it contains FileUpload1 control. This code can be inserted into control's
Before Process File event.
See also
TemporaryFolder property
Value property
Before Process File event
217
Applies to
FileUpload Component
Type
number
Access
read-only
Syntax
object.FileSize
Description
Specifies the size (in bytes) of the file that has been uploaded to the server. Value of this property is set while the file
is processed by the server and it is used later on to verify if the size of the file is not greater than the specified file size
limit (held in the FileSizeLimit property).
Example
The following AfterProcessFile event procedure adds the file size value (as the GET parameter) to the redirection
URL (see the Redirect variable reference):
Function attachments_fu_AfterProcessFile()
End Function
See also
FileSizeLimit property
Applies to
FileUpload Component
Type
number
Access
read/write
Syntax
object.FileSizeLimit [=value]
Description
218
Specifies the maximum size (in bytes) of a file that can be uploaded to the server. If the size of the uploaded file is
greater than value of this property, the upload fails and appropriate error message is displayed.
Note: the initial value of this property comes from the "File Size Limit" design-time property of the FileUpload
component.
Example
The sample code below (inside the AfterInitialize event procedure of the page) sets a new file size limit for the file
upload control (fu). The new value of the limit is taken from maxfilesize session variable. (Such variable can be
set, for example, in the OnClick server-side event procedure of the Login button, after the user has been
successfully authenticated):
Function Page_AfterInitialize()
Dim mfs
mfs = Session("maxfilesize")
If Not IsEmpty(mfs) Then
attachments.fu.FileSizeLimit = mfs
End if
End Function
See also
FileSize property
Applies to
Label Control, TextBox Control, TextArea Control, Checkbox Control, Image Control, ImageLink Control, DatePicker
Control, Hidden Control,
Type
array of variants
Access
read-write
Syntax
object.Format [=value]
Description
Holds constraints used to translate the control's value from its internal state to the required public representation.
Applies to
Record Form
219
Type
Boolean
Access
read-only
Syntax
object.FormSubmitted
Description
This property determines whether record processing is performed in initial show or in postback mode. In show mode,
the record’s fields are assigned data source’s value (or none). In postback mode, user provided data is available for
processing.
Applies to
Section Control
Type
number
Access
read/write
Syntax
object.Height
Description
Specifies the height of the section in abstract "line" units.
Example
Report_Footer.Height = 1.2
Applies to
Record Form, EditableGrid Form
Type
Boolean
220
Access
read/write
Syntax
object.InsertAllowed [=value]
Description
This property contains a Boolean flag that if true, allows insert database operations. This property should be changed
to false in Before Insert (or On Validate) event to prevent a form from creating a new record in the database if the
user's custom data verification fails.
See also
UpdateAllowed property
DeleteAllowed property
ReadAllowed property
Applies to
EditableGrid Form
Type
Boolean
Access
read-only
Syntax
object.IsFormSubmitted
Description
This property determines whether editable grid processing is performed in show or in postback mode. In show mode,
the grid’s fields are assigned values from the data source (or none when inserting). In postback mode, user provided
data is available for processing.
This property may be used to specify different behavior in show and in postback mode. Using this property in
combination with EditMode property allows to determine all possible form states.
Note: Usually, the browser is redirected (using Return Page property setting) after successful submit processing and
any modifications made to form's view depending on IsFormSubmitted = true condition will be visible only if
validation fails.
Examples
The following example displays specific warning message when the form is in failed validation mode. If validation
succeeds, no visible effects are output and the browser is redirected.
The code assumes the grid is called EditableGrid1, the label which will display the error message is called Label1.
This code may be used in form's Before Show event.
If EditableGrid1.IsFormSubmitted Then
221
EditableGrid1.Label1.Value = "Please don't use browser's Refresh
button.<br>Correct validation errors and resubmit."
End If
See also
EditMode property
Applies to
Report Form,
Type
boolean
Access
read
Syntax
object.IsPercent
Description
Specifies whether the report label value should be output as the percentage of corresponding total value.
Example
If ReportLabel1.IsPercent Then _
ReportLabel1.Text "<b>" & ReportLabel1.Text & "</b>"
See also
TotalFunction property
Applies to
FileUpload Control
Type
Boolean
Access
read-only
222
Syntax
object.IsUploaded
Description
This property holds upload control's state. If a file is being processed after submitting the form, or a file has been
previously uploaded, this property is set to true. If no file has been uploaded, the property is set to false.
This property may be used to handle different file upload component behavior when it is populated and when it is
empty. For instance, the FileUpload component may be hidden if a file has been previously uploaded and the user
has no permissions to delete it. In case a file exists, additional information may be extracted from the filesystem to be
displayed by another control (modification date for instance).
Examples
The following example retrieves the file's creation date and assigns it to a label if upload control is populated.
This example assumes Form1 record contains FileUpload1 upload control. Label1 control is assigned a value
depending on the file's date.
If Form1.FileUpload1.IsUploaded Then
Dim fso
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Form1.Label1.Value = "uploaded on " &
fso.getFile(Form1.FileUpload1.FileFolder &
Form1.FileUpload1.Value).DateCreated
End If
See also
FileSize property
FileFolder property
Value property
GetOriginFileName method
Applies to
Link Control, ImageLink Control
Type
string
Access
read/write
Syntax
object.Link [=value]
Description
The Link property stores the URL (including the query string) that is assigned to the HREF attribute of the HTML link
(<a...> tag). This property is used only by the Link and Image Link controls. When read, the link value is constructed
as concatenation of two components: one that holds the bare URL (Page property) and the other one that stores the
223
query string (Parameters property). When written, the new value is split into the URL part and query string part. After
the assignment, new URL is available through the Page property and new query string is available through the
Parameters property.
Important: The assigned value must be a proper link. For example the query string must not include question marks
(?). Such corrupt query string will be ignored.
Examples
The following example changes the link's label and hyperlink depending on whether hidden field is set or not. Either
link to parent category edit page is provided, or if edited category is top level, the link points to categories listing
page.
The example assumes EditCategoryForm exists on EditCategory page. There is ParentLink link control inserted
and parent_id hidden field. Categories is a page that lists all top-level categories navigated if no parent category is
specified in the record.
Another example changes the link's target address depending on whether the user is logged in or not. Either link to
login page or to the user's profile page is given.
This example assumes there is WelcomeLink control inserted within common includable page called Header. If the
user is logged in, a link to EditProfile page is provided (and the link's label is changed). If the user is not logged in, a
login prompt is displayed and Login page link is provided.
If CCGetUserID() Then
Header.WelcomeLink.Value = "Welcome " & CCGetUserLogin()
Header.WelcomeLink.Link = "EditProfile.asp"
Else
Header.WelcomeLink.Value = "Please log in"
Header.WelcomeLink.Link = "Login.asp"
End If
See also
Value property
Applies to
Calendar Form
Type
date
Access
read
224
Syntax
object.NextProcessingDate
Description
Specifies the next processing date to the current one. This property can be modified in the Before Show Day, Before
Show Week, Before Show Month and Before Show events.
See also
CurrentPrevDate property,
CurrentProcessingDate property
Applies to
Directory Form
Type
number
Access
read/write
Syntax
object.NumberOfColumns [=value]
Description
This property contains the number of columns the directory should be split into. Depending on the property's value,
categories are split into a number of columns containing similar number of categories.
This property can be used to enable directory layout selection depending on user's preference or on the total number
of categories.
Example
The following example sets the number of columns depending on the number of subcategories listed by the directory.
The number of columns is increased with each 50 subcategories listed. Actual number of columns depends on the
number of categories. There cannot be more columns than categories.
The example assumes Directory1 form exists. The code can be put into directory's Before Show event.
Directory1.NumberOfColumns = Directory1.Recordset.RecordCount \ 50
See also
NumberOfSubCategories Property
Recordset.RecordCount Property
Change Number Of Columns Action
225
Applies to
Directory Form
Type
number
Access
read/write
Syntax
object.NumberOfSubCategories [=value]
Description
This property contains the maximum number of subcategories displayed for each category. If the number of
subcategories is greater than the value of this property, the remaining subcategories will be listed only after
navigating their parent category.
This property can be used to allow directory layout selection depending on user's preference.
See also
NumberOfColumns property
Applies to
Connection Object
Type
string
Access
read/write
Syntax
object.Password [=value]
Description
This property contains the password used to authenticate database access together with a user name. In some
cases user name and password are included within ConnectionString property.
See also
User property
226
Applies to
Report Form,
Type
Number
Access
read
Syntax
object.PageNumber
Description
Retrieves the current page number of the report.
Example
label1.Value = Report1.PageNumber
Applies to
Report Form,
Type
Number
Access
read/write
Syntax
object.PageSize
Description
Specifies the page size for the report in print mode.
Example
Report1.PageSize = 100
Applies to
227
Record Form, EditableGrid Form
Type
string
Access
read/write
Syntax
object.PressedButton [=value]
Description
This property contains the name of the button pressed to submit the form being processed. This value is only set
when operating in postback processing mode (it is not set when navigating page without submit). The name of the
button pressed is the same as the record’s member variable handling button requests (if the button name is “Update”
there is a record’s member variable Update of type clsButton).
See also
EditMode property
Applies to
Calendar Form
Type
date
Access
read
Syntax
object.PrevProcessingDate
Description
Specifies the previous processing date to the current one. The property can be modified in the Before Show Day,
Before Show Week, Before Show Month and Before Show events.
See also
CurrentProcessingDate and NextProcessingDate properties
228
Applies to
EditableGrid Form, Record Form
Type
Boolean
Access
read/write
Syntax
object.ReadAllowed [=value]
Description
This property contains a Boolean flag that if set to true, prevents displaying record's data. If the property is set to true,
the form is working in insert mode regardless of the passed parameters.
This property may be used to prevent users from viewing particular records. Personal entries can be protected using
custom code that resets this property.
The property's value has to be set in the form's Before Select event or earlier.
Examples
The following example allows users to browse only their own records.
The example assumes DiaryEntry form exists and there is author_id hidden field to keep record's author identifier.
This code may be inserted into Before Select event or earlier (form's Before Show is called after property checking).
See also
Before Select event
UpdateAllowed property
DeleteAllowed property
InsertAllowed property
Applies to
Grid Form, ListBox Control, CheckboxList Control, RadioButton Control, Record Form, EditableGrid Form, Directory
Form, Path Form
Type
clsDataSource or ADODB.Recordset
Access
read-only
229
Syntax
object.Recordset.<member>...
Description
This property contains object’s recordset used to iterate rows in the data source result.
This property isn't accessed directly. Only its members are useful for retrieving data set information.
For complete listing of properties and methods for this object refer to ActiveX Data Objects Reference available from
Microsoft's website.
Example
The following example retrieves the number of records of the grid and assigns the value to a page-level Label control.
The example assumes articles grid and page-level articles_count Label to store the message exist on the page.
This code may be used in form's After Execute Select event or in label's Before Show event.
See also
Recordset.RecordCount property
Applies to
Recordset Object
Type
number
Access
read/write
Syntax
object.Recordset.RecordCount [=value]
Description
This property provides the total number of records fetched from the database. After the database operation has been
performed (for example in the After Execute Select event), the property's value can be modified to limit the number of
records displayed on the page. (Assigning value to the property before the database operation is executed gives no
effect - the property is overwritten after selecting data from the database).
Example
The following example retrieves the number of records of the grid and assigns the value to a page-level Label control.
The example assumes articles grid and page-level articles_count label to store the message exist on the page.
This code may be used in form's After Execute Select event or in the Label's Before Show event.
230
See Also
CountSQL property
Recordset property
Retrieve Number Of Records action
Applies to
Report Form,
Type
Number
Access
read
Syntax
object.RowNumber
Description
Retrieves the current row number of the report.
Example
label1.Value = Report1.RowNumber
Applies to
Checkbox Control
Type
Boolean
Access
read/write
Syntax
object.State [=value]
Description
This property stores the current state of the control (it may hold one of the two values that correspond to checked and
unchecked state of the control).
231
Examples
The sample code below sets the "checked" state of the control (in the BeforeShow event procedure of the checkbox
control) if a new article is edited (no article_id value has been passed to the page):
See also
Value property
Applies to
FileUpload Control
Type
string
Access
read/write
Syntax
object.TemporaryFolder [=value]
Description
This property specifies the temporary directory the uploaded file will be stored into before being moved to the target
directory defined in FileFolder property.
This property may be changed if some specific conditions happen. For instance, if there is not enough space in the
default temporary directory, the alternate location can be used.
Note: The value for the property is set only if the pointed folder exists. Absolute filesystem paths should be used to
avoid context ambiguities.
Examples
The following example checks if the uploaded file is bigger than 1MB and selects the temporary folder depending on
this condition.
This code assumes Form1 form exists and it contains FileUpload1 upload control. The code may be inserted into
parent form's Before Update or Before Insert events.
See also
FileFolder property
232
TotalFunction Run-Time Property (ASP)
Applies to
ReportLabel Control,
Type
string
Access
read
Syntax
object.TotalFunction
Description
Specifies the function to be used if the value is to be auto-calculated. The default value is empty string.
Type Description
(none) No function will be used.
Sum The report label value will be calculated as the sum of previous row values.
Count If the Control Source is empty the value will be calculated as the count of previous data rows. Otherwise the
value will be calculated as the count of previous data rows with non-empty values.
Min The value will be calculated as the minimum of previous row values.
Max The value will be calculated as the maximum of previous row values.
Avg The value will be calculated as the average of non-empty values from previous rows.
Example
If ReportLabel1.TotalFunction = "Sum" Then _
ReportLabel1.Text "<b>" & ReportLabel1.Text & "</b>"
See also
IsPercent property
Applies to
Record Form, EditableGrid Form
Type
Boolean
Access
read/write
233
Syntax
object.UpdateAllowed [=value]
Description
This property contains record update permission flag. If set to True, record update operation is permitted.
This property is set depending on the user's group permissions if the form's Restricted property is set to “Yes” during
design time. If Restricted property is set to “No”, UpdateAllowed property is always True unless modified in the Before
Update event.
This property may be set according to some custom permission checking scheme to enable or disable record update
operation. The update button is hidden only if the value is set before form's Before Show event is called (for instance
in parent component's or Before Select event). Database update operation may be cancelled if the property is set to
false in Before Update event.
Examples
The following example checks if the ad that is edited belongs to the currently logged in user. If it does, the update
operation is carried out. Otherwise, the update operation is not performed.
The example assumes EditAd form exists and user_id hidden field that stores the owner's identifier is inserted. This
code may be inserted into Before Update event.
See also
InsertAllowed property
DeleteAllowed property
ReadAllowed property
Applies to
Connection Object
Type
string
Access
read/write
Syntax
object.User [=value]
Description
This property contains a user name used to authenticate database connection access. For some providers both user
name and password are included in a connection string.
234
Examples
The following example opens database connection to the database file located in the current directory using specified
user account data.
This code may be inserted into the page's After Initialize event to open additional page-specific connection object.
Dim DBConnection1
DBConnection1.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
Server.MapPath("database.mdb")
DBConnection1.User = "admin"
DBConnection1.Password = "SeCrEt"
DBConnection1.Open
See also
ConnectionString property
Password property
Applies to
Label Control, TextBox Control, TextArea Control, Checkbox Control, Image Control, ImageLink Control, DatePicker
Form, Hidden Control, ListBox Control, CheckboxList Control, RadioButton Control, FileUpload Control
Type
variant
Access
read/write
Syntax
object.Value [=value]
Description
Holds the raw value of the control. When written, converts the new value to the data type corresponding to the
DataType property. For ccsDate, ccsBoolean, ccsInteger, ccsFloat, ccsText and ccsMemo in ASP, the following
VBScript conversion functions are used repectively: CDate, CBool, CLng, CDbl, CStr. Since the checkbox control
(ControlType = ccsCheckBox) value is stored in the State variable, special processing is required for this type of
control. The checkbox control may store only one of two values defined in CheckedValue and UncheckedValue
properties. Any value assigned to the checkbox control that does not match the CheckedValue property is
automatically converted to the UncheckedValue value.
Example
This example shows the code placed in the BeforeShowRow event procedure that forces the grid field (income) to
display the sum of all fields' values before the currently processed one (including the current one). The sum variable
must be declared and initialized as a global variable at the beginning of the script module.
Function freport_BeforeShowRow()
235
End Function
See also
Link property
Related Examples
Displaying Output
Add Custom HTML to a Page
Change Control Value
Changing Table Cell Color
Create a Grid Column with a Calculated Value
Applies to
Repord Form,
Type
String
Access
read/write
Syntax
object.ViewMode
Description
Retrieves or specifies the report's view mode.
Type Description
Print The report will be displayed in print view mode.
Web The report will be displayed in Web view mode.
Example
Report1.ViewMode = "Print"
Applies to
Button Control, Label Control, TextBox Control, TextArea Control, Checkbox Control, Image Control, ImageLink
Control, DatePicker Form, Hidden Control, Grid Form, ListBox Control, CheckboxList Control, RadioButton Control,
Record Form, Sorter Control, EditableGrid Form, Path Form, Directory Form, FileUpload Control, Panel
Type
Boolean
236
Access
read/write
Syntax
object.Visible [=value]
Description
Specifies whether the control is visible. Setting this field to false will prevent the object from being displayed.
Note: Property is tested before calling Before Show event. In order for the property change to be taken into
consideration it should be set before Before Show event is called, for instance in the parent component's Before
Show event.
Note: Most of the controls need Extended HTML property checked in order to be hidden. This property is available
after selecting Edit ... from the context menu of the control during design-time.
Example
The sample code below (placed in the AfterInitialize event procedure of the page) hides the articles grid if the
web page is displayed by an anonymous (not logged in) user.
Function Page_AfterInitialize()
If IsEmpty(CCGetUserID()) Then
articles.Visible = false
End if
End Function
Related Examples
Hiding a Grid If No Records are Found
Hiding a Record Form Control
Variables
Applies to
Page Context
Type
object (clsDB<connectionname>)
Access
read-only
Syntax
237
DB<connectionname>.<member>...
Description
This global variable is declared at the beginning of the page to represent each database connection used within the
page. The Connection object encapsulates the implementation details used to establish a database connection (i.e.
database name, location, user login/password, etc).
The database connection variable can be used to perform custom database operations (e.g. it is used as the fourth
argument of the CCDLookUp function). The name of the database connection object is created by prepending the
connection name (configured in the CCS environment) with the prefix "DB". (e.g. for a connection called Internet
within CodeCharge Studio, the corresponding variable name for the connection object will be DBInternet).
Example
This code executes custom SQL query against the database connection. It inserts a row into logging table with the
current user's identifier and a date. This code can be used in any event (such as login form's On Click).
Dim SQL
SQL = "INSERT INTO login_log(user_id, login_date) VALUES (" &
DBConnection1.ToSQL(CCGetUserID(), ccsInteger) & "," &
DBConnection1.ToSQL(Now(), ccsDate) & ")"
DBConnection1.Execute (SQL)
See also
Connection Object
Execute Method
Applies to
Page Context
Type
string
Access
read/write
Syntax
FileName [=value]
Description
This variable contains the name of the current page and is used to create links in the Navigator and Sorter
components. For instance, the First, Next, Previous and Last links in the Navigator link to the page specified in this
variable.
It is also useful for building local links on includable pages.
Examples
238
The following code builds refresh link pointing to current page with additional parameter attached.
It assumes RefreshLink is inserted on Header includable page.
Header.RefreshLink.Page = FileName
Header.RefreshLink.Parameters =
CCAddParam(Header.RefreshLink.Parameters, "data", "refresh")
See Also
TemplateFileName Variable
Link Property
Applies to
Page Context
Type
object (clsTemplate)
Access
read-only
Syntax
HTMLTemplate.<member>...
Description
HTMLTemplate is a global variable that stores a reference to a template object which is an instance of clsTemplate
class.
clsTemplate
The template object is responsible for loading the template file related to the current page, building the hierarchical
structure of the template blocks/variables and finally replacing the template variables with dynamic values. This
variable can be used to set the value of custom template blocks or template variables using the SetVar method.
Examples
The example below shows an extract from an HTML template file with a template variable called user_state.
HTMLTemplate.SetVar "@user_state","disabled"
See also
TemplateFileName Variable
239
PathToCurrentPage Variable (ASP)
Applies to
Page Context
Type
string
Access
read/write
Syntax
PathToCurrentPage [=value]
Description
This variable contains the relative path from the site's root directory to the location of the current page.
See also
PathToRoot Variable
Applies to
Page Context
Type
string
Access
read/write
Syntax
PathToRoot [=value]
Description
This variable contains a relative path to the root directory of the site from the location of the current page. This
property is usually used to reference common files generated by CodeCharge Studio in the site's root directory. This
includes JavaScript file paths.
See also
FileName Variable
TemplateFileName Variable
240
Redirect Variable (ASP)
Applies to
Page Context
Type
string
Access
read/write
Syntax
Redirect [=value]
Description
If not empty, the browser is redirected to the URL specified by the contents of this variable.The Redirect variable is
declared as a global variable at the top of the page and can therefore be accessed in most of the events that occur
later on in the page.
Note: The Redirect variable can be modified in the Button's onClick event, if the Return Page property of this Button
is empty.
Example
The example below (placed in the After Execute Insert event) redirects the browser using a URL that specifies a
URL parameter called article_id.
Dim max_id
max_id = CCDLookup("max(article_id)","articles","",DBInternet)
Redirect = "articles.asp?article_id=" & max_id
See Also
PathToRoot Variable
PathToCurrentPage Variable
Related Examples
Add URL Parameters to a Page
Dynamically Redirect Users to Another Page
Applies to
Page Context
Type
string
Access
read/write
241
Syntax
ScriptPath [=value]
Description
This variable contains the absolute file system path to the current page. The variable is used to load the template file
for the current page and can be altered to load the template file from a different location.
Examples
The following example sets script path to a site's templates directory. All templates will be loaded from that directory
(assuming code is inserted on every page in On Initialize View event).
ScriptPath = Server.MapPath("./templates/")
See also
TemplateFileName Variable
FileName Variable
Applies to
Page Context
Type
string
Access
read/write
Syntax
TemplateFileName [=value]
Description
Stores the name of the HTML template file used by the current page. This variable can be altered to load an alternate
template file (for instance depending on language choice or style preference).
See also
FileName Variable
ScriptPath Variable
HTMLTemplate Variable
Applies to
Page Context
242
Type
object
Access
read
Syntax
Tpl.<member>...
Description
This variable represents the template file for the current page. It can be used to handle custom template variables
({tag_name}) and template blocks.
See Also
HTMLTemplate Variable
Related Examples
Working with Custom Template Blocks
243
PHP
Functions
Description
Adds a parameter with the specified value into the GET query string. If the parameter with the specified name exists
then its value is changed for ParameterValue.
Syntax
CCAddParam(QueryString, ParameterName, ParameterValue)
Return value
String
Parameters
Name Type Description Required
QueryString String Query string to which the parameter is added. Yes
ParameterName String Name of the parameter. Yes
ParameterValue String Value of the parameter. Yes
See also:
CCRemoveParam function, CCGetQueryString function
Description
Retrieves a single database value which can be a field or an expression. The arguments passed to the function
determine the value to be retrieved. Execution of this function causes any previously retrieved records in the
connection object to be overwritten with the new recordset.
Syntax
CCDLookUp(field, table, where_clause, connection)
244
Return value
string
Parameters
Name Type Description Required
field string Name of the database table field to be retrieved or an SQL expression whose Yes
value is to be retrieved.
table string The name of the table from which the value is to be retrieved (SQL JOIN Yes
directives are possible).
where_clause string SQL WHERE clause: the part of the SQL query that states the criteria for Yes
selecting the value.
connection cls Connection object against which the query will be executed. Yes
object
Description
Formats a date value according to the specified format mask.
Syntax
CCFormatDate(DateToFormat,FormatMask)
Example
CCFormatDate(CCParseDate("2002 May 1",array("yyyy"," ","mmm","
","d")), array("LongDate")) -> "May 1, 2002"
CCFormatDate(CCParseDate("2002-05-01 20:12",
array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn")),
array("mmm"," ","d",", time is ","hh",":","nn","","AM/PM")) -
> "May 1, time is 8:12 PM"
Return value
None
Parameters
Name Type Description Required
DateToFormat Array The date value which will be formatted Yes
FormatMask Array of Each string is one of the following components (all other components are Yes
strings left unchanged when building formatted value):
d day
w week
m month
q quarter
y day of the year
245
h hour in 12-hour format
H hour in 24-hour format
n minute
s second
dd zero-filled day
ww week of year
mm zero-filled month
yy two-digit year
hh zero-filled hour in 12-hour format
HH zero-filled hour in 24-hour format
nn zero-filled minute
ss zero-filled second
ddd short weekday name
mmm short month name
A/P A or P according to AM/PM
a/p a or p according to AM/PM
dddd weekday name
mmmm month name
yyyy year
AM/PM AM or PM
am/pm am or pm
LongDate long date format
LongTime long time format
ShortDate short date format
ShortTime short time format
GeneralDate general date format
Description
Retrieves the value of a specified cookie.
Syntax
CCGetCookie(name)
Return value
string
Parameters
Name Type Description Required
name string Name of the cookie whose value is to be returned. Yes
246
See Also:
CCSetCookie function
Description
Retrieves a value of the GET input parameter. The function first attempts to retrieve the parameter from the GET
query string and if no value is returned the function returns the default value specified in the function call.
Syntax
CCGetFromGet(ParameterName, DefaultValue)
Return value
string
Parameters
Name Type Description Required
ParameterName string Name of the parameter to retrieve. Yes
DefaultValue string The value to be assigned of the given parameter has no value. It can be an Yes
empty string.
See also:
CCGetParam function, CCGetFromPost function
Description
Retrieves a POST input parameter value. The function first attempts to retrieve the parameter from the POST query
string and if no value is returned the function returns the default value specified in the function call.
Syntax
CCGetFromPost(ParameterName, DefaultValue)
Return value
string
Parameters
Name Type Description Required
ParameterName string Name of the parameter to retrieve. Yes
DefaultValue string The value to be assigned of the given parameter has no value. It can be an Yes
empty string.
247
See also:
CCGetParam, function CCGetFromGet function
Description
Retrieves the security group ID value of the currently logged in user.
Syntax
CCGetGroupID()
Return value
number
Parameters
Name Type Description Required
none
See Also:
CCGetUserID function, CCGetUserLogin function, CCLoginUser function, CCLogoutUser function
Description
Retrieves a value of the GET or POST input parameter. The function first attempts to retrieve the parameter from the
GET query string and if no value is returned, the function checks for a POST input parameter with the same name. If
no value is returned by the GET or POST input parameter, the function returns the default value specified in the
function call.
Syntax
CCGetParam(name, value)
Return value
string
Parameters
Name Type Description Required
name string Name of the GET or POST parameter whose value is to be returned. Yes
value string The value to be assigned of the given parameter has no value. It can be an empty string. Yes
See also:
CCGetFromGet function, CCGetFromPost function
248
CCGetQueryString Function (PHP)
Description
Retrieves a value from the GET, POST or both (depending on the specified parameter) input parameters value. If the
RemoveParameters array contains parameter names then they will be removed from the resulting string.
Syntax
CCGetQueryString(CollectionName, RemoveParameters)
Return value
String
Parameters
Name Type Description Required
CollectionName String Name of the parameter to retrieve. Possible values: Yes
"Form" Retrieves a POST input parameter value
"QueryString" Retrieves a GET input parameter value
"All" Retrieves a GET and POST input parameter value
RemoveParameters Array Array of names which will be removed from the resulting string. Yes
Description
Retrieves the value of a specified session variable.
Syntax
CCGetSession(name)
Return value
string
Parameters
Name Type Description Required
name string Name of the session variable whose value is to be returned. Yes
See Also:
CCSetSession function
249
Description
Retrieves the primary key value that uniquely identifies the currently logged-in user.
Syntax
CCGetUserID()
Return value
number
Parameters
Name Type Description Required
none
See Also:
CCGetUserLogin function, CCLoginUser function, CCLogoutUser function, CCGetGroupID function
Syntax
CCGetUserLogin()
Return value
string
Parameters
Name Type Description Required
none
Description
See Also:
CCGetUserID function, CCLoginUser function, CCLogoutUser function, CCGetGroupID function
Syntax
CCLoginUser(login, password)
250
Return value
Boolean
Parameters
Name Type Description Required
login string The username of the user to be logged in. Yes
password string The password of the user to be logged in. Yes
Description
See Also:
CCGetUserID function, CCGetUserLogin function, CCLogoutUser function, CCGetGroupID function
Description
This function terminates an authenticated session by clearing the session variables that hold the information of a
logged in user. After this function executes, a user must login again in order to access any restricted pages.
Syntax
CCLogoutUser()
Return value
none
Parameters
Name Type Description Required
none
See Also:
CCGetUserID function, CCGetUserLogin function, CCLoginUser function, CCGetGroupID function
Description
Parses the specified date string into an array according to the specified date format.
Syntax
CCParseDate(ParsingDate,FormatMask)
251
Example
CCParseDate("2002 May 1",array("yyyy"," ","mmm"," ","d")) -> 2002-05-
01
Return value
Date
Parameters
See also
CCFormatDate function
Description
Removes a parameter from the GET query string.
Syntax
CCRemoveParam(QueryString, ParameterName)
Return value
String
Parameters
Name Type Description Required
QueryString String Query string from which the parameter is removed. Yes
ParameterName String Name of the parameter to remove Yes
See also:
CCAddParam function
Description
252
Creates a new cookie and assigns it the specified value or sets the specified value to the named cookie if it already
exists.
Syntax
CCSetCookie(name, value)
Return value
none
Parameters
Name Type Description Required
name string Name of the cookie whose value is to be set. Yes
value string The value to be assigned to the cookie. Yes
See Also:
CCGetCookie function
Description
Creates a session variable and assigns it the specified value or sets the specified value to the session variable if it
already exists.
See Also:
Syntax
CCSetSession(name, value)
Return value
none
Parameters
Name Type Description Required
name string Name of the session variable to be created or set. Yes
value string The value to be assigned to the session variable. Yes
CCGetSession function
Methods
253
connect Method (PHP)
Applies to
Connection Object
Syntax
<connection>->connect(database, host, port, user, password)
Return value
link identifier
Parameters
Name Type Description Required
database string Name of the database instance to connect to. No
host string Address of the host machine where the database resides. No
port string Port to connect to. No
user string User name to authenticate with. No
password string User password to authenticate with. No
Description
This method establishes a database connection using the specified parameters. This method can be used to
establish a database connection at runtime, for instance when the connection parameters are not known at design-
time.
f Method (PHP)
Applies to
Connection Object
Syntax
<connection>->f(field)
Return value
string
Parameters
Name Type Description Required
field string or number Name of a field to be retrieved from the current record, or its numerical index. Yes
Description
This method retrieves the value of the specified field from the current connection's recordset.
254
See also
query Method
Applies to
FileUpload Control
Syntax
<control>->GetFileName()
Description
This method extracts the name of an uploaded file (without the unique suffix). It can be used to check the original file
extension or construct an alternative filename for saving the file.
Applies to
FileUpload Control
Syntax
<control>->GetFileSize()
Description
This method retrieves the size of an uploaded file. It can be used to reject or accept files based on their size.
Applies to
ImageLink Control, Link Control
Syntax
<control>->GetLink()
Return value
string
Description
This method returns the hyperlink value of a control. The returned value is the actual URL which is used when the
Link or Image Link control is clicked.
255
See also
SetLink Method
Applies to
Checkbox Control, CheckboxList Control, FileUpload Control, Hidden Control, Image Control, ImageLink Control,
Label Control, Link Control, ListBox Control, RadioButton Control, TextArea Control, TextBox Control
Syntax
<control>->GetValue()
Return value
Depends on control data type
Description
This method returns the current value of the specified control. The returned value depends on the control's format
and data type.
See also
SetValue Method
Applies to
Connection Object
Syntax
<connection>->next_record()
Return value
boolean
Description
This method is used to traverse a retrieved recordset by moving the record pointer to the next record.
See also
query Method
f Method
256
Applies to
Connection Object
Syntax
<connection>->num_rows(field)
Return value
number
Description
This method returns the number of rows accessible in the currently active recordset for a particular connection.
Note:
This method is not applied (it always returns 0) if the the Oracle OCI database library is used.
See also
query Method
Applies to
Connection Object
Syntax
<connection>->query(query)
Return value
result identifier
Parameters
Name Type Description Required
query string String containing the SQL query to be executed against the database. Yes
Description
This method executes a specified SQL query against the database connection.
See also
f Method
num_rows Method
next_record Method
257
Applies to
ImageLink Control, Link Control
Syntax
<control>->SetLink(url)
Parameters
Name Type Description Required
url string A URL to the target resource which the control should point to. Yes
Description
This method sets the URL of a Link or Image Link control.
This method can be used to change the URL dynamically or to append additional parameters to an existing URL.
See also
GetLink Method
Applies to
Checkbox Control, CheckboxList Control, FileUpload Control, Hidden Control, Image Control, ImageLink Control,
Label Control, Link Control, ListBox Control, RadioButton Control, TextArea Control, TextBox Control
Syntax
<control>->SetValue(value)
Parameters
Name Type Description Required
value Depends on the Data Type of the Control Value to be assigned to the control. Yes
Description
This method sets the value of a control. The value is influenced by the data type as well as format of the control. This
method is often used to dynamically assign or alter the value of a control at runtime.
See also
GetValue Method
Applies to
Connection Object
258
Syntax
<connection>->ToSQL(Value, DataType)
Return value
Depends on the specifed Data Type
Parameters
Name Type Description Required
Value any Value to be converted to Yes
SQL compatible format.
DataType The data type to which the value will be formatted. You can use Desired data type. Yes
any one of the predefined constants: ccsDate, ccsBoolean,
ccsInteger, ccsFloat, ccsText, ccsMemo
Description
This method formats values based on the specified data type in order to make them SQL compatible.
Run-Time Properties
Applies to
FileUpload Form
Type
string
Access
read/write
Syntax
object->AllowedFileMasks [= value]
Description
Specifies a list of file masks (separated with semicolon) that are allowed by the FileUpload component. If user
specifies a file with a mask that matches one of the masks specified in this property, the file will be uploaded (unless
the mask is also listed in the DisallowedFileMasks property). Otherwise, the upload will fail and an error message
will be displayed. The AllowedFileMasks property corresponds to the "Allowed File Masks" Design-Time property of
the FileUpload component.
See also
DisallowedFileMasks Property
259
CalendarStyles Run-Time Property (PHP)
Applies to
Calendar Form
Type
array
Access
read/write
Syntax
object->CalendarStyles [= value]
Description
Contains the calendar styles that depend on the builder settings.
Note: This property can be modified in the Before Show event.
Examples
The following example shows how to change some styles.
See also
CurrentStyle property
Applies to
Button Control, Label Control, TextBox Control, TextArea Control, Checkbox Control, Image Control, ImageLink
Control, DatePicker Control, Hidden Control, Grid Form, ListBox Control, CheckboxList Control, RadioButton Control,
Record Form, Sorter Control, EditableGrid Form, Path Control, Directory Form, FileUpload Control Calendar Form,
CalendarNavigator, Includable Page, Link, Navigator, Panel, Report Form, Report Label, Report Section, Panel
Type
String
Access
read
Syntax
object->ComponentName
Description
260
Specifies Name of object i.e. "TextBox1"
Applies to
Panel
Type
Array
Access
read
Syntax
object->Components
Description
Contains all children of the current panel. Can be used to iterate through all children.
Applies to
Button Control, Label Control, TextBox Control, TextArea Control, Checkbox Control, Image Control, ImageLink
Control, DatePicker Control, Hidden Control, Grid Form, ListBox Control, CheckboxList Control, RadioButton Control,
Record Form, Sorter Control, EditableGrid Form, Path Control, Directory Form, FileUpload Control Calendar Form,
CalendarNavigator, Includable Page, Link, Navigator, Panel, Report Form, Report Label, Report Section, Panel
Type
String
Access
read
Syntax
object->ComponentType
Description
Specifies type of an object, such as "TextBox", "Record", etc.
261
Applies to
Calendar Form
Type
array
Access
read/write
Syntax
object->CurrentDate [= value]
Description
Specifies the date shown in the calendar. For example, for the Monthly calendar the date can be any date of this
month.
Note: The value of this property can be modified in the Page's After Initialize event.
Examples
The following example shows how to make the calendar always show January 2005.
Applies to
Calendar Form
Type
array
Access
read
Syntax
object->CurrentProcessingDate
Description
Specifies the currently processed date. The value of this property can be modified in the Before Show Day, Before
Show Week, Before Show Month, and Before Show events.
See also
PrevProcessingDate property,
NextProcessingDate property
262
CurrentStyle Run-Time Property (PHP)
Applies to
Calendar Form
Type
string
Access
read/write
Syntax
object->CurrentStyle [= value]
Description
Contains the calendar style of the currently processed block.
Note: The value of this property can be modified in the Before Show Day, Before Show Week, Before Show Month,
and Before Show events.
Examples
The following example shows how to change style.
See also
CalendarStyles property
Applies to
Record Form, EditableGrid Form
Type
boolean
Access
read/write
Syntax
object->DeleteAllowed [= value]
Description
This property contains boolean flag that if set, prevents record deletion operation from executing. This property is set
automatically by the Record form to True or False if the access to the form is restricted by setting its “Restricted”
263
property to “Yes” in the IDE. If “Restricted” is set to “No”, then DeleteAllowed property is always True unless modified
in the Before Delete event. The value of this property can be changed in the After Initialize event of the Page.
Note: Setting this property to 'False' in the On Validate event or the Page's After Initialize event results in hiding of
the Delete button.
Examples
The following example shows how to prevent a logged in user from deleting an item that does not belong to him/her.
Additionally, the form displays an error message.
global $items;
if ($items->user_id->GetValue() != CCGetUserID())
{
$items->DeleteAllowed = false;
$items->Errors->addError("You are not allowed to delete this item.");
}
where $items is the name of the form.
See also
InsertAllowed Property
UpdateAllowed Property
ReadAllowed Property
Applies to
FileUpload Control
Type
string
Access
read/write
Syntax
object->DisallowedFileMasks [= value]
Description
Stores a regular expression that is used to check if the filename mask is on the list of disallowed filename masks. If
the filename mask is included in this property, the upload operation fails and an appropriate error message is
displayed.
DisallowedMasks property has higher priority than the AllowedFileMasks property. In other words, if a mask is
mentioned in both properties (AllowedFileMasks and DisallowedFileMasks) the upload will fail.
Note: The initial value of this variable is built based on the contents of the "Disallowed File Masks" design-time
property.
See also
AllowedFileMasks Property
264
ds Run-Time Property (PHP)
Applies to
Navigator Control, Record Form, EditableGrid Form, Path Control, Directory Form, Label Control, TextBox Control,
TextArea Control, Checkbox Control, Image Control, ImageLink Control, DatePicker Control, Hidden Control, ListBox
Control, CheckboxList Control, RadioButton Control
Type
object (cls<name>DataSource)
Access
read/write
Syntax
object->ds->...
Description
Note: This syntax is retained for compatibility reasons.
This property contains a reference to the data source associated with the given object. This data source can be used
to perform additional queries and to access query results.
The properties of the ds object (SQL, CountSQL, Where, Order) can be changed in the Events code so that the
programmer can alter the properties conditionally (e.g. change the SQL query used to retrieve ListBox object's
elements).
A programmer can instantiate a new ds object by constructing a connection object. Additional queries on this object
can be performed in the events code, or the ds object's reference can be passed as the connection reference
parameter to CCDLookUp function.
Examples
Other examples
Dynamically Modify the WHERE and ORDER BY Clauses of a ListBox,
Dynamically Modify the ORDER BY Clause,
265
Dynamically Modify the SQL Statement,
Dynamically Modify the WHERE Clause
See also
DataSource Property
CCDLookUp Function
SQL Property
CountSQL Property
Order Property
Where Property
ListBox Object
Grid Form
Applies to
DataSource Object
Type
string
Access
read/write
Syntax
object->ds->CountSQL [=value]
Description
Stores the main part of the SQL query that is used to retrieve the number of records returned by a SELECT database
query.
This property does not include the WHERE clause, before the query is executed conditions from the Where property
are appended.
Note: The usual content of this property includes the COUNT aggregate function: SELECT COUNT(*) FROM ...
Examples
Dynamically Modify the SQL Statement,
Dynamically Modify the WHERE and ORDER BY Clauses of a ListBox,
Dynamically Modify the ORDER BY Clause,
Dynamically Modify the WHERE Clause
See Also
DataSource Property
DataSource->SQL Property
DataSource->Where Property
DataSource->Order Property
DataSource->RecordsCount Property
266
Applies to
DataSource Object
Type
string
Access
read/write
Syntax
object->DataSource->Order [=value]
Description
This property holds the list of fields that are used in the ORDER BY clause of the SELECT query. CCS initializes this
property internally, for example if an order option has been specified in the properties of the form. Modification of this
field (before the query is executed) will change the order of the results.
Examples
Dynamically Modify the WHERE and ORDER BY Clauses of a ListBox,
Dynamically Modify the ORDER BY Clause,
Dynamically Modify the SQL Statement,
Dynamically Modify the WHERE Clause
See Also
DataSource Property
DataSource->SQL Property
DataSource->CountSQL Property
DataSource->Where Property
DataSource->RecordsCount Property
Applies to
DataSource Object
Type
number
Access
read/write
Syntax
object->DataSource->RecordsCount [=Value]
Description
Contains the number of records retrieved by DataSource's SELECT SQL query.
267
Examples
The following example shows how to hide a form if there are no records retrieved from the database.
global $items;
if ($items->DataSource->RecordsCount == 0)
{
$items->Visible = false;
}
where $items is the name of the form.
Other examples
Hiding a Grid If No Records are Found
See Also
DataSource Property
DataSource->SQL Property
DataSource->CountSQL Property
DataSource->Where Property
DataSource->Order Property
Applies to
DataSource Object
Type
string
Access
read/write
Syntax
object->DataSource->SQL [=value]
Description
This property stores the main part of a query that retrieves, inserts, updates, or removes data for the form. The main
part usually includes the actual SQL command (SELECT, INSERT, UPDATE, DELETE), a list of fields to be
retrieved, inserted, or updated and a list of tables from which the data will be retrieved or deleted (FROM) or the
name of the table the insert or update operations are to be executed against.
The SQL query is eventually built as the concatenation of SQL, Where and Order properties.
To modify the SQL property (alter the SQL query), you should use the BeforeBuildSelect event procedure of the
form.
Examples
Dynamically Modify the SQL Statement,
Dynamically Modify the WHERE and ORDER BY Clauses of a ListBox,
Dynamically Modify the ORDER BY Clause,
Dynamically Modify the WHERE Clause
268
See Also
DataSource Property
DataSource->CountSQL Property
DataSource->Where Property
DataSource->Order Property
Applies to
DataSource Object
Type
string
Access
read/write
Syntax
object->DataSource->Where [=value]
Description
This property stores all conditions that are eventually used in the WHERE clause of a query that selects, updates or
deletes data from the database. Programmers can add their own conditions (preserving the SQL syntax) in one of the
events triggered before the final query is built and executed (i.e. BeforeBuildSelect, BeforeBuildDelete,
BeforeBuildUpdate).
Examples
Dynamically Modify the WHERE and ORDER BY Clauses of a ListBox,
Dynamically Modify the ORDER BY Clause,
Dynamically Modify the SQL Statement,
Retrieve Values From a Multi-Select ListBox,
Dynamically Modify the WHERE Clause
See Also
DataSource Property
DataSource->SQL Property
DataSource->CountSQL Property
DataSource->Order Property
Applies to
Record Form, EditableGrid Form
Type
boolean
Access
269
read-only
Syntax
object->EditMode
Description
This property determines whether given record form is currently in edit or insert mode. In edit mode all data source
parameters need to have values assigned (including row identifier). In insert mode not all have to be assigned values.
Examples
The following example shows how to hide a dependent form on a page when the main form is not in EditMode.
global $items;
global $item_prices;
if (! $items->EditMode)
{
$item_prices->Visible = false;
}
where $items is the name of the main form, and $item_prices is the name of the form that shows elements that
depend on the data in the main form.
Other examples
Examine Form's Mode,
Dynamic Login Field in a Registration Form
See also
Errors Property
FormSubmitted Property
PressedButton Property
Applies to
EditableGrid Form
Type
Number
Access
read/write
Syntax
object->EmptyRows [= value]
Description
270
Specifies the number of empty rows displayed at the bottom of the editable grid. Each empty row allows the user to
insert a new record into the database.
Applies to
ReportLabel Control,
Type
string
Access
read/write
Syntax
object->EmptyText
Description
Specifies the text to be displayed when label value is empty.
Example
$Report1->ReportLabel1->EmptyText = "xxx";
Applies to
Calendar Form
Type
array
Access
read/write
Syntax
object->Events [= value]
Description
Contains the calendar events. This value can be manually modified.
Note: The value of this property can be also modified in Before Show event.
271
Examples
The following example shows how to add new event.
$CustomEventDateStr = "20050101";
$CustomEventTime = CCParseDate("12:00", array("HH", ":", "nn"));
$CustomEvent = new clsEventNewCalendar1();
$CustomEvent->_Time = $CustomEventTime;
$CustomEvent->EventTime = $CustomEventTime;
$CustomEvent->EventDescription = "Some text";
$Calendar1->Events[$CustomEventDateStr][] = $CustomEvent;
Applies to
Label Control, TextBox Control, TextArea Control, Checkbox Control, Image Control, ImageLink Control, DatePicker
Control, Hidden Control, Connection Control, Grid Form, ListBox Control, CheckboxList Control, RadioButton Control,
Record Form, EditableGrid Form, Path Control, Directory Control, FileUpload Control
Type
object (clsErrors)
Access
read-only
Syntax
object->Errors-><property>->...
Description
This property keeps the reference to the object’s errors collection. It is used to collect error messages generated
during the object’s execution.
Examples
The following example shows how to display an error message on the form if the logged in user tries to delete an item
that does not belong to him/her.
global $items;
if ($items->user_id->GetValue() != CCGetUserID())
{
$items->DeleteAllowed = false;
$items->Errors->addError("You are not allowed to delete this
item.");
}
where $items is the name of the form.
Other examples
272
Display Custom Error Messages,
Using the Control Validation Event,
Using the Form Validation Event
Applies to
FileUpload Control
Type
string
Access
read/write
Syntax
object->FileFolder [= value]
Description
Stores the name of the folder where the uploaded files will be stored on the web server.
Examples
The following example shows how to change the upload file folder depending on the login name of the logged in user.
The form or page with the FileUpload component should be restricted.
global $files;
$files->file->FileFolder = "/www/files/" . CCGetUserLogin() . "/";
where $files is the name of the form and file is the name of the FileUpload component.
See also
FileSizeLimit Property
TemporaryFolder Property
Applies to
FileUpload Component
Type
number
Access
read/write
273
Syntax
object->FileSizeLimit [= value]
Description
Specifies the maximum size (in bytes) of a file that can be uploaded to the server. If the size of the file is greater than
value of this property, the upload fails and appropriate error message is displayed.
Note: the initial value of this property is retrieved from the "File Size Limit" design-time property of the FileUpload
component.
See also
GetFileSize Method
Applies to
Calendar Form
Type
integer
Access
read/write
Syntax
object->FirstWeekDay [= value]
Description
Specifies the weekday shown first in the week. The '0' identifies Sunday, '1' - Monday, etc.
Note: The value of this property can be modified in the Before Show event.
Examples
The following example shows how to change property value to Monday.
$Calendar1->FirstWeekDay = 1;
Applies to
Label Control, TextBox Control, TextArea Control, Checkbox Control, Image Control, ImageLink Control, DatePicker,
Hidden Control, ListBox Control, CheckboxList Control, RadioButton Control
Type
array of variants
274
Access
read-write
Syntax
object->Format [= value]
Description
Holds constraints used to translate control's value from its internal state to the required public representation.
Applies to
Record Form, EditableGrid Form
Type
boolean
Access
read-only
Syntax
object->FormSubmitted
Description
This property determines whether record processing is performed in initial show or in postback mode. In show mode,
the record’s fields are assigned data source’s value (or none). In postback mode user provided data is available for
processing.
See also
Errors Property PressedButton Property EditMode Property
Applies to
Section Control
Type
number
Access
read/write
Syntax
275
object->Height
Description
Specifies the height of the section in abstract "line" units.
Example
$Report1->Report_Footer->Height = 1.2;
Applies to
Record Form, EditableGrid Form
Type
boolean
Access
read/write
Syntax
object->InsertAllowed [= value]
Description
This property contains a boolean flag that if true, allows insert database operations. This property should be changed
in Page AfterInitialize, Form Before Insert (or On Validate) Event to prevent a form from creating a new record in the
database.
Note: Setting this property to False in the On Validate event or the Page's After Initialize event results in hiding of the
Insert button.
Examples
The following example shows how to prevent a user from inserting an item into database if the provided email
address can be found in emails table of the database. Additionally, the form displays an error message.
global $items;
if (CCDLookUp("email_address","emails","email_address="
. $items->DataSource->ToSQL($items->email_address->GetValue()),$items-
>DataSource))
{
$items->InsertAllowed = false;
$items->Errors->addError("Provide another email adress.");
}
where $items is the name of the form.
See also
276
UpdateAllowed Property
DeleteAllowed Property
ReadAllowed Property
Applies to
Report Form,
Type
boolean
Access
read
Syntax
object->IsPercent
Description
Specifies whether the report label value should be output as the percentage of corresponding total value.
Example
if ($Report1->ReportLabel1->IsPercent) {
$Report1->ReportLabel1->SetText("<b>" . $Report1->ReportLabel1-
>GetText() . "</b>");
}
See also
TotalFunction property
Applies to
Calendar Form
Type
array
Access
read
Syntax
277
object->NextProcessingDate
Description
Specifies the next date to the currently processing one. This property can be modified in the Before Show Day,
Before Show Week, Before Show Month and Before Show events.
See also
CurrentPrevDate property,
CurrentProcessingDate property
Applies to
Directory Form
Type
number
Access
read/write
Syntax
object->NumberOfColumns [= value]
Description
Specifies a number of columns the directory form is split into. Value of this run-time property is initialized from the
"No. of columns" design-time property of the directory.
See also
NumberOfSubcategories Property
Applies to
Directory Form
Type
number
Access
read/write
Syntax
278
object->NumberOfSubcategories [= value]
Description
This property contains maximum number of subcategories displayed for each category. No more then property value
subcategories are displayed. If there are more, they will be listed only after navigating given category (so they
become categories).
This property can be used to allow directory layout selection depending on user's preference.
See also
NumberOfColumns Property
Applies to
Button Control, Label Control, TextBox Control, TextArea Control, Checkbox Control, Image Control, ImageLink
Control, DatePicker Control, Hidden Control, Grid Form, ListBox Control, CheckboxList Control, RadioButton Control,
Record Form, Sorter Control, EditableGrid Form, Path Control, Directory Form, FileUpload Control Calendar Form,
CalendarNavigator, Includable Page, Link, Navigator, Panel, Report Form, Report Label, Report Section,
Type
Reference
Access
read
Syntax
object->Parent
Description
Specifies parent container of an object, for example a record form for a textbox that is included within that form.
Note: does not apply to panels.
Applies to
Record Form, EditableGrid Form
Type
string
Access
read/write
Syntax
279
object->PressedButton [= value]
Description
This property contains the name of the button pressed to submit the form being processed. This value is only set
when operating in postback processing mode (it is not set when navigating page without submit). The name of the
button pressed is the same as record’s member variable handling button requests (if the button name is “Update”
there is a record’s member variable Update of type clsButton).
See also
Errors Property
FormSubmitted Property
EditMode Property
Applies to
Calendar Form
Type
array
Access
read
Syntax
object->PrevProcessingDate
Description
Specifies the previous date to the currently processing one. The property can be modified in the Before Show Day,
Before Show Week, Before Show Month and Before Show events.
See also
CurrentProcessingDate and NextProcessingDate properties
Applies to
EditableGrid Form, Record Form
Type
boolean
Access
read/write
280
Syntax
object->ReadAllowed [= value]
Description
This property contains a boolean flag that if set to true, prevents data read operations from executing.
See also
UpdateAllowed Property
DeleteAllowed Property
InsertAllowed Property
Applies to
Checkbox Control
Type
boolean
Access
read/write
Syntax
object->State [= value]
Description
This property stores the current state of the control (it may hold one of the two values that correspond to checked and
unchecked state of the control).
Applies to
FileUpload Control
Type
string
Access
read/write
Syntax
object->TemporaryFolder [= value]
281
Description
This property contains the path used for storing temporary uploaded files before processing and moving into target
directory.
See also
AllowedFileMasks Property
DisallowedFileMasks Property
FileFolder Property
FileSizeLimit Property
Applies to
ReportLabel Control,
Type
string
Access
read
Syntax
object->TotalFunction
Description
Specifies the function to be used if the value is to be auto-calculated. The default value is empty string.
Type Description
(none) No function will be used.
Sum The report label value will be calculated as the sum of previous row values.
Count If the Control Source is empty the value will be calculated as the count of previous data rows. Otherwise the
value will be calculated as the count of previous data rows with non-empty values.
Min The value will be calculated as the minimum of previous row values.
Max The value will be calculated as the maximum of previous row values.
Avg The value will be calculated as the average of non-empty values from previous rows.
Example
if ($Report1->ReportLabel1->TotalFunction == "Sum") {
$Report1->ReportLabel1->SetText("<b>" . $Report1->ReportLabel1-
>GetText() . "</b>");
}
See also
IsPercent property
282
Update Allowed Run-Time Property (PHP)
Applies to
Record Form, EditableGrid Form
Type
boolean
Access
read/write
Syntax
object->UpdateAllowed [= value]
Description
This property contains boolean flag that if set, prevents record update operation from executing. This property is set
automatically to False by the Record form if the access to the form is restricted by setting its "Restricted" property to
"Yes" in the IDE. If "Restricted" is set to "No", then UpdateAllowed property is always True unless modified in the
Before Update event. The value of this property can be changed in the After Initialize event of the Page.
Note: Setting this property to False in the On Validate event or the Page's After Initialize event results in hiding of the
Update button.
Examples
The following example shows how to prevent a logged in user from updating an item that does not belong to him/her.
Additionally, the form displays an error message.
global $items;
if ($items->user_id->GetValue() != CCGetUserID())
{
$items->UpdateAllowed = false;
$items->Errors->addError("You are not allowed to edit this item.");
}
where $items is the name of the form.
See also
InsertAllowed Property
DeleteAllowed Property
ReadAllowed Property
Applies to
Repord Form,
Type
String
283
Access
read/write
Syntax
object->ViewMode
Description
Retrieves or specifies the report's view mode.
Type Description
Print The report will be displayed in print view mode.
Web The report will be displayed in Web view mode.
Example
$Report1->ViewMode = "Print";
Applies to
Button Control, Label Control, TextBox Control, TextArea Control, Checkbox Control, Image Control, ImageLink
Control, DatePicker Control, Hidden Control, Grid Form, ListBox Control, CheckboxList Control, RadioButton Control,
Record Form, Sorter Control, EditableGrid Form, Path Control, Directory Form, FileUpload Control, Panel
Type
boolean
Access
read/write
Syntax
object->Visible [= value]
Description
Specifies whether the control is visible. Setting this field to false will prevent the object from being displayed.
Note: Property is tested before calling Before Show Event. In order for the property change to be taken into
consideration it should be set earlier. For instance in parent component's Before Show Event.
Note: Most of the controls need Extended HTML property checked, which allows them to be hidden. This property is
available after selecting Edit ... from the context menu of the control during design-time.
Examples
The following example shows how to hide a form if there are no records retrieved from the database.
global $items;
if ($items->DataSource->RecordsCount<1)
{
284
$items->Visible = false;
}
where $items is the name of the form.
Other examples
Hiding a Grid If No Records are Found,
Hiding a Record Form Control
Variables
Applies to
Page Context
Type
object (clsDB<connectionname>)
Access
read-only
Syntax
global $DB<connectionname>
$DB<connectionname>->...
Description
This property is a global variable declared at the beginning of the page and represents each database connection
used within the page. The connection object encapsulates the implementation details used to establish the
connection with the database (i.e. database name, location, user login/password, etc).
The database connection variable can be used to perform custom database operations (e.g. it is used as the fourth
argument of the CCDLookup function). The name of the database connection object is created by prepending the
connection name (configured in the CCS environment) with the prefix "DB" (e.g. for a connection called Internet
within CodeCharge Studio, the corresponding variable name for the connection object would be DBInternet).
Examples
Lookup Single Field Value in a Database,
Create Custom Session Variables,
Execute Custom SQL,
Retrieve Multiple Field Values from a Database,
Utilize MySQL Enum Field Type
See also
ds Property
285
FileName Variable (PHP)
Applies to
Page Context
Type
string
Access
read-only
Syntax
global $FileName;
$FileName = [value]
Description
This variable contains the name of the current page and is used to create links in the Navigator and Sorter
components. For instance, the First, Next, Previous and Last links in the Navigator link to the page specified in this
variable.
Examples
Add URL Parameters to a Page
Applies to
Page Context
Type
string
Access
read/write
Syntax
global $PathToRoot;
$PathToRoot [= value]
Description
This variable contains a relative path to the root directory of the site from the location of the current page. This
property is usually used to reference common files generated by CodeCharge Studio in the site's root directory. This
includes JavaScript file paths.
See also
FileName Variable
TemplateFileName Variable
286
Redirect Variable (PHP)
Applies to
Record Form, Grid Form, EditableGrid Form
Type
string
Access
read/write
Syntax
global $Redirect;
$Redirect [= value]
Description
If not empty, the browser is redirected to the URL specified by the contents of this variable.The Redirect variable is
declared as a global variable at the top of the page and can therefore be accessed in most of the events that occur
later on in the page.
Note: The Redirect variable can be modified in the Button's onClick event, if the Return Page property of this Button
is empty.
Examples
Dynamically Redirect Users to Another Page
Applies to
Global constant
Type
string
Access
read/write
Syntax
define("RelativePath", [value])
RelativePath
Description
This constant variable contains the relative path of the current file based on its location on the web server. This
variable is used when loading the template file for the page and can also be used to specify an alternate template file
from a different location.
Note: Since this variable is a constant, you can refer to it without declaring it as global in your event code and the
dollar sign prefix is not needed.
287
See also
TemplateFileName Variable
FileName Variable
Applies to
Page Context
Type
string
Access
read/write
Syntax
global $TemplateFileName;
$TemplateFileName [= value]
Description
Stores the name of the HTML template file used by the current page. This variable can be altered to load an alternate
template file (for instance depending on language choice or style preference).
See also
FileName Variable
Applies to
Page Context
Type
object
Access
read-only
Syntax
global $Tpl;
$Tpl->...
Description
This variable represents the template file for the current page. It can be used to handle custom template variables
({tag_name}) and template blocks.
288
Examples
global $Tpl;
$Tpl->SetVar("tag_name",$value);
Other examples
Working with Custom Template Blocks
289
Perl
Fuctions
Description
Adds a parameter with the specified value into the GET query string. If the parameter exists, its value will be changed
for ParameterValue.
Syntax
CCAddParam(QueryString, ParameterName, ParameterValue)
Return value
String
Parameters
Name Type Description Required
QueryString String Query string to which a parameter is added. Yes
ParameterName String Name of the parameter. Yes
ParameterValue String Value of the parameter. Yes
See also:
CCRemoveParam function,
CCGetQueryString function
Description
Retrieves a single database value which can be a field or an expression. The arguments passed to the function
determine the value to be retrieved. Execution of this function causes any previously retrieved records in the
connection object to be overwritten with the new recordset.
Syntax
CCDLookUp(field, table, where_clause, connection)
290
Return value
string
Parameters
Name Type Description Required
field string Name of the database table field to be retrieved or an SQL expression whose Yes
value is to be retrieved.
table string The name of the table from which the value is to be retrieved (SQL JOIN Yes
directives are possible).
where_clause string SQL WHERE clause: the part of the SQL query that states the criteria for Yes
selecting the value.
connection cls Connection object against which the query will be executed. Yes
object
Description
Formats a date value according to the specified format mask.
Syntax
CCFormatDate(DateToFormat,FormatMask)
Specification
Name Type Description Required
DateToFormat Array or Unix Date value to format. Yes
timestamp
FormatMask Array of strings Each string is one of the following components (all other components Yes
are left unchanged when building formatted value):
d day
w week
m month
q quarter
y day of the year
h hour in 12-hour format
H hour in 24-hour format
n minute
s second
dd zero-filled day
ww week of year
mm zero-filled month
yy two-digit year
hh zero-filled hour in 12-hour format
HH zero-filled hour in 24-hour format
291
nn zero-filled minute
ss zero-filled second
ddd short weekday name
mmm short month name
A/P A or P according to AM/PM
a/p a or p according to AM/PM
dddd weekday name
mmmm month name
yyyy year
AM/PM AM or PM
am/pm am or pm
LongDate long date format
LongTime long time format
ShortDate short date format
ShortTime short time format
GeneralDate general date format
Description
Retrieves a value of the specified cookie.
Syntax
CCGetCookie(name)
Return value
string
Parameters
Name Type Description Required
name string Name of the cookie whose value is to be returned. Yes
See Also:
CCSetCookie
Description
Retrieves a GET input parameter value. The function first attempts to retrieve the parameter from the GET query
string and if no value is returned the function returns the default value specified in the function call.
292
Syntax
CCGetFromGet(ParameterName, DefaultValue)
Return value
string
Parameters
Name Type Description Required
ParameterName string Name of the parameter to retrieve. Yes
DefaultValue string The value to be assigned of the given parameter has no value. It can be an Yes
empty string.
See also:
CCGetParam function,
CCGetFromPost function
Description
Retrieves a POST input parameter value. The function first attempts to retrieve the parameter from the POST query
string and if no value is returned the function returns the default value specified in the function call.
Syntax
CCGetFromPost(ParameterName, DefaultValue)
Return value
string
Parameters
Name Type Description Required
ParameterName string Name of the parameter to retrieve. Yes
DefaultValue string The value to be assigned of the given parameter has no value. It can be an Yes
empty string.
See also:
CCGetParam function,
CCGetFromGet function
Description
Retrieves the security group ID value of the currently logged-in user.
293
Syntax
CCGetGroupID()
Return value
number
Parameters
Name Type Description Required
none
See Also:
CCGetUserID,
CCGetUserLogin
Description
Retrieves a GET or POST input parameter value. The function first attempts to retrieve the parameter from the GET
query string and if no value is returned, the function checks for a POST input parameter with the same name. If no
value is returned by a GET or POST input parameter, the function returns the default value specified in the function
call.
Syntax
CCGetParam(ParameterName, DefaultValue)
Return value
string
Parameters
Name Type Description Required
ParameterName string Name of the GET or POST parameter whose value is to be returned. Yes
DefaultValue string The value to be assigned of the given parameter has no value. It can be an Yes
empty string.
See also:
CCGetFromGet function,
CCGetFromPost function
Description
Retrieves a GET, POST or both (depending on the first parameter) input parameters value. If the RemoveParameters
array contains the names of parameters, then they will be removed from the resulting string.
294
Syntax
CCGetQueryString(CollectionName, RemoveParameters)
Return value
String
Parameters
Name Type Description Required
CollectionName String Name of the parameter to retrieve. Possible values: Yes
"Form" Retrieves a POST input parameter value
"QueryString" Retrieves a GET input parameter value
"All" Retrieves a GET and POST input parameter value
RemoveParameters Array Array of parameter names which will be removed from the resulting string. Yes
Description
Retrieves a value of the specified session variable.
Syntax
CCGetSession(name)
Return value
string
Parameters
Name Type Description Required
name string Name of the session variable whose value is to be returned. Yes
See Also:
CCSetSession
Description
Retrieves the primary key value that uniquely identifies the currently logged-in user.
Syntax
CCGetUserID()
295
Return value
number
Parameters
Name Type Description Required
none
See Also:
CCGetUserLogin,
CCGetGroupID
Description
Retrieves the login name of the currently logged-in user.
Syntax
CCGetUserLogin()
Return value
string
Parameters
Name Type Description Required
none
See Also:
CCGetUserID,
CCGetGroupID
Description
Parses the specified date string into an array according to the specified date format.
Syntax
CCParseDate(ParsingDate,FormatMask)
Specification
ParsingDate Required. Date to parse. Type: string
Optional. Format mask to parse the date with. Type: array of strings (see CCFormatDate for
FormatMask available patterns)
296
Return Type: date
Value
Example
CCParseDate("2002 May 1",array("yyyy"," ","mmm"," ","d")) -> 2002-05-
01
Description
Removes a parameter from the GET query string.
Syntax
CCRemoveParam(QueryString, ParameterName)
Return value
String
Parameters
Name Type Description Required
QueryString String Query string from which the parameter is removed. Yes
ParameterName String Name of the parameter to remove Yes
See also:
CCAddParam function
Description
Creates a new cookie and assigns it the specified value or sets the specified value to the named cookie if it already
exists.
Syntax
CCSetCookie(Name, Value[, ExpireTime])
Return value
none
Parameters
297
Name Type Description Required
Name string Name of the cookie whose value is to be set. Yes
Value string The value to be assigned to the cookie. Yes
ExpireTime integer Numkber of seconds after which the cookie will be destroyed. If the parameter is Optional
not specified, then the cookie time expires after 1 year.
See Also:
CCGetCookie
Description
Creates a session variable and assigns it the specified value or sets the specified value to the session variable if it
already exists.
Syntax
CCSetSession(name, value)
Return value
none
Parameters
Name Type Description Required
name string Name of the session variable to be created or set. Yes
value string The value to be assigned to the session variable. Yes
See Also:
CCGetSession
298
ColdFusion
Variables
Applies to
Report
Type
structure
Access
read/write
Syntax
<cfset <expression> = <control>Item.ReportName>
Description
Structure with current report elements. Structure include key for each report control.
See also
<control name>Items
Applies to
Report
Type
array
Access
read/write
Syntax
299
<cfdump var="#<control>Items#">
Description
Array contains report lines. Each array item contains structure connected with current report elements.
See also
<control name>Item
Applies to
EditableGrid
Type
structure
Access
read/write
Syntax
<cfset <expression>=<control>Rows[rPoz].Error>
Description
This variable contains an array of structures for each row in the Editable Grid. The structure is composed of keys
such as Error and Operation.
Key Description
Operation This key specifies the operation which will be performed for the current row. It's value can be Insert,
Update or Delete
Error This key contains any errors pertaining to a row within the form.
Applies to
ListBox control, CheckboxList control, RadioButton control
Access
read/write
Syntax
<cfset arr_<control>=<expression>>
Description
300
This variable contains an array of items of a list control (values and descriptions). The first element of the array is the
value of the first item, the next element is the item's description.
See also
query<control> Variable
Applies to
EditableGrid Form, Record Form
Type
Boolean
Access
read/write
Syntax
<cfset blnDeleteAllowed<form>=<expression>>
<cfset <expression>=blnDeleteAllowed<form>>
Description
This is a Boolean variable whose value determines whether the delete operation should proceed or not. The value of
this property is set automatically based on the value of the Restricted property of the form. If the Restricted property
is set to No, the value of this property is always True unless it is modified using event code in the Before Delete
event.
See also
InsertAllowed<form> Variable
ReadAllowed<form> Variable
UpdateAllowed<form> Variable
Applies to
EditableGrid, Record
Type
Boolean
Access
read-only
Syntax
301
<cfset <expression> = blnEditMode<form>>
<cfset blnEditMode<form>=<expression>>
Description
This variable specifies the mode in which a form currently is in. A form can either be in Insert mode or Edit mode.
See also
strError variable
strOperation variable
strPressedButton variable
Applies to
EditableGrid Form, Record Form
Type
Boolean
Access
read-only
Syntax
<cfset <expression> = blnFormSubmitted&form>
Description
This variable determines how a form is processed based on whether the form is being shown for the first time or has
been submitted for postback. In the initial display, the form fields are assigned data values before being displayed.
Otherwise if the form has been submitted for postback, the submitted data is processed based on the operation that
was initiated upon submission.
See also
strError<form> Variable
Applies to
EditableGrid Form, Record Form
Type
Boolean
Access
read/write
302
Syntax
<cfset <expression>=blnInsertAllowed<form>>
<cfset blnInsertAllowed<form>=<expression>>
Description
This property determines whether the insert operation can proceed or not.
See also
DeleteAllowed<form> Variable
ReadAllowed<form> Variable
UpdateAllowed<form> Variable
Applies to
EditableGrid Form, Record Form
Type
Boolean
Access
read/write
Syntax
<cfset <expression>=blnReadAllowed<form>>
<cfset blnReadAllowed<form>=<expression>
Description
This property determines whether data read operations can proceed or not.
See also
DeleteAllowed<form> Variable
InsertAllowed<form> Variable
UpdateAllowed<form> Variable
Applies to
EditableGrid Form, Record Form
Type
Boolean
Access
read/write
303
Syntax
<cfset blnUpdateAllowed<form>=<expression>>
<cfset <expression>=blnUpdateAllowed<form>>
Description
This is a Boolean variable whose value determines whether the update database operation is permitted. The value of
this property is set automatically based on the value of the Restricted property of the form. If the Restricted property
is set to No, the value of this property is always True unless it is modified using event code in the Before Update
event.
See also
DeleteAllowed<form> Variable
InsertAllowed<form> Variable
ReadAllowed<form> Variable
Applies to
Calendar Form
Type
object
Access
read/write
Description
Contains the calendar events. This value can be manually modified.
Note: The value of this variable can be also modified in Before Show event.
Examples
The following example shows how to add new event.
Applies to
Calendar Form
304
Type
structure
Access
read/write
Description
Contains the calendar styles that depend on the builder settings.
Note: This variable can be modified in the Before Show event.
Examples
The following example shows how to change some styles.
See also
CurrentStyle variable
Applies to
Calendar Form
Type
date
Access
read/write
Syntax
<CFSET CurrentDate [= value]>
Description
Specifies the date shown in the calendar. For example, for the Monthly calendar the date can be any date of this
month.
Note: The value of this property can be modified in the Page's Before Show event.
Examples
The following example shows how to make the calendar always show January 2005.
305
CurrentProcessingDate Run-Time Variable (ColdFusion)
Applies to
Calendar Form
Type
date
Access
read
Description
Specifies the currently processed date. The value of this variable can be modified in the Before Show Day, Before
Show Week, Before Show Month, and Before Show events.
See also
PrevProcessingDate variable,
NextProcessingDate variable
Applies to
Calendar Form
Type
string
Access
read/write
Description
Contains the calendar style of the currently processed block.
Note: This value of this variable can be modified in the Before Show Day, Before Show Week, Before Show Month,
and Before Show events.
Examples
The following example shows how to change style.
See also
CalendarStyles property
306
Applies to
CheckboxList Control, Directory Form, EditableGrid Form, Grid Form, ListBox Control, Path Form, RadioButton
Control, Record Form
Type
string
Access
read/write
Syntax
<cfset Request.DB_Connection1_DS=<expression>>
<cfset <expression>=Request.DB_Connection1_DS>
Description
This variable contains the name of the data source which is used to retrieve data.
See also
DB_<connection name>_USER_PASSWORD variable
DB_<connection name>_USER_NAME variable
DB_<connection name>_DB_TYPE variable
Applies to
CheckboxList Control, Directory Form, EditableGrid Form, Grid Form, ListBox Control, Path Form, RadioButton
Control, Record Form
Type
string
Access
read /write
Syntax
<cfset Request.DB_Connection1_USER_PASSWORD=<expression>>
<cfset <expression>=Request.DB_Connection1_USER_PASSWORD>
Description
This variable contains the password specified for the connection
See also
DB_<connection name>_DS variable
DB_<connection name>_DB_TYPE variable
DB_<connection name>_USER_NAME variable
307
DB_<connection name>_DB_TYPE; Run-Time Variable (ColdFusion)
Applies to
CheckboxList Control, Directory Form, EditableGrid Form, Grid Form, ListBox Control, Path Form, RadioButton
Control, Record Form
Type
string
Access
read/write
Syntax
<cfset Request.DB_Connection1_DB_TYPE=<expression>>
<cfset <expression=Request.DB_Connection1_DB_TYPE>>
Description
This variable specifies the type of database driver used in the connection.
See also
DB_<connection name>_DS variable
DB_<connection name>_USER_PASSWORD variable
DB_<connection name>_USER_NAME variable
Applies to
CheckboxList Control, Directory Form, EditableGrid Form, Grid Form, ListBox Control, Path Form, RadioButton
Control, Record Form
Type
string
Access
read/write
Syntax
<cfset Request.DB_Connection1_USER_NAME=<expression>>
<cfset <expression>=Request.DB_Connection1_USER_NAME>
Description
This variable contains the username specified for the connection
See also
308
DB_<connection name>_USER_PASSWORD variable
DB_<connection name>_DS variable
DB_<connection name>_DB_TYPE variable
Applies to
Label Control , TextBox Control, TextArea Control, Checkbox Control, Image Control, ImageLink Control, Hidden
Control, ListBox Control, CheckboxList Control, RadioButton Control, FileUpload Control
Type
any
Access
read/write
Syntax
<cfset <expression>=fld<control>>
<cfset fld<control>=<expression>>
Description
Holds the value of the control. For list controls such as CheckBoxList and ListBox, this variable can contain a
semicolon separated list of values. For a Link, this is the value that will be displayed as the link label (i.e. between
<a> and </a> tags in the HTML code). For an Image, this value is the image path.
See also
fld<control>Link Variable
hide<control> Variable
Applies to
ImageLink control, Link control
Type
string
Access
read/write
Syntax
<cfset fld<control>Link=<expression>>
<cfset <expression>= fld<control>Link>
Description
309
The Link variable stores the URL (including the query string) that is assigned to the HREF attribute of an HTML link.
This variable is used only by the Link and Image Link controls.
See also
fld<control name> variable
Applies to
Button Control, Label Control, TextBox Control, TextArea Control, Checkbox Control, Image Control, ImageLink
Control, DatePicker Control, Grid Form, ListBox Control, CheckboxList Control, RadioButton Control, Record Form,
Sorter Control, Navigator Control, EditableGrid Form, Path Form, Directory Form, FileUpload Control, Panel
Type
Boolean
Access
read/write
Syntax
<cfset hide<control>=<expression>>
<cfset <expression>=hide<control>>
Description
This variable determines the visibility of a control. Be default, the value of this variable is False, meaning that the
control is visible. However, if the variable is set to True, the control will be hidden.
See also
fld<control> Variable
Applies to
EditableGrid Form
Type
Access
Syntax
<CFSET intEmptyRows=<expression>>
<CFSET <expression>=intEmptyRows>
310
Description
This variable specifies the number of empty rows to be displayed for inserting new data.
See also
Applies to
Report
Type
number
Access
read/write
Syntax
<cfset intPageSize = 100>
Description
Specify the page number for the Web View mode.
See also
intPageSize
ViewMode
Applies to
Report
Type
number
Access
read/write
Syntax
<cfset intPageSize = 100>
Description
Specify the page size for the print mode of report.
311
See also
intPage
ViewMode
Applies to
Grid Form
Type
string
Access
read
Syntax
<<expression>=intShownRecords>
Description
This variable contains the number of records shown on a page. This variable can be used in the Before Show Row
event.
Applies to
Calendar Form
Type
date
Access
read
Description
Specifies the next date to the currently processing one. This variable can be modified in the Before Show Day, Before
Show Week, Before Show Month and Before Show events.
See also
CurrentPrevDate variable,
CurrentProcessingDate variable
312
Applies to
Directory Form
Type
integer
Access
read/write
Syntax
<cfset NumberOfColumns=<expression>>
<cfset <expression>=NumberOfColumns>
Description
This variable specifies the number of columns over which a Directory form will display its categories. This property
can be used to allow the user to customize the layout of the Directory form by specifying the number of columns they
want to see in the Directory form.
See also
NumberOfSubCategories Variable
Applies to
Directory Form
Type
integer
Access
read/write
Syntax
<cfset NumberOfSubCategories=<expression>>
<cfset <expression>= NumberOfSubCategories>
Description
This variable specifies the maximum number of subcategories to be displayed for each top level category of a
Directory form.
See also
NumberOfColumns Variable
313
Applies to
FileUpload Control
Type
string
Access
read/write
Syntax
<cfset par<control>.FileFolder=<expression>>
<cfset <expression>=par<control>.FileFolder>
Description
This variable specifies the target folder into which uploaded files will be stored.
See also
par<control>.TemporaryFolder Variable
Applies to
FileUpload Control
Type
string
Access
read/write
Syntax
<cfset par<control>.TemporaryFolder=<expression>>
<cfset <expression>=par<control>.TemporaryFolder>
Description
This variable contains the path used for storing uploaded files temporarily before they are moved into the target
folder. The property specifies the full path or the relative path from the page folder to the temporary folder.
See also
par<control>.FileFolder Variable
314
Applies to
Page context
Type
string
Access
read/write
Syntax
<CFSET <expression>=pathToCurrentPage>
<CFSET pathToCurrentPage=<expression>>
Description
This variable contains the path of the current page relative to the root directory of the site.
See also
PathToRoot variable
Applies to
Page context
Type
string
Access
read/write
Syntax
<cfset <expression> = PathToRoot>
<cfset PathToRoot=<expression>>
Description
This variable contains a relative path to the root directory of the site from the location of the current page. This
property is usually used to reference custom tags and common files generated by CodeCharge Studio in the site's
root directory. This includes JavaScript file paths, etc.
See also
PathToCurrentPage variable
315
Applies to
Calendar Form
Type
date
Access
read
Description
Specifies the previous date to the currently processing one. The variable can be modified in the Before Show Day,
Before Show Week, Before Show Month and Before Show events.
See also
CurrentProcessingDate variable,
NextProcessingDate variable
Applies to
CheckboxList Control, Directory Form, EditableGrid Form, Grid Form, ListBox Control, Path Form, RadioButton
Control, Record Form
Type
query
Access
read/write
Syntax
<cfset <expression>=query<control>.<variable>>
Description
This variable contains the query associated with a given object. The query can be used to perform additional queries
or access query results
See also
strSQL Variable
strOrder Variable
strWhere Variable
strSQL<control> Variable
strOrder<control> Variable
strWhere<control> Variable
316
Applies to
Page context
Type
string
Access
read/write
Syntax
<cfset value = strFileName> (CF)
Description
This variable contains the name of the target page for the links in the navigator and sorter components. This filename
is used to build links (column headers for sorters and next, previous, numbers links for navigators). This variable is
declared in the Request scope for ColdFusion and Templates.
See also
strRedirect Variable
Applies to
EditableGrid Form, Record Form
Type
string
Access
read/write
Syntax
<cfset strError<form>=<expression>>
<cfset <expression>=strError<form>>
Description
This variable contains error messages pertaining to the form as a result of the form's execution.
See also
strEditModed<form> Variable
strRedirect Variable
blnFormSubmitted<form> Variable
strOperation Variable
strPressedButton Variable
317
strOperation Run-Time Variable (ColdFusion)
Applies to
Record Form
Type
string
Access
read/write
Syntax
<cfset <expression>=strOperation>
<cfset strOperation=<expression>>
Description
This variable specifies the operation to be performed after one of the submit buttons in a form has been clicked to
initiate postback.
See also
strEditModed<form> Variable
strError<form> Variable
strPressedButton Variable
Applies to
EditableGrid Form, Grid Form, Directory Form, Path Form
Type
string
Access
read/write
Syntax
<cfset strOrder=<expression>>
<cfset <expression>=strOrder>
Description
This variable contains the Order By clause for the SQL query to be executed. This variable can be modified in the
Before Build Select event.
See also
318
strSQL Variable
strWhere Variable
query<control> Variable
Applies to
CheckboxList Control, ListBox Control, RadioButton Control Record Form
Type
string
Access
read/write
Syntax
<cfset strOrder<control>=<expression>>
<cfset <expression>=strOrder<control>>
Description
This variable contains the Order By clause for the SQL query to be executed. This variable can be modified in the
Before Build Select event.
See also
strWhere<control> Variable,
strSQL<control> Variable
query<control> Variable
Applies to
Record Form, EditableGrid Form
Type
string
Access
read
Syntax
<cfset <expression>=strPressedButton>
<cfset strPressedButton=<expression>>
Description
This variable contains the name of the form's submit button which was clicked to initiate postback.
319
See also
strEditModed<form> variable
strError variable
strOperation variable
Applies to
EditableGrid Form, Record Form
Type
string
Access
read/write
Syntax
<CFSET strRedirect=<expression>>
<CFSET <expression>=strRedirect>
Description
If not empty, the browser is redirected to the URL specified by the contents of this variable.
See also
strFileName Variable
strError<form> Variable
Applies to
EditableGrid Form, Grid Form, Directory Form, Path Form
Type
string
Access
read/write
Syntax
<cfset strSQL=<expression>>
<cfset <expression>=strSQL>
Description
This variable contains the SQL query string to be executed. This variable can be modified in the Before Build Select
event.
320
See also
strOrder Variable
strWhere Variable
query<control> Variable
Applies to
CheckboxList Control, ListBox Control, RadioButton Control Record Form
Type
string
Access
read/write
Syntax
<cfset strSQL<control>=&expression>>
<cfset &expression>=strSQL<control>>
Description
This variable contains the SQL query string to be executed to retrieve data for a control. This variable can be
modified in the Before Build Select event.
See also
strOrder<control> Variable
strWhere<control> Variable
query<control> Variable
Applies to
Record
Type
string
Access
read/write
Syntax
<cfset <expression>=strSQL>
<cfset strSQL=<expression>>
Description
321
This variable contains the SQL query string to be executed in a cfquery tag in order to perform insert, update or
delete operations. This variable can be modified in events like Before Execute Update,Before Execute Delete etc.
See also
strOrder<control> Variable
strWhere<control> Variable
Applies to
Page context
Type
string
Access
Syntax
<cfset <expression> = strTemplateFileName>
<cfset strTemplateFileName=<expression>>
Description
This variable contains the name of the template file. The file is parsed to create the final page that is sent to the
browser. This applies to ColdFusion and Templates only.
See also
strFileName variable
Applies to
EditableGrid Form, Grid Form, Directory Form, Path Form
Type
string
Access
read/write
Syntax
<cfset strWhere=<expression>>
<cfset <expression>=strWhere>
Description
322
This variable contains the Where clause of the SQL statement to be executed. This variable can be modified in the
Before Build Select event.
See also
strOrder Variable
strSQL Variable
query<control> Variable
Applies to
CheckboxList Control, ListBox Control, RadioButton Control Record Form
Type
string
Access
read/write
Syntax
<cfset strWhere<control>=<expression>>
<cfset <expression>=strWhere<control>>
Description
This variable contains the Where clause of the SQL statement to be executed. This variable can be modified in the
Before Build Select event.
See also
strOrder<control> Variable
strSQL<control> Variable
query<control> Variable
Applies to
Report
Type
string
Access
read/write
Syntax
<cfset ViewMode = "Print">
323
Description
Specify the default view mode, which will be used for report.
Type Description
Print The current report displayed in the Print View Mode.
Web The current report displayed in the Web View Mode.
324
Java
Methods
A-G
Applies to
Image Control, Label Control, CheckBox Control, FileUpload Control, TextArea Control, TextBox Control, Hidden
Control, CheckBoxList Control, RadioButton Control, ListBox Control, Link Control, ImageLink Control
Syntax
public void addError(java.lang.String error);
public void
addError(com.codecharge.validation.ControlErrorType,java.lang.String);
Parameters
Name Description
error The Error description
Description
This method adds error description to an error collection.
Applies to
Data Source
Syntax
public void addError(java.lang.String error);
Parameters
Name Description
325
error The error message
Description
This method adds the error message to an error collection.
Applies to
CheckBoxList Control, RadioButton Control, ListBox Control
Syntax
public void addValue(java.lang.Object);
public void addValue(java.lang.String value);
public void addValue(long);
public void addValue(double);
public void addValue(boolean);
Parameters
Name Type Description
value String Value to add to selected values list
Description
This method adds a value to selected values list for Multiselect lists.
Applies to
Link Control, ImageLink Control
Syntax
public void addParameter(com.codecharge.util.LinkParameter param);
Parameters
Name Description
param link parameter
Description
This method adds LinkParameter to Collection of parameters.
326
closeConnection Method (Java)
Applies to
JDBCConnection Object
Syntax
public abstract void closeConnection();
Description
This method returns a connection to the pool. It doesn't really close the connection but returns it to the connection
pool to be reused in future.
Applies to
JDBCConnection Object
Syntax
public void closeStatement(java.sql.CallableStatement cstmt);
public void closeStatement(java.sql.Statement);
Parameters
Name Type Description
cstmt CallableStatement The Callable Statement object to free.
Description
This method frees a Statement object if it is not needed.
Applies to
JDBCConnection Object
Syntax
public CallableStatement createCallableStatement(java.lang.String
callString);
Return value
CallableStatement - callable statement object
Parameters
327
Name Type Description
callString String The Query that calls a stored procedure
Description
This method creates CallableStatement by preparing a procedure call provided by a callString parameter.
Applies to
JDBCConnection Object
Syntax
public PreparedStatement createPreparedStatement(java.lang.String
sql);
Return value
PreparedStatement - prepared statement object
Parameters
Name Type Description
sql String SQL query with parameters
Description
This method creates PreparedStatement from SQL indicated by an SQL parameter. PreparedStatement differs from
an ordinary Statement by the fact that question marks can be used in the place of query parameters.
Applies to
JDBCConnection Object
Syntax
public Statement createStatement();
Return value
Statement - statement object.
Description
This method specifies the Statement object that can be used to query a database with SQL (executeQuery).
328
currentRow Method (Java)
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public HashMap currentRow();
Return value
HashMap - a HashMap of all row controls.
Description
This method returns the current row.
Applies to
JDBCConnection Object
Syntax
public boolean execute(java.sql.CallableStatement cstmt);
Return value
boolean - 'true' if operation was successful, 'false' otherwise
Parameters
Name Type Description
cstmt CallableStatement The callable statement object created by createCallableStatement method
Description
This method executes the Stored Procedure.
Applies to
JDBCConnection Object
Syntax
public int executeUpdate(java.lang.String sql);
329
Return value
int - either the row count for INSERT, UPDATE or DELETE statements, or 0 for SQL statements that return nothing,
or -1 if parameter is null
Parameters
Name Type Description
sql String The SQL query string
Description
This method executes the INSERT/UPDATE/DELETE SQL-query.
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public Button getButton(java.lang.String name);
Return value
Button - the Button with the given name or null if it does not exist.
Parameters
Name Description
name The Button name
Description
This method finds a Button in a children collection by name.
Applies to
Directory Form
Syntax
public long getCategoryNumberInColumn();
Return value
long - The Number of Categories in a column.
Description
330
This method retrieves the Number of Categories in a column.
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public CheckBoxList getCheckBoxList(java.lang.String);
Return value
CheckBoxList - the CheckBoxList with the given name or null if it does not exist.
Parameters
Name Description
name The CheckBoxList name
Description
This method finds a CheckBoxList in a children collection by name.
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public Model getChild(java.lang.String name);
Return value
Model - the Child of the given name or null if it does not exist.
Parameters
Name Description
name The Model name
Description
This method finds a Child in a children collection by name.
331
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public Collection getChildren();
Return value
Collection - a collection with all children
Description
This method returns all children as a collection.
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public Control getControl(java.lang.String name);
Return value
Control - the Control of the given name or null if it does not exist.
Parameters
Name Description
name The Control name
Description
This method finds a Control in a children collection by name.
Applies to
Panel
Syntax
public Model getComponent(java.lang.String name);
Return value
Model - the Child with the given name or null if it does not exist.
332
Parameters
Name Description
name The Model name
Description
This method finds a Child in a children collection by name.
Applies to
Page Object
Syntax
public Component getComponent(java.lang.String name);
Return value
Component - the Component of the given name or null if no such Component exists
Parameters
Name Type Description
name String the Component name
Description
This method finds Component in a children collection by name.
Applies to
Panel
Syntax
public Collection getComponents();
Return value
Collection - a collection with all children
Description
This method returns all children as a collection.
333
getComputeAt Method (Java)
Applies to
ReportLabel Control
Syntax
public String getComputeAt();
Return value
String - the name of report group, relative to percent value will be calculated.
Description
Gets the name of report group, relative to percent value will be calculated.
Applies to
ReportLabel Control
Syntax
public FunctionHandler getComputeAtFunction();
Return value
FunctionHandler - teh function to be used if the value is to be auto-calculated relative value of the another group.
Description
Returns the function to be used if the value is to be auto-calculated relative value of the another group.
Applies to
JDBCConnection Object
Syntax
public abstract void getConnection();
Description
This method is used to obtain a connection from pool of connections. A new connection is created only if there is no
free connections; otherwise connections are reused. You should call closeConnection method if there is no need to
return connection to the pool.
334
getCurrentCategoryId Method (Java)
Applies to
Directory Form
Syntax
public long getCurrentCategoryId();
Return value
long
Description
This method retrieves the ID of the currently selected Category.
Applies to
Directory Form
Syntax
public long getCurrentCategoryNumber();
Return value
long
Description
This method gets the order number of the current category.
Applies to
Calendar Form
Syntax
public CalendarItem getCurrentItem();
Return value
CalendarItem - the current calendar item if it is available; otherwise - null;
Description
This method returns the current calendar item if it is available.
335
getCurrentProcessingDate Method (Java)
Applies to
Calendar Form
Syntax
public Date getCurrentProcessingDate();
Return value
java.util.Date - currently processed date to be used in events.
Description
This method returns the currently processed date to be used in events.
Applies to
Report Form
Syntax
public ReportRow getCurrentRow();
Return value
ReportRow - the current Report detail row.
Description
Returns the current Report detail row.
Applies to
Calendar Form
Syntax
public String getCurrentStyle();
Return value
String - the style (not style name) applied to the current Calendar section.
Description
This method returns the style (not style name) applied to the current Calendar section.
336
getCurrentSubCategoryNumber Method (Java)
Applies to
Directory Form
Syntax
public long getCurrentSubCategoryNumber();
Return value
long
Description
This method gets the order number of the current subcategory.
Applies to
Calendar Form
Syntax
public String getDateField();
Return value
String - the field name pointing to the Event Date.
Description
This method returns field name pointing to the Event Date.
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public DatePicker getDatePicker(java.lang.String name);
Return value
DatePicker - the DatePicker with the given name or null if it does not exist.
Parameters
337
Name Description
name The DatePicker name
Description
This method finds a DatePicker in a children collection by name.
Applies to
Page Object
Syntax
public Directory getDirectory(java.lang.String name);
Return value
Directory - the Directory of the given name or null if no such Directory exists
Parameters
Name Type Description
name String The Directory name
Description
This method finds a Directory in a children collection by name.
Applies to
Page Object
Syntax
public EditableGrid getEditableGrid(java.lang.String name);
Return value
EditableGrid - the EditableGrid of the given name or null if no such EditableGrid exists
Parameters
Name Type Description
name String The Record name
Description
338
This method finds an EditableGrid in a children collection by name.
Applies to
ReportLabel Control
Syntax
public String getEmptyText();
Return value
String - the text to display when the label's value is empty.
Description
Gets the text to display when the label's value is empty.
Applies to
Data Source
Syntax
public String getErrorsAsString();
Return value
String - a String that represents all errors.
Description
This method retrieves all errors as one string.
Applies to
Image Control, Label Control, CheckBox Control, FileUpload Control, TextArea Control, TextBox Control, Hidden
Control, CheckBoxList Control, RadioButton Control, ListBox Control, Link Control, ImageLink Control
Syntax
public String getErrorsAsString();
Return value
339
String - the errors description
Description
This method gets and formats all errors as String presenting each error description on a separate line.
Applies to
JDBCConnection Object
Syntax
public String getErrorsAsString();
Return value
String - a String that represents all the errors.
Description
This method gets all errors represented as one string.
Applies to
Page Object
Syntax
public UploadedFile getFile(java.lang.String name);
Return value
UploadedFile - a UploadedFile object representing the single file
Parameters
Name Type Description
name String A String specifying the name of the file.
Description
This method returns the UploadedFile object that represents an uploaded file, or null if the file has not been
uploaded.
340
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public FileUpload getFileUpload(java.lang.String name);
Return value
FileUpload - the FileUpload with the given name or null if it does not exist.
Parameters
Name Description
name The FileUpload name
Description
This method finds a FileUpload in a children collection by name.
Applies to
CheckBoxList Control, RadioButton Control, ListBox Control
Syntax
public Enumeration getFormattedOptions();
Return value
Enumeration - Enumeration of String arrays in form {BOUND_COLUMN, TEXT_COLUMN, SELECTED}
Description
This method prepares a collection list for output. It marks list values selected by request.
Applies to
Image Control, Label Control, CheckBox Control, FileUpload Control, TextArea Control, TextBox Control, Hidden
Control, CheckBoxList Control, RadioButton Control, ListBox Control, Link Control, ImageLink Control
Syntax
public String getFormattedValue();
Return value
String - the formatted value of a control
341
Description
This method gets the value formatted according to the format of a control.
Applies to
ReportLabel Control
Syntax
public FunctionHandler getFunction();
Return value
FunctionHandler - the function to be used if the value is to be auto-calculated.
Description
Returns the function to be used if the value is to be auto-calculated.
Applies to
Page Object
Syntax
public Grid getGrid(java.lang.String name);
Return value
Grid - the Grid of the given name or null if such Grid does not exist.
Parameters
Name Type Description
name String The Grid name
Description
This method finds a Grid in a children collection by name.
Applies to
ReportSection Control
342
Syntax
public double getHeight();
Return value
double - the height of section in lines.
Description
Gets the height of section in lines.
Applies to
Page Object
Syntax
public String getHttpGetParameter(java.lang.String name);
Return value
String - a String representing the single value of the parameter
Parameters
Name Type Description
name String A String specifying the name of the parameter
Description
This method returns the value of a request GET parameter as a String, or null if parameter does not exist.
Applies to
Page Object
Syntax
public RequestParameters getHttpGetParameters();
Return value
RequestParameters
343
Applies to
Page Object
Syntax
public String getHttpPostParameter(java.lang.String name);
Return value
String - a String representing the single value of the parameter
Parameters
Name Type Description
name String A String specifying the name of the parameter
Description
This method returns the value of a request POST parameter as a String, or null if parameter does not exist.
Applies to
Page Object
Syntax
public RequestParameters getHttpPostParameters();
Return value
RequestParameters
Applies to
JDBCConnectionFactory
Syntax
public static JDBCConnection getJDBCConnection(java.lang.String
connectionName);
public static JDBCConnection
getJDBCConnection(java.lang.String,boolean);
Return value
JDBCConnection - the JDBCConnection of the given name or null if it is impossible
344
Parameters
Name Type Description
connectionName String The Connection name
Description
This method creates a new JDBCConnection by connection name.
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public Link getLink(java.lang.String name);
Return value
Link - the Link with the given name or null if it does not exist.
Parameters
Name Description
name The Link name
Description
This method finds a Link in a children collection by name.
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public ListBox getListBox(java.lang.String name);
Return value
ListBox - the ListBox with the given name or null if it does not exist.
Parameters
Name Description
name The ListBox name
345
Description
This method finds a ListBox in a children collection by name.
Applies to
Calendar Form
Syntax
public int getMonth();
Return value
int - the month number to be shown.
Description
This method returns the month number to be shown.
Applies to
Calendar Form
Syntax
public int getMonths();
Return value
int - the number of months to be shown
Description
This method returns number of months to be shown.
Applies to
Calendar Form
Syntax
public int getMonthsInRow();
346
Return value
int - the number of months in the calendar row for the yearly and quarterly calendars.
Description
This method returns the number of months in the calendar row for the yearly and quarterly calendars. If
monthsInRows == 0 all months will be shown in one row.
Applies to
Grid Form, EditableGrid Form
Syntax
public Navigator getNavigator(java.lang.String name);
Return value
Navigator - the Navigator of the given name or null if such Navigator does not exist.
Parameters
Name Description
name the Navigator name
Description
This method finds a Navigator in a children collection by name.
Applies to
Directory Form
Syntax
public long getNumberOfCategories();
Return value
long
Description
This method retrieves the Number of Categories.
347
Applies to
Directory Form
Syntax
public long getNumberOfColumns();
Return value
long
Description
This method retrieves the Number of Columns used to display a directory.
Applies to
Data Source
Syntax
public long getNumberOfRows();
Return value
long - the total number of rows.
Description
This method retrieves the total number of rows.
Applies to
Directory Form
Syntax
public long getNumberOfRows();
Return value
long
Description
This method retrieves the Total Number of Records at the current directory level.
348
getNumberOfRows Method (Java)
Applies to
Grid Form, EditableGrid Form
Syntax
public long getNumberOfRows();
Return value
long - the total number of rows.
Description
This method gets the total number of rows.
Applies to
Directory Form
Syntax
public long getNumberOfSubCategories();
Return value
long
Description
This method retrieves the Number of Subcategories shown for each category.
Applies to
CheckBoxList Control, RadioButton Control, ListBox Control
Syntax
public Enumeration getOptions();
Return value
Enumeration - options list in form of Enumeration of HashMaps: {{BOUND_COLUMN,TEXT_COLUMN},...}
Description
This method gets Options list in form of Enumeration of Strings.
349
getOneRow Method (Java)
Applies to
JDBCConnection Object
Syntax
public DbRow getOneRow(java.lang.String sql);
public DbRow getOneRow(java.sql.ResultSet);
Return value
DbRow - DbRow containing result or null if recordset is empty.
Parameters
Name Type Description
sql String The SQL query string
Description
This method gets one row from SQL query result.
Applies to
ListBox Control
Syntax
public String getOptionsString();
Return value
String - HTML representation of ListBox component.
Description
This method prepares the HTML output for ListBox. The output consists of a list of HTML option elements ready for
output.
Applies to
Image Control, Label Control, CheckBox Control, FileUpload Control, TextArea Control, TextBox Control, Hidden
Control, CheckBoxList Control, RadioButton Control, ListBox Control, Link Control, ImageLink Control
Syntax
350
public Page getPage();
Return value
Page
Description
This method retrieves the page containing the control.
Applies to
Grid Form, EditableGrid Form
Syntax
public int getPage();
Return value
int - Page number
Description
This method retrieves the current page of a Grid.
Applies to
Report Form
Syntax
public int getPageNumber();
Return value
int - current Report page number.
Description
Returns the current Report page number.
Applies to
Grid Form, EditableGrid Form
351
Syntax
public int getPageSize();
Return value
int - number of records per page.
Description
This method retrieves number of records per page. It is an equivalent of getFetchSize.
Applies to
Report Form
Syntax
public double getPageSizeLimit();
Return value
double - the value of page size limit if viewMode is Report.VIEW_MODE_WEB.
Description
Returns int value of page size limit if viewMode is Report.VIEW_MODE_WEB; otherwise returns zero. Zero means
that all records should be displayed. PageSizeLimit is applied to web mode only.
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public Page getPageModel();
Return value
Page - the page of a component
Description
This method retrieves the page where the component is placed.
352
Applies to
Page Object
Syntax
public String getParameter(java.lang.String name);
public String getParameter(java.lang.String name,java.lang.String
name);
Return value
String - a String representing the single value of the parameter
Parameters
Name Description
name A String specifying the name of the parameter
Description
This method returns the value of a request parameter as a String, or null if parameter does not exist.
Applies to
LinkControl, ImageLink Control
Syntax
public LinkParameter getParameter(java.lang.String name);
Return value
LinkParameter
Parameters
Name Type Description
name String The Parameter name
Description
This method finds a LinkParameter in parameters collection by its name.
Applies to
Button Control, DatePicker Control, Navigator Control, Sorter Control, Image Control, Label Control, CheckBox
Control, FileUpload Control, TextArea Control, TextBox Control, Hidden Control, CheckBoxList Control, RadioButton
353
Control, ListBox Control, Link Control, ImageLink Control, Grid Form, EditableGrid Form, Record Form, Directory
Form, Page Form, Path Form, Panel
Syntax
public Component getParent();
Return value
Component - parent component
Description
This method gets the parent component that contains this control or component.
Applies to
Page Object
Syntax
public Path getPath(java.lang.String);
Return value
Path - the Path of the given name or null if no such Path exists
Parameters
Name Type Description
name String The Path name
Description
This method finds a Path in a children collection by name.
Applies to
JDBCConnection Object
Syntax
public String getPoolName();
Return value
String - connection name
354
Description
This method gets the Pool name. The name corresponds to CCS Connection name.
Applies to
Report Form
Syntax
public int getPrintPageSize();
Return value
int - the height of Report page in print view mode.
Description
Returns the height of Report page in print view mode.
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public RadioButton getRadioButton(java.lang.String name);
Return value
RadioButton - the RadioButton with the given name or null if it does not exist.
Parameters
Name Description
name The Radio Button name
Description
This method finds a Radio Button in a children collection by name.
Applies to
Page Object
355
Syntax
public Record getRecord(java.lang.String name);
Return value
Record - the Record of the given name or null if such Record does not exist.
Parameters
Name Type Description
name String The Record name.
Description
This method finds a Record in a children collection by name.
Applies to
Page Object
Syntax
public String getRedirectString();
Return value
String - a String containing the redirection URL.
Description
This method returns the redirection URL string.
Applies to
Page Object
Syntax
public HttpServletRequest getRequest();
Return value
HttpServletRequest - the HttpServletRequest associated with this page.
Description
This method returns the current request associated with this page.
356
getResetAt Method (Java)
Applies to
ReportLabel Control
Syntax
public String getResetAt();
Return value
String - the name of the report group where the control value should be reset.
Description
Retrieves the name of the report group where the control value should be reset.
Applies to
Page Object
Syntax
public HttpServletResponse getResponse();
Return value
HttpServletResponse - the HttpServletResponse associated with this page.
Description
This method returns the current response associated with this page.
Applies to
Report Form
Syntax
public int getRowNumber();
Return value
int - the current report row number starting from one.
Description
Returns the current report row number starting from one.
357
getRows Method (Java)
Applies to
JDBCConnection Object
Syntax
public Enumeration getRows(java.lang.String sql,int start,int max);
public Enumeration getRows(java.sql.ResultSet,int,int);
public Enumeration getRows(java.lang.String);
public Enumeration getRows(java.sql.ResultSet);
Return value
Enumeration - the data produced by the given query in form of Enumeration object
Parameters
Name Type Description
sql String The Static SQL SELECT statement
start unt The position of first record to read
max int The maximum number of records to read
Description
This method returns Enumeration of DbRows representing records from the ResultSet
Applies to
Report Form
Syntax
public ISection getSection(String name);
Return value
ISection - Report section with specified name.
Parameters
Name Type Description
name String The name of requested Section
Description
Returns the section with given name.
358
getSorter Method (Java)
Applies to
Grid Form, EditableGrid Form
Syntax
public Sorter getSorter(java.lang.String name);
Return value
Sorter - the Sorter of the given name or null if such Sorter does not exist.
Parameters
Name Description
name the Sorter name
Description
This method finds a Sorter in a children collection by name.
Applies to
Page Object
Syntax
public Template getTemplate();
Return value
• Template - the Template object
• or null
Description
This method returns the Template object for the direct usage of the template library or null for JSP.
Applies to
Calendar Form
Syntax
public String getTimeField();
359
Return value
String - the field name pointing to the Event Time.
Description
This method returns the field name pointing to the Event Time. If 'null,' the Calendar will obtain the Event Time from
the dateField field.
Applies to
Report Form
Syntax
public int getTotalPages();
Return value
int - number of the report pages.
Description
Returns number of the report pages.
Applies to
Image Control, Label Control, CheckBox Control, FileUpload Control, TextArea Control, TextBox Control, Hidden
Control, CheckBoxList Control, RadioButton Control, ListBox Control, Link Control, ImageLink Control
Syntax
public Object getValue();
Return value
Object - the unformatted control value.
Description
This method retrieves the value of a control before it is formatted.
Applies to
Report Form
360
Syntax
public int getViewMode();
Return value
int - the Report view mode
Description
Returns Report view mode. If print view mode is disabled Report.SHOW_MODE_WEB will always be returned.
Applies to
Calendar Form
Syntax
public String getVisualStyle(String name);
Return value
String - the field name pointing to Event Style.
Parameters
Name Type Description
name String Style with specified name.
Description
This method returns the Style with the specified name.
Applies to
Calendar Form
Syntax
public Map getVisualStyles();
Return value
java.util.Map - the map containing styles that represent days of months, weeks, etc.
Description
This method returns the map containing styles that represent days of months, weeks, etc.
361
getWebPageSize Method (Java)
Applies to
Report Form
Syntax
public int getWebPageSize();
Return value
int - the height of Report page in web view mode.
Description
Returns the height of Report page in web view mode.
Applies to
Calendar Form
Syntax
public int getYear();
Return value
int - year to be shown.
Description
This method returns Year to be shown.
Applies to
CalendarNavigator Control
Syntax
public int getYearsRange();
Return value
int - the number of years to be displayed in the Navigator.
Description
This method returns the number of years to be displayed in the Navigator.
362
H-Z
Applies to
Data Source
Syntax
public boolean hasErrors();
Return value
boolean - 'true' if data source has errors, 'false' otherwise.
Description
This method specifies whether the Data Source has errors.
Applies to
Image Control, Label Control, CheckBox Control, FileUpload Control, TextArea Control, TextBox Control, Hidden
Control, CheckBoxList Control, RadioButton Control, ListBox Control, Link Control, ImageLink Control
Syntax
public boolean hasErrors();
Return value
boolean - if 'true' there were errors in validation of a control, 'false' otherwise
Description
This method specifies whether the control has validation errors.
Applies to
JDBCConnection Object
Syntax
public boolean hasErrors();
Return value
363
boolean - 'true' if the connection has errors, 'false' otherwise
Description
This method specifies whether a connection has errors.
Applies to
Data Source
Syntax
public boolean hasNext();
Return value
boolean - 'true' if the Data Source has more data.
Description
This method specifies whether the Data Source has more data.
Applies to
Calendar Form
Syntax
public boolean hasNextItem();
Return value
boolean - 'true' if the next Calendar item is available.
Description
This method indicates if the next Calendar item is available.
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public boolean hasNextRow();
364
Return value
boolean - 'true' if the iteration has more elements.
Description
This method returns 'true' if the iteration has more elements.
Applies to
Report Form
Syntax
public boolean isDetailControl(String name);
Return value
boolean - true if the specified control belongs to Detail row (Detail section); otherwise - false.
Parameters
Name Type Description
name String Name of control.
Description
Returns true if the specified control belongs to Detail row (Detail section); otherwise - false.
Applies to
Report Form
Syntax
public boolean isEnablePrintMode();
Return value
boolean - true if print view mode is enabled for report component; otherwise - false.
Description
Returns true if print view mode is enabled for report component; otherwise - false.
365
Applies to
ReportLabel Control
Syntax
public boolean isHideDuplicates();
Return value
boolean - sign if the duplicated values will be shown.
Description
Returns if the duplicated values will be shown.
Applies to
Calendar Form
Syntax
public boolean isShowOtherMonthsDays();
Return value
boolean - 'true' if days of the neighbouring months should be shown, otherwise - 'false'.
Description
This method returns 'true' if days of the neighbouring months should be shown, otherwise - 'false'.
Applies to
Editable Grid, Record
Syntax
public boolean isAllowInsert();
Return value
boolean
Description
This method specifies whether Insert is allowed for the component at this moment. This value can be modified using
the setAllowInsert method.
366
See also:
setAllowInsert method
Applies to
Editable Grid, Record
Syntax
public boolean isAllowDelete();
Return value
boolean
Description
This method specifies whether Delete is allowed for the component at this moment. This value can be modified using
the setAllowDelete method.
See also:
setAllowDelete method
Applies to
Editable Grid, Grid, Record
Syntax
public boolean isAllowRead();
Return value
boolean
Description
This method specifies whether Read is allowed for the component at this moment. This value can modified using the
setAllowRead method.
See also:
setAllowRead method
367
Applies to
Editable Grid, Record
Syntax
public boolean isAllowUpdate();
Return value
boolean
Description
This method specifies whether Update is allowed for the component at this moment. This value can modified using
the setAllowUpdate method.
See also:
setAllowUpdate method
Applies to
Record Form
Syntax
public boolean isEditMode();
Return value
boolean
Description
This method is used to check whether the Record is in the Edit mode.
Applies to
Data Source
Syntax
public boolean isEmpty();
Return value
boolean - 'true' if the data source is empty, 'false' otherwise.
368
Description
This method indicates whether the Data Source is empty.
Applies to
Directory Form
Syntax
public boolean isEmpty();
Return value
boolean
Description
This method checks whether the Categories List is empty.
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public boolean isProcessed();
Return value
boolean
Description
This method indicates that a component is processed. The ccsForm parameter is equal to the Component Name.
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public boolean isRestricted();
369
Return value
boolean
Description
This method specifies whether users must be logged in before accessing the form.
Applies to
EditableGrid Form
Syntax
public boolean isShowEmptyRow();
Return value
boolean
Applies to
Button Control, DatePicker Control, Navigator Control, Sorter Control, Image Control, Label Control, CheckBox
Control, FileUpload Control, TextArea Control, TextBox Control, Hidden Control, CheckBoxList Control, RadioButton
Control, ListBox Control, Link Control, ImageLink Control, Grid Form, EditableGrid Form, Record Form, Directory
Form, Page Form, Path Form, Panel
Syntax
public boolean isVisible();
Return value
boolean - visibility state, false means hidden
Description
This method specifies whether this control will be shown.
Applies to
Calendar Form
Syntax
public CalendarItem nextItem();
370
Return value
CalendarItem - the next calendar item if it is available; otherwise - 'null';
Description
This method returns the next calendar item if it is available.
Applies to
Report Form
Syntax
public ReportRow nextReportRow();
Return value
ReportRow - the next Report row.
Description
Returns the next Report row.
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public HashMap nextRow();
Return value
HashMap - a HashMap of all row controls
Description
This method returns the next row. If a row is not available it returns an empty HashMap. It is never null.
Applies to
Editable Grid, Record
Syntax
371
public void setAllowInsert(boolean allowInsert);
Parameters
Name Description
allowInsert If 'true' the Insert operation is allowed for the component.
Description
This method sets whether the Insert operation is allowed for the component. It may be used to disallow the Insert
operation from within the events.
See also:
isAllowInsert method
Applies to
Editable Grid, Record
Syntax
public void setAllowDelete(boolean allowDelete);
Parameters
Name Description
allowDelete If 'true' the Delete operation is allowed for this component.
Description
This method sets whether the Delete operation is allowed for the component. It may be used to disallow the Delete
operation from within the events.
See also:
isAllowDelete method
Applies to
Editable Grid, Grid, Record
Syntax
public void setAllowRead(boolean allowRead);
Parameters
372
Name Description
allowRead If 'true' the Read operation is allowed for the component
Description
This method sets whether the Read operation is allowed for the component. It may be used to disallow the Read
operation from within the events.
See also:
isAllowRead method
Applies to
Editable Grid, Record
Syntax
public void setAllowUpdate(boolean allowUpdate);
Parameters
Name Description
allowUpdate If 'true' the Update operation is allowed for the component.
Description
This method sets whether the Update operation is allowed for the component. It may be used to disallow the Update
operation from within the events.
See also:
isAllowUpdate method
Applies to
ReportLabel Control
Syntax
public void setComputeAt(String string);
Parameters
Name Type Description
string String the name of report group, relative to percent value will be calculated.
373
Description
Sets the name of report group, relative to percent value will be calculated.
Applies to
ReportLabel Control
Syntax
public void setComputeAtFunction(FunctionHandler handler);
Parameters
Name Type Description
handler FunctionHandler the function to be used if the value is to be auto-calculated relative value of the another
group.
Description
Sets the function to be used if the value is to be auto-calculated relative value of the another group.
Applies to
Calendar Form
Syntax
public void setCurrentStyle(String style);
Parameters
Name Type Description
style String The Style (not Style Name) that is applied to the current Calendar section.
Description
This method specifies the Style (not Style Name) that is applied to the current Calendar section.
Applies to
Calendar Form
374
Syntax
public void setDateField(String dateField);
Parameters
Name Type Description
dateField String Field name pointing to the Event Date.
Description
This method specifies the Field Name pointing to the Event Date. This field is required if the Data Source is defined
and allows to link events to the Calendar days.
Applies to
ReportLabel Control
Syntax
public void setEmptyText(String string);
Parameters
Name Type Description
string String the text to display when the label's value is empty.
Description
Sets the text to display when the label's value is empty.
Applies to
Report Form
Syntax
public void setEnablePrintMode(boolean enablePrintMode);
Parameters
Name Type Description
enablePrintMode boolean true if print view mode is allowed; otherwise - false.
Description
375
Sets enablePrintMode value.
Applies to
Image Control, Label Control, CheckBox Control, FileUpload Control, TextArea Control, TextBox Control, Hidden
Control, CheckBoxList Control, RadioButton Control, ListBox Control, Link Control, ImageLink Control
Syntax
public void setFormattedValue(java.lang.String value);
Parameters
Name Description
value preformatted control value
Description
This method sets the Control Value from String. The value is taken without formatting.
Applies to
ReportLabel Control
Syntax
public void setFunction(FunctionHandler handler);
Parameters
Name Type Description
handler FunctionHandler the function to be used if the value is to be auto-calculated.
Description
Sets the function to be used if the value is to be auto-calculated.
Applies to
ReportSection Control
Syntax
376
public void setHeight(double height);
Parameters
Name Type Description
height double the height of section in lines.
Description
Sets the height of section in lines.
Applies to
ReportLabel Control
Syntax
public void setHideDuplicates(boolean b);
Parameters
Name Type Description
b boolean Specify if the duplicated values will be shown.
Description
Specify if the duplicated values will be shown.
Applies to
CheckBoxList Control, RadioButton Control, ListBox Control
Syntax
public void setListOfValues(java.lang.String list);
public void setListOfValues(java.lang.StringBuffer);
Parameters
Name Type Description
list String Semicolon separated list of values
Description
This method sets list of values to choose from. It is used to populate list values from String.
377
setLocale Method (Java)
Applies to
JDBCConnection Object
Syntax
public void setLocale(java.util.Locale locale);
Parameters
Name Description
locale locale with language and country settings
Description
This method sets the Locale. The locale is used to format data before it is inserted, updated or retrieved from
datasources.
Applies to
Calendar Form
Syntax
public void setMonths(int months);
Parameters
Name Type Description
months int Number of months to be shown.
Description
This method specifies the number of months to be shown.
Applies to
Calendar Form
Syntax
public void setMonthsInRow(int monthsInRow);
Parameters
378
Name Type Description
monthsInRow int Number of months in the calendar row for the yearly and quarterly calendars.
Description
Specifies the number of months in the calendar row for the yearly and quarterly calendars. If monthsInRows == 0 all
months will be shown in one row.
Applies to
EditableGrid Form
Syntax
public void setNumberEmptyRows(int numberEmptyRows);
Parameters
Name Description
numberEmptyRows The number of rows for new records.
Description
This method specifies the number of rows for adding new records.
Applies to
Directory Form
Syntax
public void setNumberOfColumns(long numberOfColumns);
Parameters
Name Description
numberOfColumns The number of columns
Description
This method sets the Number of Columns used to display a directory.
379
Applies to
Directory Form
Syntax
public void setNumberOfSubCategories(long count);
Parameters
Name Description
count The number of subcategories
Description
This method specifies the number of subcategories shown for each category.
Applies to
CheckBoxList Control, RadioButton Control, ListBox Control
Syntax
public void setOptions(java.lang.String list);
public void setOptions(java.util.Enumeration);
public void
setOptions(java.util.Enumeration,com.codecharge.db.SqlFormatControl);
Parameters
Name Description
list Semicolon separated list of values
Description
Set list of values to choose from. Used to populate list values from String.
Applies to
Grid Form, EditableGrid Form
Syntax
public void setPage(java.lang.String page);
public void setPage(int);
380
Parameters
Name Type Description
page String The Integer in form of String
Description
This method sets the grid page number to be shown. It specifies the grid page number as a String to in order to set
the value from the request parameter.
Applies to
Grid Form, EditableGrid Form
Syntax
public void setPageSize(int size);
public void setPageSize(java.lang.String);
Parameters
Name Type Description
size int number of records per page.
Description
This method sets a number of records per page. It is an equivalent to setFetchSize.
Applies to
Report Form
Syntax
public void setPageSizeLimit(int pageSizeLimit);
Parameters
Name Type Description
pageSizeLimit int Maximal allowed size of the Report page in the web view mode.
Description
Sets maximal allowed size of the Report page in the web view mode.
381
setRedirectString Method (Java)
Applies to
Page Object
Syntax
public void setRedirectString(java.lang.String redirect);
Parameters
Name Type Description
redirect String The URL string for redirect.
Description
This method specifies the URL string for redirect. The redirection occurs before the On Initialize View event is called.
It is recommended to set variable values in the After Initialize event or any submit processing event of page
components.
Applies to
ReportLabel Control
Syntax
public void setResetAt(String string);
Parameters
Name Type Description
string String the name of report group where the control value should be reset.
Description
Sets the name of report group, where the control value should be reset.
Applies to
Grid Form, EditableGrid Form, Record Form, Directory Form, Page Context, Path Control
Syntax
public void setRestricted(boolean flag);
382
Parameters
Name Description
flag If 'true' the users must be logged in before accessing the form.
Description
This method sets whether users must be logged in before accessing the form.
Applies to
Calendar Form
Syntax
public void setShowOtherMonthsDays(boolean showOtherMonthsDays);
Parameters
Name Type Description
showOtherMonthsDays boolean Whether days of the neighbouring months should be shown.
Description
This method specifies whether days of the neighbouring months should be shown.
Applies to
Calendar Form
Syntax
public void setTimeField(String timeField);
Parameters
Name Type Description
timeField String Field name pointing to the Event Time.
Description
This method specifies the Field Name pointing to the Event Time. If 'null,' the calendar will obtain the Event Time from
the dateField field.
383
Applies to
CheckBoxList Control, RadioButton Control, ListBox Control
Syntax
public void setValues(java.util.Enumeration records,java.lang.String
fieldName);
Parameters
Name Type Description
records enumeration The enumeration of DbRows returned from an SQl query
fieldName String Which field holds the values
Description
This method sets list selected values from Enumeration of Strings.
Applies to
Image Control, Label Control, CheckBox Control, FileUpload Control, TextArea Control, TextBox Control, Hidden
Control, CheckBoxList Control, RadioButton Control, ListBox Control, Link Control, ImageLink Control
Syntax
public void setValue(java.lang.Object value);
public void setValue(java.lang.String);
public void setValue(long);
public void setValue(double);
public void setValue(boolean);
Parameters
Name Description
value The value to be assigned to the control.
Description
This method sets the value for the control.
Applies to
Report Form
Syntax
384
public void setViewMode(int mode);
Parameters
Name Type Description
mode int The requested Report view mode. It can be specified using constants Report.VIEW_MODE_WEB
and Report.VIEW_MODE_PRINT.
Description
Set Report view mode.
Applies to
Calendar Form
Syntax
public void setVisualStyle(String name, String value);
Parameters
Name Type Description
name String Style Name
value String Style
Description
This method specifies the Style with the specified name.
Applies to
Calendar Form
Syntax
public void setVisualStyles(Map visualStyles);
Parameters
Name Type Description
visualStyles java.util.Map Map containing Styles that represent days of months, weeks, etc.
Description
385
This method specifies the map containing Styles that represent days of months, weeks, etc.
Applies to
Button Control, DatePicker Control, Navigator Control, Sorter Control, Image Control, Label Control, CheckBox
Control, FileUpload Control, TextArea Control, TextBox Control, Hidden Control, CheckBoxList Control, RadioButton
Control, ListBox Control, Link Control, ImageLink Control, Grid Form, EditableGrid Form, Record Form, Directory
Form, Page Form, Path Form, Panel
Syntax
public void setVisible(boolean setVisible);
Parameters
Name Type Description
setVisible boolean The visibility boolean state, 'false' means hidden
Description
This method specifies whether this control or component should be shown.
Applies to
Report Form
Syntax
public void setWebPageSize(int i);
Parameters
Name Type Description
i int height of Report page in web view mode.
Description
Sets the height of Report page in web view mode.
Applies to
CalendarNavigator Control
386
Syntax
public void setYearsRange(int yearsRange);
Parameters
Name Type Description
yearsRange int Number of years to be displayed in the Navigator.
Description
This method specifies the number of years to be displayed in the Navigator.
Applies to
Report Form
Syntax
public double size();
Return value
double - the number of the Report lines or zero if the Report is not populated with data.
Description
Returns the number of the Report lines or zero if the Report is not populated with data.
Applies to
JDBCConnection Object
Syntax
public String toSql(java.lang.String value,int type);
public String
toSql(java.lang.String,com.codecharge.components.ControlType);
public String toSql(boolean);
public String toSql(java.lang.Boolean);
public String toSql(java.util.Date);
Return value
String - converted (SQL safe) string
Parameters
387
Name Type Description
value String The Element of sql expression
type int The value type indicating necessary changes
Description
This method converts a String value to an SQL expression by adding quotes and delimiters.
388
.NET
Common Classes
Constructors
Constructor Description
public BooleanParameter(Boolean intValue) Initializes a new instance of the integer parameter class.
Properties
Property Description
public Boolean Value get or set value of parameter
Methods
Method Description
public virtual string Convert to string and return Value of the parameter, used mask, specified by
GetFormattedValue(string format) format parameter
public static BooleanParameter Return the instance of BooleanParameter class with value specified by param
GetParam(object param) parameter. If param is null (Nothing in VB) value, the null reference will be
returned.
public static BooleanParameter Return the instance of BooleanParameter class with value specified by param
GetParam(object param, string parameter. If param is String value, it will be parsed using mask, specified by
format) format parameter If param is null (Nothing in VB) value, the null reference will
be returned.
public static BooleanParameter Return the instance of BooleanParameter class with value specified by param
GetParam(object param, object parameter. If param is null (Nothing in VB) value, the defaultValue parameter
defaultValue) will be used.
public static BooleanParameter Return the instance of BooleanParameter class with value specified by param
GetParam(object param, string parameter. If param is String value, it will be parsed using mask, specified by
format, object defaultValue) format parameter If param is null (Nothing in VB) value, the defaultValue
parameter will be used. If param and defaultValue are null (Nothing in VB)
values, the null reference will be returned.
See also
DateParameter Class
IntegerParameter Class
FloatParameter Class
TextParameter Class
MemoParameter Class
389
DateParameter Class (.NET)
Represents a CodeCharge Data Source Date parameter.
Constructors
Constructor Description
public DateParameter(DateTime intValue) Initializes a new instance of the integer parameter class.
Properties
Property Description
public DateTime Value get or set value of parameter
Methods
Method Description
public virtual string Convert to string and return Value of the parameter, used mask, specified by
GetFormattedValue(string format) format parameter
public static DateParameter Return the instance of DateParameter class with value specified by param
GetParam(object param) parameter. If param is null (Nothing in VB) value, the null reference will be
returned.
public static DateParameter Return the instance of DateParameter class with value specified by param
GetParam(object param, string parameter. If param is String value, it will be parsed using mask, specified by
format) format parameter If param is null (Nothing in VB) value, the null reference will
be returned.
public static DateParameter Return the instance of DateParameter class with value specified by param
GetParam(object param, object parameter. If param is null (Nothing in VB) value, the defaultValue parameter
defaultValue) will be used.
public static DateParameter Return the instance of DateParameter class with value specified by param
GetParam(object param, string parameter. If param is String value, it will be parsed using mask, specified by
format, object defaultValue) format parameter If param is null (Nothing in VB) value, the defaultValue
parameter will be used. If param and defaultValue are null (Nothing in VB)
values, the null reference will be returned.
See also
BooleanParameter Class
IntegerParameter Class
FloatParameter Class
TextParameter Class
MemoParameter Class
Constructors
Property Description
public FieldBase(string format) Initializes a new instance of the Field class and sets Format property.
public FieldBase(string format, object Initializes a new instance of the Field class and sets Format property
defaultValue) and Value property.
Properties
390
Property Description
public object Value get or set value of field
public string Format Gets or sets a format mask, which is used in SetValue and Get Formatted Value methods.
Methods
Property Description
public virtual string GetFormattedValue() Convert to string and return Value of object, used mask, specified in
Format property
public virtual string Convert to string and return Value of object, used mask, specified by
GetFormattedValue(string format) format parameter
public virtual void SetValue(object value) Sets Value property of a object. If value can not be converted to target
type, use Format property mask to parse it.
public virtual void SetValue(object Sets Value property of a object. If value can not be converted to target
value,string format) type, use Format method mask to parse it.
Constructors
Constructor Description
public FloatParameter(Double intValue) Initializes a new instance of the integer parameter class.
Properties
Property Description
public Double Value get or set value of parameter
Methods
Method Description
public virtual string Convert to string and return Value of the parameter, used mask, specified by
GetFormattedValue(string format) format parameter
public static FloatParameter Return the instance of FloatParameter class with value specified by param
GetParam(object param) parameter. If param is null (Nothing in VB) value, the null reference will be
returned.
public static FloatParameter Return the instance of FloatParameter class with value specified by param
GetParam(object param, string parameter. If param is String value, it will be parsed using mask, specified by
format) format parameter If param is null (Nothing in VB) value, the null reference will
be returned.
public static FloatParameter Return the instance of FloatParameter class with value specified by param
GetParam(object param, object parameter. If param is null (Nothing in VB) value, the defaultValue parameter
defaultValue) will be used.
public static FloatParameter Return the instance of FloatParameter class with value specified by param
GetParam(object param, string parameter. If param is String value, it will be parsed using mask, specified by
format, object defaultValue) format parameter If param is null (Nothing in VB) value, the defaultValue
parameter will be used. If param and defaultValue are null (Nothing in VB)
values, the null reference will be returned.
See also
391
BooleanParameter Class
DateParameter Class
IntegerParameter Class
TextParameter Class
MemoParameter Class
Constructors
Constructor Description
public IntegerParameter(Int64 intValue) Initializes a new instance of the integer parameter class.
Properties
Property Description
public Int64 Value get or set value of parameter
Methods
Method Description
public virtual string Convert to string and return Value of the parameter, used mask, specified by
GetFormattedValue(string format) format parameter
public static IntegerParameter Return the instance of IntegerParameter class with value specified by param
GetParam(object param) parameter. If param is null (Nothing in VB) value, the null reference will be
returned.
public static IntegerParameter Return the instance of IntegerParameter class with value specified by param
GetParam(object param, string parameter. If param is String value, it will be parsed using mask, specified by
format) format parameter If param is null (Nothing in VB) value, the null reference will
be returned.
public static IntegerParameter Return the instance of IntegerParameter class with value specified by param
GetParam(object param, object parameter. If param is null (Nothing in VB) value, the defaultValue parameter
defaultValue) will be used.
public static IntegerParameter Return the instance of IntegerParameter class with value specified by param
GetParam(object param, string parameter. If param is String value, it will be parsed using mask, specified by
format, object defaultValue) format parameter If param is null (Nothing in VB) value, the defaultValue
parameter will be used. If param and defaultValue are null (Nothing in VB)
values, the null reference will be returned.
See also
BooleanParameter Class
DateParameter Class
FloatParameter Class
TextParameter Class
MemoParameter Class
Properties
Property Description
392
public ItemValue Gets an Item at the specified index or value in the collection. In C#, this property is the indexer
Item for the ItemCollection class
Methods
Property Description
public void Add(string value,string text,bool selected) Appends a item to the end of the collection.
public void Add(string value,string text) Appends a item to the end of the collection.
public void SetSelection(object value) Set selected property to true for a Item from the
collection that represents the specified value.
public object Clone() Creates a copy of the current collection.
public void Copies the items from the ItemCollection to the
CopyTo(System.Web.UI.WebControls.ListItemCollection col, bool specified ListItemCollection, and apply HTML
encode) encode to a Item text.
public void Copies the items from the ItemCollection to the
CopyTo(System.Web.UI.WebControls.ListItemCollection col) specified ListItemCollection.
public void Remove(string value) Removes the Item with the specified value from
the collection.
public void Clear() Removes all Item objects from the collection.
Properties
Property Description
public object Gets an Item at the specified index or value in the collection. In C#, this property is the indexer for
Item the LinkParameterCollection class
Methods
Property Description
public void Add(string Append an item to the end of the collection.
value,string text)
public string ToString() Return the string representation of current collection for using in Uri.
public string Return the string representation of current collection for using in Uri. Preserve parameter
ToString(string from QueryString or Form collection is will added to resulting string. The possible values of
preserve, string preserve parameters: "All","POST" or "GET". The removeList parameter is a semicolon-
removeList) separated list of parameters, which will be removed from preserved parameters
Constructors
Constructor Description
public MemoParameter(String intValue) Initializes a new instance of the integer parameter class.
Properties
393
Property Description
public String Value get or set value of parameter
Methods
Method Description
public virtual string Convert to string and return Value of the parameter, used mask, specified
GetFormattedValue(string format) by format parameter
public static MemoParameter Return the instance of MemoParameter class with value specified by param
GetParam(object param) parameter. If param is null (Nothing in VB) value, the null reference will be
returned.
public static MemoParameter Return the instance of MemoParameter class with value specified by param
GetParam(object param, string format) parameter. The format parameter is ignored. If param is null (Nothing in VB)
value, the null reference will be returned.
public static MemoParameter Return the instance of MemoParameter class with value specified by param
GetParam(object param, object parameter. If param is null (Nothing in VB) value, the defaultValue
defaultValue) parameter will be used.
public static MemoParameter Return the instance of MemoParameter class with value specified by param
GetParam(object param, string format, parameter. The format parameter is ignored. If param is null (Nothing in VB)
object defaultValue) value, the defaultValue parameter will be used. If param and defaultValue
are null (Nothing in VB) values, the null reference will be returned.
See also
BooleanParameter Class
DateParameter Class
IntegerParameter Class
FloatParameter Class
TextParameter Class Represents CodeCharge Data Source parameters.
Classes
IntegerParameter
FloatParameter
TextParameter
MemoParameter
DateParameter
BooleanParameter
Constructors
Constructor Description
public TextParameter(String intValue) Initializes a new instance of the integer parameter class.
Properties
Property Description
public String Value get or set value of parameter
Methods
394
Method Description
public virtual string Convert to string and return Value of the parameter, used mask, specified
GetFormattedValue(string format) by format parameter
public static TextParameter Return the instance of TextParameter class with value specified by param
GetParam(object param) parameter. If param is null (Nothing in VB) value, the null reference will be
returned.
public static TextParameter Return the instance of TextParameter class with value specified by param
GetParam(object param, string format) parameter. The format parameter is ignored. If param is null (Nothing in VB)
value, the null reference will be returned.
public static TextParameter Return the instance of TextParameter class with value specified by param
GetParam(object param, object parameter. If param is null (Nothing in VB) value, the defaultValue
defaultValue) parameter will be used.
public static TextParameter Return the instance of TextParameter class with value specified by param
GetParam(object param, string format, parameter. The format parameter is ignored. If param is null (Nothing in VB)
object defaultValue) value, the defaultValue parameter will be used. If param and defaultValue
are null (Nothing in VB) values, the null reference will be returned.
See also
BooleanParameter Class
DateParameter Class
IntegerParameter Class
FloatParameter Class
MemoParameter Class
Methods
Applies to
Record Form
Syntax
C#.NET
VB.NET
Description
Returns the instance of item whose fields are initialized from Http request values.
Applies to
Grid Form, EditableGrid Form, Path Control, Directory Form
395
Syntax
C#.NET
VB.NET
Description
Binds a data source to the invoked server control and all its child controls.
Use this method to bind data from a source to a server control. This method is commonly used after retrieving a data
set through a database query.
Note: When called on a server control, this method resolves all data-binding expressions in the server control and in
any of its child controls.
Applies to
FileUpload Control
Syntax
C#.NET
VB.NET
Description
Deletes file from disk.
Applies to
Record Form
Syntax
C#.NET
VB.NET
Description
396
Deletes data from item specified in item parameter from database.
Applies to
Record Form
Syntax
C#.NET
VB.NET
Description
Inserts the specified item into the database.
Applies to
Record Form
Syntax
C#.NET
VB.NET
Description
Fills the specified item with database data. If database request returns no rows, IsInsertMode parameter will be set to
true.
Applies to
Path Form, Directory Form
Syntax
C#.NET
397
public <control name>Item[] GetResultSet()
VB.NET
Description
Executes SQL command and returns an array of Items.
Use this method to obtain data source for a server control.
Applies to
Grid Form, EditableGrid Form
Syntax
C#.NET
VB.NET
Description
Executes SQL command and returns Items array. The PagesCount parameter contains the number of pages.
Use this method to obtain data source for a server control.
Applies to
EditableGrid Form
Syntax
C#.NET
VB.NET
Description
Performs update operations for each item in the items array.
For each item in ArrayList the state will be checked (IsNew, IsDeleted and so on) and corresponding DB operation
will be performed.
398
UpdateItem Method (.NET)
Applies to
Record Form
Syntax
C#.NET
VB.NET
Description
Updates the specified item in the database.
Applies to
FileUpload Control
Syntax
C#.NET
VB.NET
Description
Saves the processed file into the FileFolder.
Applies to
Record Form, EditableGrid Form
Syntax
C#.NET
VB.NET
399
Description
Performs item validation and populates the item errors collection if validation fails.
Use this method to validate the item.
Applies to
FileUpload Control
Syntax
C#.NET
VB.NET
Description
Performs item validation and saves the file into TemporaryFolder. Returns true if the validation is successful,
otherwise returns false.
Run-Time Properties
Applies to
FileUpload Control
Syntax
C#.NET
VB.NET
Description
Gets or sets the semicolon-separated list of the allowed file masks. The default value is '*' (all allowed).
Examples
C#.NET
400
FileUpload1.AllowedFileMasks="*.gif;*.jpg";
VB.NET
FileUpload1.AllowedFileMasks="*.gif;*.jpg"
See also
DisallowedFileMasks Property
FileSizeLimit Property
Applies to
ConnectionString Object
Syntax
C#.NET
VB.NET
Description
Gets or sets the database format for work with Boolean values.
Examples
C#.NET
ConnectionString1.BoolFormat="true;false";
VB.NET
ConnectionString1.BoolFormat="true;false"
See also
DateFormat Property
Applies to
ConnectionString Object
Syntax
C#.NET
401
public System.Collections.Specialized.NameValueCollection
ConnectionCommands{get;}
VB.NET
Description
Gets the collection of the SQL commands, which will be executed each time the connection is opened. These
commands are usually used for setting client session variables or changing database server defaults.
Examples
C#.NET
ConnectionString1.ConnectionCommands.Add("ANSI","SET ANSI_DEFAULTS
ON");
VB.NET
ConnectionString1.ConnectionCommands.Add("ANSI","SET ANSI_DEFAULTS
ON")
Applies to
ConnectionString Object
Syntax
C#.NET
VB.NET
Description
A connection string that includes the source database name and other parameters needed to establish the initial
connection. The default value is an empty string. The format of the string depends on the Type property.
Examples
C#.NET
ConnectionString1.ConnectionString =
@"Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data
Source=c:\Program
Files\CodeChargeStudio\Examples\Internet\Internet.mdb ;Persist
Security Info=False";
VB.NET
402
ConnectionString1.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=c:\Program
Files\CodeChargeStudio\Examples\Internet\Internet.mdb ;Persist
Security Info=False"
See also
Type Property
Applies to
ReportLabel control
Syntax
C#.NET
VB.NET
Description
Retrieves or sets content type of the report label. This property defines whether the text output by the ReportLabel
will be HTML encoded. The default value is Text.
Type Description
Text The text will be encoded during rendering.
HTML The text will be rendered as is.
Examples
C#.NET
ReportLabel1.ContentType = ContentType.HTML;
VB.NET
Report1Label.ContentType = ContentType.HTML
See also
Text Property
Applies to
Calendar control
Syntax
403
C#.NET
VB.NET
Description
Retrieves or specifies the current date for Calendar control. The default value is DateTime.Now.
Examples
C#.NET
Calendar1.CurrentDate = DateTime.Now;
VB.NET
Calendar1.CurrentDate = DateTime.Now
See also
Date Property
Applies to
Calendar control
Syntax
C#.NET
VB.NET
Description
Retrives or specifies the text that will be rendered in case when Text property will contain null or empty string value.
Examples
C#.NET
ReportLabel1.EmptyText = "N/A";
VB.NET
ReportLabel1.EmptyText = "N/A"
See also
Text Property
404
DataSource Run-Time Property (.NET)
Applies to
Calendar Form, Grid Form, EditableGrid Form, Report Form, Path Control, Directory Form
Syntax
C#.NET
VB.NET
Description
Gets or sets the data source that provides data for populating the list.
Examples
C#.NET
Directory1.DataSource = Directory1Data.GetResultSet();
Directory1.DataBind();
VB.NET
Directory1.DataSource = Directory1Data.GetResultSet()
Directory1.DataBind()
See also
DataBind Property
Applies to
ReportLabel control
Syntax
C#.NET
VB.NET
Description
Retrieves or sets the data type of the ReportLabel control.
Examples
C#.NET
405
ReportLabel1.DataType = FieldType.Integer;
VB.NET
ReportLabel1.DataType = FieldType._Integer
Applies to
ConnectionString Object
Syntax
C#.NET
VB.NET
Description
Gets or sets the database format of DateTime values.
Examples
C#.NET
ConnectionString1.DateFormat="yyyy-MM-dd HH:mm:ss";
VB.NET
ConnectionString1.DateFormat="yyyy-MM-dd HH:mm:ss"
See also
BoolFormat Property
Applies to
Calendar control
Syntax
C#.NET
VB.NET
406
Description
Retrives or specifies the active date for Calendar control.
Examples
C#.NET
VB.NET
See also
CurrentDate Property, Year Property, Month Property, Day Property
Applies to
CalendarNavigator control
Syntax
C#.NET
VB.NET
Description
Retrives the selected date for CalendarNavigator control.
Examples
C#.NET
VB.NET
See also
Year Property, Month Property, Day Property
Applies to
ConnectionString Object
407
Syntax
C#.NET
VB.NET
Description
Gets or sets the left date delimiter in SQL command (for example '#' for MS Access)
Examples
C#.NET
ConnectionString1.DateLeftDelim="#";
VB.NET
ConnectionString1.DateLeftDelim="#"
See also
DateRightDelim Property
Applies to
ConnectionString Object
Syntax
C#.NET
VB.NET
Description
Gets or sets the right date delimiter in SQL command (for example '#' for MS Access)
Examples
C#.NET
ConnectionString1.DateRightDelim="#";
VB.NET
ConnectionString1.DateRightDelim="#"
See also
408
DateLeftDelim Property
Applies to
Calendar control
Syntax
C#.NET
VB.NET
Description
Retrives or specifies the day component of Date property.
Examples
C#.NET
Calendar1.Day = 10;
VB.NET
Calendar1.Day = 10
See also
Date Property, Year Property, Month Property
Applies to
CalendarNavigator control
Syntax
C#.NET
VB.NET
Description
Retrives the day component of Date property.
409
Examples
C#.NET
VB.NET
See also
Date Property, Year Property, Month Property, Quarter Property
Applies to
FileUpload Control
Syntax
C#.NET
VB.NET
Description
Gets or sets the semicolon-separated list of the disallowed file masks. The default value is an empty string.
Examples
C#.NET
FileUpload1.DisallowedFileMasks="*.gif;*.jpg";
VB.NET
FileUpload1.DisallowedFileMasks="*.gif;*.jpg"
See also
AllowedFileMasks Property
FileSizeLimit Property
Applies to
ReportLabel control
Syntax
410
C#.NET
VB.NET
Description
Retrieves or sets the text that will be output when the Text property of the report label contains null or an empty string
value.
Examples
C#.NET
ReportLabel1.EmptyText = "N/A";
VB.NET
ReportLabel1.EmptyText = "N/A"
See also
Text Property
Applies to
Calendar Form, EditableGrid Form, Path Control, Directory Form, Record Form, Report Form
Syntax
C#.NET
VB.NET
Description
This property keeps the reference to the object’s errors collection. It is used to collect error messages generated
during the object’s execution.
Examples
C#.NET
VB.NET
411
Field Run-Time Property (.NET)
Applies to
Sorter Control
Syntax
C#.NET
VB.NET
Description
The name of field which will be passed into OnItemCommand event.
Examples
C#.NET
Sorter1.Field = "user_name";
VB.NET
Sorter1.Field = "user_name"
Applies to
FileUpload Control
Syntax
C#.NET
VB.NET
Description
Gets or sets the destination folder for uploaded files. The default value is blank (application working folder)
Exceptions
Exception Condition
System.IO.DirectoryNotFoundException The specified folder does not exist.
System.Security.SecurityException The working process does not have write permissions onto the specified
folder.
412
Examples
C#.NET
FileUpload1.FileFolder="c:\MyApp\UploadedFiles";
VB.NET
FileUpload1.FileFolder="c:\MyApp\UploadedFiles"
See also
TemporaryFolder Property
Applies to
FileUpload Control
Syntax
C#.NET
VB.NET
Description
Gets or sets the limit of the file size for uploading files. the default is -1 (no limit)
Examples
C#.NET
FileUpload1.FileSizeLimit = 100000;
VB.NET
FileUpload1.FileSizeLimit = 100000
See also
AllowedMasks Property
DisallowedMasks Property
Applies to
Report Form
Syntax
413
C#.NET
VB.NET
Description
Retrieves or sets the format that will be applied to the output produced by the report label.
Examples
C#.NET
ReportLabel1.Format = "#.##0";
VB.NET
ReportLabel1.Format = "#.##0"
See also
Text Property
Applies to
ReportLabel Control
Syntax
C#.NET
VB.NET
Description
Retrieves or sets the function to be used if the value of the report label is to be auto-calculated. The default value is
"None".
Type Description
None No function will be used.
Sum The report label value will be calculated as the sum of previous row values.
Count If the Source is empty the value will be calculated as the count of previous data rows. Otherwise the value
will be calculated as the count of previous data rows with non-empty values.
Min The value will be calculated as the minimum of previous row values.
Max The value will be calculated as the maximum of previous row values.
Avg The value will be calculated as the average of non-empty values from previous rows.
Examples
414
C#.NET
ReportLabel1.Function = TotalFunction.Sum;
VB.NET
ReportLabel1.Function = TotalFunction.Sum
See also
ResetAt Property,PercentOf Property
Applies to
Report Form
Syntax
C#.NET
VB.NET
Description
Gets the collections of report groups. The collection contains a key-value pairs, where key is a group name and value
is a grouping field name.
Examples
C#.NET
Report1.Groups.Add("Users","user_id");
VB.NET
Report1.Groups.Add("Users","user_id")
Applies to
Section Control
Syntax
C#.NET
VB.NET
415
Public Property Height() As Single
Description
Retrieves or sets the height of the current control in abstract "line" units.
Examples
C#.NET
ReportSection1.Height = 1.5;
VB.NET
ReportSection1.Height = 1.5
Applies to
EditableGrid Form, Record Form
Syntax
C#.NET
VB.NET
Description
This property indicates if the item should be deleted.
Examples
C#.NET
item.IsDeleted = true;
VB.NET
item.IsDeleted = True
See also
IsNew Property
IsUpdated Property
IsEmptyItem Property
Applies to
416
EditableGrid Form
Syntax
C#.NET
VB.NET
Description
Indicates that the item does not contain any data.
Examples
C#.NET
if(!item.IsEmptyItem) item.Validate();
VB.NET
See also
IsNew Property
IsUpdated Property
IsDeleted Property
Applies to
EditableGrid Form, Record Form
Syntax
C#.NET
VB.NET
Description
Indicates that the item is new and Update method has not been called.
Examples
C#.NET
if(!item.IsNew) Record1Data.Update(item);
VB.NET
417
If Not item.IsNew Then Record1Data.Update(item)
See also
IsEmptyItem Property
IsUpdated Property
IsDeleted Property
Applies to
EditableGrid Form
Syntax
C#.NET
VB.NET
Description
This property indicates that the Update method of the Data Provider successfully performed database operation
(insert, update or delete) for the item.
Examples
C#.NET
if(!item.IsUpdated) EditableGrid1Data.Update();
VB.NET
See also
IsEmptyItem Property
IsNew Property
IsDeleted Property
Applies to
Navigator Control
Syntax
C#.NET
418
VB.NET
Description
The maximum number of pages. Use this property to set the number of pages that the navigator can display.
Examples
C#.NET
Navigator.MaxPage = 10;
VB.NET
Navigator.MaxPage = 10
See also
PageMumber Property
PagerSize Property
Style Property
Applies to
Calendar control
Syntax
C#.NET
VB.NET
Description
Retrives or specifies the calendar type.
Type Description
Full The calendar will display 12 months of the given year.
Quarter The calendar will display 3 months of the quarter to which the selected date belongs.
ThreeMonth The calendar will display 3 months of a quarter: the selected, next and previous months.
OneMonth The calendar will display 1 selected month.
Examples
C#.NET
Calendar1.Mode = CalendarMode.Quarter;
VB.NET
419
Calendar1.Mode = CalendarMode.Quarter
See also
Text Property
Applies to
Calendar control
Syntax
C#.NET
VB.NET
Description
Retrives or specifies the month component of Date property.
Examples
C#.NET
Calendar1.Month = 10;
VB.NET
Calendar1.Month = 10
See also
Date Property, Year Property, Day Property
Applies to
Calendar control
Syntax
C#.NET
VB.NET
420
Description
Retrives or specifies the number of calendar columns. An annual calendar can have between 1 and 12 columns,
while quarterly and 3-months calendars can have between 1 and 3 columns.
Examples
C#.NET
Calendar1.MonthsInRow = 2;
VB.NET
Calendar1.MonthsInRow = 2
Applies to
Section Control
Syntax
C#.NET
VB.NET
Description
Gets or sets the name of the Section control.
Examples
C#.NET
ReportSection1.Name = "Detail";
VB.NET
ReportSection1.Name = "Detail"
Applies to
Directory Form
Syntax
C#.NET
VB.NET
421
Public Property NumberOfColumns() As Integer
Description
The number of columns the categories in the directory form are displayed in.
Examples
C#.NET
Directory1.NumberOfColumns = 2;
VB.NET
Directory1.NumberOfColumns = 2
Applies to
Directory Form
Syntax
C#.NET
VB.NET
Description
The maximum number of subcategories to be displayed per category.
Examples
C#.NET
Directory1.NumberOfSubCategories = 3;
VB.NET
Directory1.NumberOfSubCategories = 3
Applies to
CalendarNavigator control
Syntax
C#.NET
422
public CalendarNavigatorOrder Order{get;set;}
VB.NET
Description
Retrives or specifies the order of showing calendar navigator navigation parts.
Type Description
YearsQuartersMonths The calendar navigator will show year, then quarter, then month navigation parts.
YearsMonthsQuarters The calendar navigator will show year, then month, then quarter navigation parts.
MonthsQuartersYears The calendar navigator will show month, then quarter, then year navigation parts.
MonthsYearsQuarters The calendar navigator will show month, then year, then quarter navigation parts.
QuartersYearsMonths The calendar navigator will show quarter, then year, then month navigation parts.
QuartersMonthsYears The calendar navigator will show quarter, then month, then year navigation parts.
Examples
C#.NET
CalendarNavigator1.Order = CalendarNavigatorOrder.MonthsQuartersYears;
VB.NET
CalendarNavigator1.Order = CalendarNavigatorOrder.MonthsQuartersYears
Applies to
Navigator Control
Syntax
C#.NET
VB.NET
Description
The number of the currently displayed page. Use this property to retrieve the number of the page the navigator is
currently displaying.
Examples
C#.NET
Navigator.PageNumber = 6;
VB.NET
423
Navigator.PageNumber = 6
See also
MaxPage Property
PagerSize Property
Style Property
Applies to
Navigator Control
Syntax
C#.NET
VB.NET
Description
The number of pages that are displayed simultaneously by the pager.
Examples
C#.NET
Navigator.PagerSize = 10;
VB.NET
Navigator.PagerSize = 10
See also
MaxPage Property
PageNumber Property
Style Property
Applies to
Report Form
Syntax
C#.NET
VB.NET
424
Public Overridable Property PageSize() As Single
Description
Retrieves or sets the number of lines per page to be output in Print view mode.
Examples
C#.NET
Report1.PageSize = 100;
VB.NET
Report1.PageSize = 100
See also
PageSizeLimit Property,WebPageSize Property,ViewMode Property
Applies to
Report Form
Syntax
C#.NET
VB.NET
Description
Retrieves or sets the maximum number of lines per page to be output in Web view mode.
Examples
C#.NET
Report1.PageSizeLimit = 100;
VB.NET
Report1.PageSizeLimit = 100
See also
PageSize Property,WebPageSize Property,ViewMode Property
425
Applies to
Grid Form, EditableGrid Form
Syntax
C#.NET
VB.NET
Description
Retrieves or sets the number of displayed page.
Examples
C#.NET
Grid1Data.PageNumber = 6;
VB.NET
Grid1Data.PageNumber = 6
See also
RecordPerPage Property
Applies to
ReportLabel control
Syntax
C#.NET
VB.NET
Description
Retrieves or sets the name of the report group of which the percent value will be calculated. The possible values are
"Report" or the name of any defined report group.
Examples
C#.NET
ReportLabel1.PercentOf = "Report";
VB.NET
426
ReportLabel1.PercentOf = "Report"
See also
Function Property
Applies to
Report Form
Syntax
C#.NET
VB.NET
Description
Retrieves or sets the page number in the Web view mode.
Examples
C#.NET
Report1.PreviewPageNumber = 100;
VB.NET
Report1.PreviewPageNumber = 100
See also
WebPageSize Property,ViewMode Property
Applies to
CalendarNavigator control
Syntax
C#.NET
VB.NET
427
Description
Retrives the quarter of Date property.
Examples
C#.NET
VB.NET
See also
Date Property, Month Property, Day Property, Year Property
Applies to
Grid Form, EditableGrid Form
Syntax
C#.NET
VB.NET
Description
Retrieves or sets the number of records displayed on a page.
Examples
C#.NET
Grid1Data.RecordPerPage = 10;
VB.NET
Grid1Data.RecordPerPage = 10
Applies to
FileUpload Control
Syntax
C#.NET
428
public bool Required{get;set}
VB.NET
Description
If this property is set to true, the user will not be able to delete an already uploaded file.
Examples
C#.NET
FileUpload1.Required = true;
VB.NET
FileUpload1.Required = True
Applies to
ReportLabel Control
Syntax
C#.NET
VB.NET
Description
Retrieves or sets the name of the section where the corresponding control's value should be reset. Possible values
are "Report", "Page" or name of any defined report group.
Examples
C#.NET
ReportLabel1.ResetAt = "Page";
VB.NET
ReportLabel1.ResetAt = "Page"
See also
Function Property,PercentOf Property
429
Applies to
Report Form
Syntax
C#.NET
VB.NET
Description
Retrieves the number of the currently processed report row.
Examples
C#.NET
VB.NET
Applies to
Calendar control
Syntax
C#.NET
VB.NET
Description
Retrives or specifies whether to show days of the surrounding months if the 1st or last week of the month includes
days of other months.
Examples
C#.NET
Calendar1.ShowOtherMonthsDays = true;
VB.NET
Calendar1.ShowOtherMonthsDays = True
430
Applies to
Grid Form, EditableGrid Form
Syntax
C#.NET
VB.NET
Description
Gets or sets the sort column for the Select command. The default value is <control
name>DataProvider.SortFields.Default
Examples
C#.NET
Grid1Data.SortField = Grid1DataProvider.SortFields.UserId;
VB.NET
Grid1Data.SortField = Grid1DataProvider.SortFields.UserId
Applies to
ReportLabel Control
Syntax
C#.NET
VB.NET
Description
Retrieves or sets the data source for the control. The value may be different depending on the SourceType property.
If SourceType is set to DBColumn then the value should be the name of a database column. If SourceType is set to
SpecialValue then the value should be one of the following: RowNumber, PageNumber, CurrentDate,
CurrentDateTime, CurrentTime.
Examples
C#.NET
ReportLabel1.Source = "user_name";
VB.NET
431
ReportLabel1.Source = "user_name"
See also
SourceType Property
Applies to
ReportLabel Control
Syntax
C#.NET
VB.NET
Description
Retrieves or sets the source type of the report label.
Type Description
DBColumn The source of report label is a database column.
SpecialValue The source of report label is a special value.
Examples
C#.NET
ReportLabel1.SourceType = ReportLabelSourceType.DBColumn;
VB.NET
ReportLabel1.SourceType = ReportLabelSourceType.DBColumn
See also
Source Property
Applies to
Sorter Control
Syntax
C#.NET
432
public SorterState State{get;set;}
VB.NET
Description
The state of the sorter control.
Type Description
Ascending The sorter in Ascending state.
Descending The sorter in Descending state.
None The sorter is inactive.
Examples
C#.NET
Sorter1.State = SorterState.Ascending;
VB.NET
Sorter1.State = SorterState.Ascending
Applies to
Navigator Control
Syntax
C#.NET
VB.NET
Description
The display style of the navigator.
Type Description
Centered The current page displayed in the center of the pager.
Moving The current page moving in the pager.
Examples
C#.NET
Navigator.Style = PageStyle.Centered;
VB.NET
433
Navigator.Style = PageStyle.Centered;
See also
MaxPage Property
PageNumber Property
PagerSize Property
Applies to
FileUpload Control
Syntax
C#.NET
VB.NET
Description
Retrieves or sets the temporary folder for uploaded files. This folder is used for storing files during form validation.
Values starting with the "%" character will be interpreted as system environment variable name.
Exceptions
Exception Condition
System.IO.DirectoryNotFoundException The specified folder does not exist.
System.Security.SecurityException The working process does not have write permissions for the specified
folder.
Examples
C#.NET
FileUpload1.TemporaryFolder="%TEMP";
VB.NET
FileUpload1.TemporaryFolder="%TEMP"
See also
FileFolder Property
Applies to
FileUpload Control
434
Syntax
C#.NET
VB.NET
Description
This property contains the name of the uploaded file.
Exceptions
Exception Condition
System.IO.FileNotFoundException The specified file does not exist.
Examples
C#.NET
FileUpload1.Text = @"c:\MyApp\UploadedFiles\image1.jpg";
VB.NET
FileUpload1.Text = @"c:\MyApp\UploadedFiles\image1.jpg"
Applies to
ReportLabel Control
Syntax
C#.NET
VB.NET
Description
Retrieves or sets the text to be output by the report label control.
Examples
C#.NET
VB.NET
435
See also
ContentType Property
Applies to
Report Form
Syntax
C#.NET
VB.NET
Description
Retrieves total number of pages of the current report.
Examples
C#.NET
VB.NET
See also
PageSizeLimit Property, PageSize Property,WebPageSize Property,ViewMode Property
Applies to
ConnectionString Object
Syntax
C#.NET
VB.NET
Description
The type of .NET Managed Provider, which will be used for the connection. The following table lists the different
types.
436
Type Description
OleDb OLE DB .NET Data Provider.
Sql SQL Server .NET Data Provider.
Odbc ODBC .NET Data Provider.
Oracle Oracle .NET Data Provider.
Examples
C#.NET
ConnectionString1.Type = ConnectionStringType.OleDb;
VB.NET
ConnectionString1.Type = ConnectionStringType._OleDb
See also
ConnectionString Property
Applies to
Report Form
Syntax
C#.NET
VB.NET
Description
Retrieves or sets the current view mode of the report.
Type Description
Print The report will be displayed in Print mode.
Web The report will be displayed in Web view mode.
Examples
C#.NET
Report1.ViewMode = ReportViewMode.Print;
VB.NET
Report1.ViewMode = ReportViewMode.Print
437
See also
PageSizeLimit Property,PageSize Property,WebPageSize Property
Applies to
Button Control, Label Control, TextBox Control, TextArea Control, Checkbox Control, Image Control, ImageLink
Control, DatePicker Control, Hidden Control, Grid Form, ListBox Control, CheckboxList Control, RadioButton Control,
Record Form, Sorter Control, EditableGrid Form, Path Control, Directory Form, FileUpload Control, Panel, Calendar
Syntax
C#.NET
VB.NET
Description
If this property is false, the server control is not rendered.
Examples
C#.NET
Grid1Repeater.Visible = false;
VB.NET
Grid1Repeater.Visible = False
Applies to
Report Form
Syntax
C#.NET
VB.NET
Description
Retrieves or sets the number of lines per page to be output in Web view mode.
Examples
438
C#.NET
Report1.WebPageSize = 100;
VB.NET
Report1.WebPageSize = 100
See also
PageSizeLimit Property,PageSize Property,ViewMode Property
Applies to
Calendar control
Syntax
C#.NET
VB.NET
Description
Retrives or specifies the year component of Date property.
Examples
C#.NET
Calendar1.Year = 10;
VB.NET
Calendar1.Year = 10
See also
Date Property, Month Property, Day Property
Applies to
CalendarNavigator control
Syntax
C#.NET
439
VB.NET
Description
Retrives the year component of Date property.
Examples
C#.NET
VB.NET
See also
Date Property, Month Property, Day Property, Quarter Property
Applies to
CalendarNavigator control
Syntax
C#.NET
VB.NET
Description
Retrives or specifies the number of years to display in the navigator..
Examples
C#.NET
CalendarNavigator1.YearsRange = 10;
VB.NET
CalendarNavigator1.YearsRange = 10
440