Delphi Xe: Intraweb Xi
Delphi Xe: Intraweb Xi
Delphi Xe: Intraweb Xi
IntraWeb XI
Development
Delphi XE, IntraWeb XI (VCL for the Web)
1th EDITION - 2011
Table of Contents
1. VCL for the Web / IntraWeb XI ................................................... 1
IntraWeb XI 11.x and Delphi XE .......................................................... 1
IDE Support............................................................................ 1
Discontinued Features .............................................................. 1
IntraWeb XI Features ............................................................... 2
Uninstall Previous Version ......................................................... 3
Installing IntraWeb XI .............................................................. 5
IntraWeb License Keys ............................................................. 11
Summary ......................................................................................... 12
2. IntraWeb XI Applications ............................................................ 13
IWDemo Project Source ..................................................................... 14
GUI Mode ............................................................................... 15
Service Mode .......................................................................... 16
Server Controller ............................................................................... 17
TIWServerController Properties.................................................. 19
AllowMultipleSessionsPerUser .................................................... 20
AppName ............................................................................... 20
AuthBeforeNewSession............................................................. 20
Auther ................................................................................... 20
BoundIP ................................................................................. 22
CacheDir ................................................................................ 22
CacheExpiry............................................................................ 22
CharSet ................................................................................. 22
ComInitialization ..................................................................... 22
Compression........................................................................... 22
ContentFiles............................................................................ 23
DebugHTML ............................................................................ 24
Description ............................................................................. 24
DisplayName .......................................................................... 24
EnableImageToolbar ................................................................ 24
ExceptionDisplayMode .............................................................. 24
FilesDir .................................................................................. 24
HistoryEnabled ........................................................................ 24
HTMLHeaders.......................................................................... 24
InternalFilesDir ....................................................................... 24
InternalFilesURL ...................................................................... 25
JavascriptDebug ...................................................................... 25
Log........................................................................................ 25
MasterTemplate ...................................................................... 25
PageTransitions ....................................................................... 25
Port ....................................................................................... 25
RedirectMsgDelay .................................................................... 25
ServerResizeTimeout ............................................................... 26
SessionTimeout ....................................................................... 26
ShowLoadingAnimation ............................................................ 26
SSLOptions............................................................................. 26
StyleSheet.............................................................................. 26
TemplateDir............................................................................ 26
TimeoutResponse .................................................................... 26
TIWServerController Events ................................................................ 27
OnAfterDispatch ...................................................................... 27
OnAfterRender ........................................................................ 27
OnBackButton ......................................................................... 27
OnBeforeDispatch .................................................................... 28
OnBeforeRender ...................................................................... 28
OnCloseSession....................................................................... 28
OnException ........................................................................... 28
OnGetSessionID ...................................................................... 29
OnNewSession ........................................................................ 29
IntraWeb TIWApplication Properties ..................................................... 29
ActiveForm ............................................................................. 30
ActiveFormCount ..................................................................... 30
AppID .................................................................................... 30
ApplicationURL ........................................................................ 30
Browser ................................................................................. 30
Data ...................................................................................... 30
FormAction ............................................................................. 30
FormCount ............................................................................. 30
Forms .................................................................................... 30
IP.......................................................................................... 30
IsCallback .............................................................................. 30
LastAccess.............................................................................. 30
RedirectURL............................................................................ 30
ReferringURL .......................................................................... 30
Request ................................................................................. 31
Response ............................................................................... 31
RunParams ............................................................................. 31
SecureMode............................................................................ 31
SessionTimeout ....................................................................... 31
Terminated ............................................................................. 31
TerminateMessage................................................................... 31
TerminateURL ......................................................................... 31
TrackID.................................................................................. 31
UserCacheDir .......................................................................... 31
TIWApplication Methods ..................................................................... 32
GoToURL ................................................................................ 32
MarkAccess............................................................................. 32
SendFile ................................................................................. 32
SendStream ........................................................................... 32
ShowMessage ......................................................................... 32
Terminate .............................................................................. 33
TerminateAndRedirect .............................................................. 33
TIWAppForm .................................................................................... 33
IntraWeb TIWPageForm ..................................................................... 33
ActiveControl .......................................................................... 35
Background ............................................................................ 35
ExtraHeader ........................................................................... 35
HandleTabs ............................................................................ 35
HiddenFields ........................................................................... 35
JavaScript .............................................................................. 35
LayoutMgr .............................................................................. 35
LinkColor................................................................................ 35
ShowHint ............................................................................... 35
StyleSheet.............................................................................. 35
SupportedBrowsers.................................................................. 35
TextColor ............................................................................... 35
Title....................................................................................... 35
VLinkColor .............................................................................. 35
TIWDBGrid ............................................................................. 56
TIWDBImage .......................................................................... 56
TIWDBLabel............................................................................ 56
TIWDBListbox ......................................................................... 57
TIWDBLookupListbox ............................................................... 57
TIWDBLookupCombobox .......................................................... 57
TIWDBFile .............................................................................. 57
TIWDBMemo........................................................................... 57
TIWDBNavigator...................................................................... 57
TIWDBText ............................................................................. 57
TIWDBRadioGroup ................................................................... 57
Continued Demo ............................................................................... 58
TIWDBGrid Usage .................................................................... 62
Sharing VCL data modules with VCL for the Web.................................... 67
Pool Data Connections ....................................................................... 68
DatamoduleUnit ...................................................................... 69
ServerController ...................................................................... 69
Using Data Pooling................................................................... 71
Custom Data Pooling................................................................ 71
Summary ......................................................................................... 72
4. IntraWeb and AJAX ..................................................................... 73
AJAX = Asynchronous ........................................................................ 73
OnAsync ................................................................................ 73
OnAsync Events ...................................................................... 75
EventParams .......................................................................... 76
Working with EventParams ....................................................... 78
OnAsync and Visible................................................................. 79
OnAsync and Disable ............................................................... 79
Summary ......................................................................................... 80
5. IntraWeb and iPhone / iPad ........................................................ 81
TMS IntraWeb iPhone Controls Pack ..................................................... 81
TTIWiPhoneButton ................................................................... 83
TTIWiPhoneEmailLabel ............................................................. 83
TTIWiPhoneFooter ................................................................... 83
TTIWiPhoneGeolocation ............................................................ 84
TTIWiPhoneHeader .................................................................. 84
TTIWiPhoneList ....................................................................... 84
TTIWiPhoneLocationLabel ......................................................... 84
TTIWiPhoneMenu..................................................................... 84
TTIWiPhoneOnOffButton ........................................................... 84
TTIWiPhonePageFlip................................................................. 85
TTIWiPhonePhoneLabel ............................................................ 85
TTIWiPhoneRegion................................................................... 85
TTIWiPhoneScrollRegion ........................................................... 85
TTIWiPhoneSMSLabel............................................................... 85
TTIWiPhoneStyle ..................................................................... 85
TTIWiPhoneTrackbar ................................................................ 85
TMS iPhone Controls Demo ................................................................. 86
Registered Users ..................................................................... 95
Summary ......................................................................................... 96
6. IntraWeb Custom Components.................................................... 97
IntraWeb Controls ............................................................................. 97
Custom Components ................................................................ 99
Packages................................................................................ 100
TIEuroComboBox..................................................................... 102