1. Cloud Computing Using
Oracle Application
Express
Develop Internet-Facing Business
Applications Accessible Anywhere
and Anytime
Second Edition
Riaz Ahmed
3. iii
Table of Contents
Chapter 1: Introduction to Cloud Computing and the Application Project���������������� 1
1.1 An Introduction to Cloud Computing��������������������������������������������������������������������������������������� 1
1.2 Public vs. Private Cloud���������������������������������������������������������������������������������������������������������� 2
1.3 What Is Accounting?���������������������������������������������������������������������������������������������������������������� 4
1.4 Accounting System����������������������������������������������������������������������������������������������������������������� 4
1.5 General Ledger������������������������������������������������������������������������������������������������������������������������ 5
1.6 The Cloud Accountant General Ledger Project������������������������������������������������������������������������ 6
1.7 Development Environment������������������������������������������������������������������������������������������������������ 7
1.8 Application Segments������������������������������������������������������������������������������������������������������������� 7
1.9 Summary�������������������������������������������������������������������������������������������������������������������������������� 9
Chapter 2: Application Navigation�������������������������������������������������������������������������� 11
2.1 Create the Main Application Menu���������������������������������������������������������������������������������������� 11
2.2 Modify/Add Navigation Bar Entries��������������������������������������������������������������������������������������� 14
2.3 Summary������������������������������������������������������������������������������������������������������������������������������ 16
Chapter 3: Companies�������������������������������������������������������������������������������������������� 17
3.1 Create Application Tables������������������������������������������������������������������������������������������������������ 17
3.2 Create Pages for Company Setup����������������������������������������������������������������������������������������� 18
3.3 Summary������������������������������������������������������������������������������������������������������������������������������ 19
About the Author�����������������������������������������������������������������������������������������������������xv
About the Technical Reviewers�����������������������������������������������������������������������������xvii
Introduction������������������������������������������������������������������������������������������������������������xix
4. iv
Chapter 4: Fiscal Year��������������������������������������������������������������������������������������������� 21
4.1 Create List of Values������������������������������������������������������������������������������������������������������������� 22
4.2 Create Page and Parameters Region������������������������������������������������������������������������������������ 23
4.3 Create a Fiscal Year Grid������������������������������������������������������������������������������������������������������� 25
4.4 Add Items to Hold Months/Dates������������������������������������������������������������������������������������������� 27
4.5 Create Buttons to Generate, Save, and Remove a Fiscal Year����������������������������������������������� 28
4.6 Generate Fiscal Year Process������������������������������������������������������������������������������������������������ 30
4.7 Save Fiscal Year Process������������������������������������������������������������������������������������������������������ 30
4.8 Delete Fiscal Year Process���������������������������������������������������������������������������������������������������� 31
4.9 Fetch Fiscal Year Dynamic Action����������������������������������������������������������������������������������������� 31
4.10 Create Validation: Check Transaction���������������������������������������������������������������������������������� 32
4.11 Create Branch��������������������������������������������������������������������������������������������������������������������� 33
4.12 Dynamic Actions to Hide Buttons���������������������������������������������������������������������������������������� 34
4.13 Test Your Work��������������������������������������������������������������������������������������������������������������������� 38
4.14 Summary���������������������������������������������������������������������������������������������������������������������������� 39
Chapter 5: Voucher Types��������������������������������������������������������������������������������������� 41
5.1 Create List of Values������������������������������������������������������������������������������������������������������������� 41
5.2 Create Pages for Voucher Types Setup��������������������������������������������������������������������������������� 42
5.2.1 Convert Text Item to Radio Group��������������������������������������������������������������������������������� 43
5.3 Create Validation: Check Transaction������������������������������������������������������������������������������������ 44
5.4 Test Your Work����������������������������������������������������������������������������������������������������������������������� 44
5.5 Summary������������������������������������������������������������������������������������������������������������������������������ 45
Chapter 6: Application Segments��������������������������������������������������������������������������� 47
6.1 Create Lists of Values������������������������������������������������������������������������������������������������������������ 48
6.2 Create Segments Setup Pages��������������������������������������������������������������������������������������������� 48
6.3 Modify Segments Form��������������������������������������������������������������������������������������������������������� 49
6.4 Add Tree View Region������������������������������������������������������������������������������������������������������������ 51
6.5 Create Buttons���������������������������������������������������������������������������������������������������������������������� 51
6.6 Create Validations����������������������������������������������������������������������������������������������������������������� 53
Table of Contents
5. v
6.7 Create Branch����������������������������������������������������������������������������������������������������������������������� 53
6.8 Test Your Work����������������������������������������������������������������������������������������������������������������������� 54
6.9 Summary������������������������������������������������������������������������������������������������������������������������������ 56
Chapter 7: User Groups������������������������������������������������������������������������������������������� 57
7.1 Page and Parameters Region������������������������������������������������������������������������������������������������ 58
7.2 Buttons���������������������������������������������������������������������������������������������������������������������������������� 61
7.3 New Group Process��������������������������������������������������������������������������������������������������������������� 62
7.4 Delete Group Button�������������������������������������������������������������������������������������������������������������� 63
7.5 Delete Group Process������������������������������������������������������������������������������������������������������������ 63
7.6 Group Privileges Region�������������������������������������������������������������������������������������������������������� 64
7.7 Tree Region��������������������������������������������������������������������������������������������������������������������������� 65
7.8 Add Classic Report Region���������������������������������������������������������������������������������������������������� 66
7.9 Dynamic Action to Refresh Region���������������������������������������������������������������������������������������� 67
7.10 Add Button and a Process to Allow/Revoke Segment Access Right����������������������������������� 68
7.11 Test Your Work��������������������������������������������������������������������������������������������������������������������� 69
7.12 Summary���������������������������������������������������������������������������������������������������������������������������� 70
Chapter 8: Create Users������������������������������������������������������������������������������������������ 71
8.1 Create Pages������������������������������������������������������������������������������������������������������������������������� 72
8.2 Create/Modify Items�������������������������������������������������������������������������������������������������������������� 73
8.3 Create a Process to Set Company, Year, and Month�������������������������������������������������������������� 75
8.4 Test Your Work����������������������������������������������������������������������������������������������������������������������� 75
8.5 Summary������������������������������������������������������������������������������������������������������������������������������ 76
Chapter 9: Reset Password������������������������������������������������������������������������������������� 77
9.1 Add Custom Functions���������������������������������������������������������������������������������������������������������� 77
9.2 Create Page��������������������������������������������������������������������������������������������������������������������������� 79
9.3 Check User ID and Match Password Validations������������������������������������������������������������������� 82
9.4 Update Password Process���������������������������������������������������������������������������������������������������� 82
9.5 Change Authentication Scheme�������������������������������������������������������������������������������������������� 83
9.6 Summary������������������������������������������������������������������������������������������������������������������������������ 84
Table of Contents
7. vii
12.6 Create Validations������������������������������������������������������������������������������������������������������������� 116
12.7 Modify Process: Process Row of GL_COA������������������������������������������������������������������������� 118
12.8 Create Process: Delete Record������������������������������������������������������������������������������������������ 119
12.9 Modify Delete Button�������������������������������������������������������������������������������������������������������� 119
12.10 Modify Save Button��������������������������������������������������������������������������������������������������������� 120
12.11 Delete the Create Button������������������������������������������������������������������������������������������������� 120
12.12 Create a Highlight Rule��������������������������������������������������������������������������������������������������� 120
12.13 Test Your Work����������������������������������������������������������������������������������������������������������������� 121
12.14 Summary������������������������������������������������������������������������������������������������������������������������ 123
Chapter 13: Copy Chart of Accounts��������������������������������������������������������������������� 125
13.1 Create Page����������������������������������������������������������������������������������������������������������������������� 125
13.2 Add Button������������������������������������������������������������������������������������������������������������������������ 127
13.3 Add Validations������������������������������������������������������������������������������������������������������������������ 127
13.4 Copy COA Process������������������������������������������������������������������������������������������������������������� 128
13.5 Test Your Work������������������������������������������������������������������������������������������������������������������� 128
13.6 Summary�������������������������������������������������������������������������������������������������������������������������� 129
Chapter 14: Enter Vouchers���������������������������������������������������������������������������������� 131
14.1 Create List of Values��������������������������������������������������������������������������������������������������������� 133
14.2 Create Pages��������������������������������������������������������������������������������������������������������������������� 134
14.3 Modify the Master Page (Page 42)������������������������������������������������������������������������������������ 135
14.4 Add Items (Page 42)���������������������������������������������������������������������������������������������������������� 136
14.5 Modify Button (Page 42)���������������������������������������������������������������������������������������������������� 138
14.6 Modify the Detail Page (Page 43)�������������������������������������������������������������������������������������� 138
14.7 Add/Modify Items�������������������������������������������������������������������������������������������������������������� 140
14.8 Modify Validations on Page 43������������������������������������������������������������������������������������������ 141
14.9 Add Page Items to Show Totals����������������������������������������������������������������������������������������� 142
14.10 Add JavaScript to Evaluate Difference���������������������������������������������������������������������������� 144
14.11 Create Dynamic Actions�������������������������������������������������������������������������������������������������� 144
14.12 Add Validations to Page 43���������������������������������������������������������������������������������������������� 146
14.13 Modify Processes������������������������������������������������������������������������������������������������������������ 148
Table of Contents
8. viii
14.14 Control Buttons��������������������������������������������������������������������������������������������������������������� 150
14.15 Test Your Work����������������������������������������������������������������������������������������������������������������� 150
14.16 Summary������������������������������������������������������������������������������������������������������������������������ 152
Chapter 15: Search Transactions�������������������������������������������������������������������������� 153
15.1 Create Page and Parameters Region�������������������������������������������������������������������������������� 153
15.2 Create an Interactive Report Region��������������������������������������������������������������������������������� 156
15.3 Add a Dynamic Action������������������������������������������������������������������������������������������������������� 158
15.4 Test Your Work������������������������������������������������������������������������������������������������������������������� 159
15.5 Summary�������������������������������������������������������������������������������������������������������������������������� 160
Chapter 16: Vouchers Verification������������������������������������������������������������������������ 161
16.1 Create Page and Parameters Region�������������������������������������������������������������������������������� 161
16.2 Create Interactive Report Region�������������������������������������������������������������������������������������� 163
16.3 Create Verification Page���������������������������������������������������������������������������������������������������� 166
16.4 Modify, Delete, and Create Page Buttons�������������������������������������������������������������������������� 166
16.5 Modify Page-Rendering Process��������������������������������������������������������������������������������������� 168
16.6 Delete Validations������������������������������������������������������������������������������������������������������������� 168
16.7 Delete Processes�������������������������������������������������������������������������������������������������������������� 168
16.8 Add Processes������������������������������������������������������������������������������������������������������������������� 169
16.9 Handle Branches��������������������������������������������������������������������������������������������������������������� 170
16.10 Test Your Work����������������������������������������������������������������������������������������������������������������� 171
16.11 Summary������������������������������������������������������������������������������������������������������������������������ 172
Chapter 17: Vouchers Report�������������������������������������������������������������������������������� 173
17.1 Download and Configure JasperReportsIntegration��������������������������������������������������������� 173
17.2 Install Apache Tomcat������������������������������������������������������������������������������������������������������� 174
17.3 Grant Network Privileges�������������������������������������������������������������������������������������������������� 175
17.4 Creating PDF Reports in Oracle APEX Using JasperReports��������������������������������������������� 176
17.5 Create Database Connection��������������������������������������������������������������������������������������������� 176
17.6 Create Vouchers Report���������������������������������������������������������������������������������������������������� 179
17.6.1 Specify Data Source������������������������������������������������������������������������������������������������� 179
17.6.2 Designing Report������������������������������������������������������������������������������������������������������ 183
Table of Contents
9. ix
17.7 Copy the Compiled Report������������������������������������������������������������������������������������������������ 188
17.8 Integrating Report with Oracle APEX��������������������������������������������������������������������������������� 188
17.8.1 Create a List of Values���������������������������������������������������������������������������������������������� 189
17.8.2 Create the Parameters Form������������������������������������������������������������������������������������ 189
17.9 Summary�������������������������������������������������������������������������������������������������������������������������� 194
Chapter 18: Ledger Report������������������������������������������������������������������������������������ 195
18.1 Create Page and Parameters Form����������������������������������������������������������������������������������� 195
18.2 Create an Interactive Report Region��������������������������������������������������������������������������������� 199
18.3 Formatting Ledger Report������������������������������������������������������������������������������������������������� 200
18.4 Get Ledger Report in PDF�������������������������������������������������������������������������������������������������� 201
18.5 Drill Down to Source Voucher������������������������������������������������������������������������������������������� 201
18.5.1 Create Link in Interactive Report������������������������������������������������������������������������������ 201
18.5.2 Create Voucher Page������������������������������������������������������������������������������������������������ 202
18.6 Test Your Work������������������������������������������������������������������������������������������������������������������ 203
18.7 Summary�������������������������������������������������������������������������������������������������������������������������� 204
Chapter 19: Trial Balance Report�������������������������������������������������������������������������� 205
19.1 Trial Balance Report Table������������������������������������������������������������������������������������������������� 205
19.2 Create a List of Values������������������������������������������������������������������������������������������������������ 206
19.3 Create Page and Parameters Form����������������������������������������������������������������������������������� 206
19.4 Create the Interactive Report Region�������������������������������������������������������������������������������� 209
19.5 Create a Process to Generate Trial Balance���������������������������������������������������������������������� 209
19.6 Formatting the Trial Balance Report��������������������������������������������������������������������������������� 210
19.7 Print the Selected Level���������������������������������������������������������������������������������������������������� 212
19.7.1 Create Process��������������������������������������������������������������������������������������������������������� 212
19.8 Eliminate Zero Balances��������������������������������������������������������������������������������������������������� 213
19.8.1 Create a Process������������������������������������������������������������������������������������������������������ 214
19.9 Create a Validation������������������������������������������������������������������������������������������������������������ 215
19.10 Get the Trial Balance Report in PDF�������������������������������������������������������������������������������� 215
19.11 Drill Down to the Ledger Report�������������������������������������������������������������������������������������� 215
19.12 Test Your Work����������������������������������������������������������������������������������������������������������������� 216
19.13 Summary������������������������������������������������������������������������������������������������������������������������ 217
Table of Contents
10. x
Chapter 20: Opening Bank Transactions��������������������������������������������������������������� 219
20.1 Create Page����������������������������������������������������������������������������������������������������������������������� 220
20.2 Modify Region Source Query�������������������������������������������������������������������������������������������� 220
20.3 Modify Interactive Grid Column����������������������������������������������������������������������������������������� 221
20.4 Test Your Work������������������������������������������������������������������������������������������������������������������� 222
20.5 Summary�������������������������������������������������������������������������������������������������������������������������� 222
Chapter 21: Bank Reconciliation�������������������������������������������������������������������������� 223
21.1 Create Page and Parameters Form����������������������������������������������������������������������������������� 223
21.2 Display Outstanding Opening Transactions����������������������������������������������������������������������� 225
21.3 Modify Reconcile Opening Form��������������������������������������������������������������������������������������� 227
21.4 Current Transactions Region��������������������������������������������������������������������������������������������� 228
21.5 Test Your Work������������������������������������������������������������������������������������������������������������������� 230
21.6 Summary�������������������������������������������������������������������������������������������������������������������������� 231
Chapter 22: Bank Reconciliation Report��������������������������������������������������������������� 233
22.1 The Bank Reconciliation Report Table������������������������������������������������������������������������������� 233
22.2 Create the Parameters Form��������������������������������������������������������������������������������������������� 234
22.3 Create the Interactive Report�������������������������������������������������������������������������������������������� 236
22.4 Create the Reconciliation Report Generation Process������������������������������������������������������ 236
22.5 Format the Reconciliation Report������������������������������������������������������������������������������������� 237
22.6 Generate the PDF Report��������������������������������������������������������������������������������������������������� 238
22.7 Test Your Work������������������������������������������������������������������������������������������������������������������� 238
22.8 Summary�������������������������������������������������������������������������������������������������������������������������� 239
Chapter 23: Month Closure����������������������������������������������������������������������������������� 241
23.1 Create Page and Page Items��������������������������������������������������������������������������������������������� 241
23.2 Show Unverified Vouchers������������������������������������������������������������������������������������������������ 243
23.3 Add Validation������������������������������������������������������������������������������������������������������������������� 244
23.4 Close Month Process�������������������������������������������������������������������������������������������������������� 245
23.5 Hide Buttons��������������������������������������������������������������������������������������������������������������������� 246
23.6 Summary�������������������������������������������������������������������������������������������������������������������������� 248
Table of Contents
11. xi
Chapter 24: Year-End Processes��������������������������������������������������������������������������� 249
24.1 Enter Opening Balances���������������������������������������������������������������������������������������������������� 249
24.2 Temporary Year-End (TYE)������������������������������������������������������������������������������������������������� 251
24.3 Create the Page and Page Items��������������������������������������������������������������������������������������� 251
24.4 Create a Validation������������������������������������������������������������������������������������������������������������ 253
24.5 Generate the Fiscal Year Process�������������������������������������������������������������������������������������� 254
24.6 A Process to Generate a Closing Entry������������������������������������������������������������������������������ 254
24.7 Test Your Work������������������������������������������������������������������������������������������������������������������� 255
24.8 Permanent Year End (PYE)������������������������������������������������������������������������������������������������ 255
24.9 Create the Page and Page Items��������������������������������������������������������������������������������������� 256
24.10 Create the Validations����������������������������������������������������������������������������������������������������� 257
24.11 A Process to Close the Year Permanently����������������������������������������������������������������������� 258
24.12 Test Your Work����������������������������������������������������������������������������������������������������������������� 258
24.13 Summary������������������������������������������������������������������������������������������������������������������������ 259
Chapter 25: Budget Allocation������������������������������������������������������������������������������ 261
25.1 Budget Allocation Table����������������������������������������������������������������������������������������������������� 261
25.2 Create the Page and Parameters Form����������������������������������������������������������������������������� 261
25.3 Add an Interactive Grid������������������������������������������������������������������������������������������������������ 265
25.4 Budget Processes������������������������������������������������������������������������������������������������������������� 267
25.5 Test Your Work������������������������������������������������������������������������������������������������������������������� 268
25.6 Summary�������������������������������������������������������������������������������������������������������������������������� 269
Chapter 26: Budget Report����������������������������������������������������������������������������������� 271
26.1 Budget Report Table���������������������������������������������������������������������������������������������������������� 271
26.2 Create Page and Parameters Form����������������������������������������������������������������������������������� 271
26.3 Create Computations�������������������������������������������������������������������������������������������������������� 277
26.4 Create Interactive Report�������������������������������������������������������������������������������������������������� 278
26.5 Budget Report Generation Process����������������������������������������������������������������������������������� 279
26.6 Test Your Work������������������������������������������������������������������������������������������������������������������ 279
26.7 Summary�������������������������������������������������������������������������������������������������������������������������� 281
Table of Contents
12. xii
Chapter 27: Set Up Accounts for Financial Statements���������������������������������������� 283
27.1 Accounts Table for the Financial Statements�������������������������������������������������������������������� 283
27.2 Create a List of Values������������������������������������������������������������������������������������������������������ 284
27.3 Create Page and Page Items��������������������������������������������������������������������������������������������� 285
27.4 Add an Interactive Grid������������������������������������������������������������������������������������������������������ 290
27.5 Create Validations������������������������������������������������������������������������������������������������������������� 291
27.6 Modify Save Interactive Grid Data Process����������������������������������������������������������������������� 292
27.7 Test Your Work������������������������������������������������������������������������������������������������������������������� 293
27.8 Summary�������������������������������������������������������������������������������������������������������������������������� 294
Chapter 28: Financial Statements������������������������������������������������������������������������ 295
28.1 Financial Statements Table����������������������������������������������������������������������������������������������� 295
28.2 Create Page and Page Items��������������������������������������������������������������������������������������������� 295
28.3 Create Interactive Report and Buttons������������������������������������������������������������������������������ 301
28.4 Create Computations�������������������������������������������������������������������������������������������������������� 302
28.5 Create Ajax Callback Processes���������������������������������������������������������������������������������������� 304
28.6 Create Branches���������������������������������������������������������������������������������������������������������������� 305
28.7 Create Page for Financial Statements Notes�������������������������������������������������������������������� 307
28.8 Create Column Link����������������������������������������������������������������������������������������������������������� 308
28.9 Enter Vouchers������������������������������������������������������������������������������������������������������������������ 309
28.10 Test Your Work���������������������������������������������������������������������������������������������������������������� 309
28.11 Summary������������������������������������������������������������������������������������������������������������������������ 310
Chapter 29: Executive Dashboard������������������������������������������������������������������������� 311
29.1 Dashboard Table��������������������������������������������������������������������������������������������������������������� 311
29.2 Copy Components to the Home Page�������������������������������������������������������������������������������� 311
29.3 Create Regions������������������������������������������������������������������������������������������������������������������ 313
29.4 Create Chart Subregion����������������������������������������������������������������������������������������������������� 314
29.5 Create a Hidden Item�������������������������������������������������������������������������������������������������������� 315
29.6 Copy Chart Regions����������������������������������������������������������������������������������������������������������� 315
29.7 Test Your Work������������������������������������������������������������������������������������������������������������������� 319
29.8 Summary�������������������������������������������������������������������������������������������������������������������������� 320
Table of Contents