SlideShare a Scribd company logo
1 of 22
Download to read offline
Cloud Computing
Using Oracle
Application Express
Riaz Ahmed
Cloud Computing Using Oracle Application Express
Riaz Ahmed
Karachi, Pakistan
ISBN-13 (pbk): 978-1-4842-2501-1		 ISBN-13 (electronic): 978-1-4842-2502-8
DOI: 10.1007/978-1-4842-2502-8
Library of Congress Control Number: 2016961317
Copyright © 2016 Riaz Ahmed
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole
or part of the material is concerned, specifically the rights of translation, reprinting, reuse of
illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical
way, and transmission or information storage and retrieval, electronic adaptation, computer
software, or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark
symbol with every occurrence of a trademarked name, logo, or image we use the names, logos,
and images only in an editorial fashion and to the benefit of the trademark owner, with no
intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if
they are not identified as such, is not to be taken as an expression of opinion as to whether or not
they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the
date of publication, neither the authors nor the editors nor the publisher can accept any legal
responsibility for any errors or omissions that may be made. The publisher makes no warranty,
express or implied, with respect to the material contained herein.
Managing Director: Welmoed Spahr
Lead Editor: Celestin Suresh John
Technical Reviewer: Kali Kishore Gomattam
Editorial Board: Steve Anglin, Pramila Balan, Laura Berendson, Aaron Black,
Louise Corrigan, Jonathan Gennick, Robert Hutchinson, Celestin Suresh John,
Nikhil Karkal, James Markham, Susan McDermott, Matthew Moodie, Natalie Pao,
Gwenan Spearing
Coordinating Editor: Sanchita Mandal
Copy Editor: Kim Wimpsett
Compositor: SPi Global
Indexer: SPi Global
Artist: SPi Global
Distributed to the book trade worldwide by Springer Science+Business Media New York,
233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505,
e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is
a California LLC and the sole member (owner) is Springer Science + Business Media Finance
Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail rights@apress.com, or visit www.apress.com.
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional
use. eBook versions and licenses are also available for most titles. For more information, reference
our Special Bulk Sales–eBook Licensing web page at www.apress.com/bulk-sales.
Any source code or other supplementary materials referenced by the author in this text are
available to readers at www.apress.com. For detailed information about how to locate your book’s
source code, go to www.apress.com/source-code/. Readers can also access source code at
SpringerLink in the Supplementary Material section for each chapter.
Printed on acid-free paper
I dedicate this book to the person who taught me how
to hold a pencil—my mother.
I’m here because of her.
I also dedicate this book to my wife, who is always behind
me in these endeavors.
v
Contents at a Glance
About the Author���������������������������������������������������������������������������� xxi
About the Technical Reviewer������������������������������������������������������ xxiii
Preface�������������������������������������������������������������������������������������������xxv
■■Chapter 1: Introduction to Cloud Computing and the
Application Project������������������������������������������������������������������������� 1
■■Chapter 2: Application Navigation�������������������������������������������������� 9
■■Chapter 3: Companies������������������������������������������������������������������ 15
■■Chapter 4: Fiscal Year������������������������������������������������������������������� 19
■■Chapter 5: Voucher Types������������������������������������������������������������� 35
■■Chapter 6: Application Segments������������������������������������������������� 41
■■Chapter 7: User Groups����������������������������������������������������������������� 49
■■Chapter 8: Create Users���������������������������������������������������������������� 63
■■Chapter 9: Reset Password���������������������������������������������������������� 69
■■Chapter 10: Switch Company, Year, and Month���������������������������� 77
■■Chapter 11: Cost Centers�������������������������������������������������������������� 85
■■Chapter 12: Chart of Accounts����������������������������������������������������� 97
■■Chapter 13: Copy Chart of Accounts������������������������������������������� 113
■■Chapter 14: Enter Vouchers�������������������������������������������������������� 117
■■Chapter 15: Search Transactions������������������������������������������������ 133
■ Contents at a Glance
vi
■■Chapter 16: Vouchers Verification���������������������������������������������� 139
■■Chapter 17: Vouchers Report������������������������������������������������������ 149
■■Chapter 18: Ledger Report��������������������������������������������������������� 161
■■Chapter 19: Trial Balance Report������������������������������������������������ 171
■■Chapter 20: Opening Bank Transactions������������������������������������ 183
■■Chapter 21: Bank Reconciliation������������������������������������������������ 189
■■Chapter 22: Bank Reconciliation Report������������������������������������ 199
■■Chapter 23: Month Closure��������������������������������������������������������� 205
■■Chapter 24: Year-End Processes������������������������������������������������ 211
■■Chapter 25: Budget Allocation���������������������������������������������������� 221
■■Chapter 26: Budget Report��������������������������������������������������������� 231
■■Chapter 27: Set Up Accounts for Financial Statements�������������� 241
■■Chapter 28: Financial Statements���������������������������������������������� 251
■■Chapter 29: Executive Dashboard���������������������������������������������� 267
■■Chapter 30: Application Feedback���������������������������������������������� 277
■■Chapter 31: Mobile Version�������������������������������������������������������� 281
■■Chapter 32: Application Security������������������������������������������������ 297
■■Appendix: Book Code������������������������������������������������������������������ 311
Index���������������������������������������������������������������������������������������������� 399
vii
Contents
About the Author���������������������������������������������������������������������������� xxi
About the Technical Reviewer������������������������������������������������������ xxiii
Preface�������������������������������������������������������������������������������������������xxv
■■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?����������������������������������������������������������������������� 3
1.4 Accounting System������������������������������������������������������������������������ 3
1.5 General Ledger������������������������������������������������������������������������������� 4
1.6 The Cloud Accountant General Ledger Project������������������������������� 5
1.7 Development Environment������������������������������������������������������������� 6
1.8 Application Segments�������������������������������������������������������������������� 6
1.9 Summary���������������������������������������������������������������������������������������� 8
■■Chapter 2: Application Navigation�������������������������������������������������� 9
2.1 Create the Main Application Menu������������������������������������������������� 9
2.2 Modify/Add Navigation Bar Entries���������������������������������������������� 12
2.3 Summary�������������������������������������������������������������������������������������� 14
■ Contents
viii
■■Chapter 3: Companies������������������������������������������������������������������ 15
3.1 Create Application Tables������������������������������������������������������������� 15
3.2 Create Pages for Company Setup������������������������������������������������ 16
3.3 Summary�������������������������������������������������������������������������������������� 17
■■Chapter 4: Fiscal Year������������������������������������������������������������������� 19
4.1 Create List of Values��������������������������������������������������������������������� 20
4.2 Create Page and Parameters Region������������������������������������������� 21
4.3 Create a Fiscal Year Grid�������������������������������������������������������������� 22
4.4 Add Items to Hold Months/Dates�������������������������������������������������� 24
4.5 Create Buttons to Generate, Save, and Remove a Fiscal Year������ 25
4.6 Generate Fiscal Year Process������������������������������������������������������� 26
4.7 Save Fiscal Year Process������������������������������������������������������������� 26
4.8 Delete Fiscal Year Process����������������������������������������������������������� 27
4.9 Fetch Fiscal Year Dynamic Action������������������������������������������������ 27
4.10 Create Validation: Check Transaction����������������������������������������� 28
4.11 Create Branch���������������������������������������������������������������������������� 29
4.12 Dynamic Actions to Hide Buttons����������������������������������������������� 29
4.13 Test Your Work���������������������������������������������������������������������������� 32
4.14 Summary������������������������������������������������������������������������������������ 34
■■Chapter 5: Voucher Types������������������������������������������������������������� 35
5.1 Create List of Values��������������������������������������������������������������������� 35
5.2 Create Pages for Voucher Types Setup����������������������������������������� 36
5.2.1 Convert Text Item to Radio Group���������������������������������������������������������37
5.3 Create Validation: Check Transaction������������������������������������������� 38
5.4 Test Your Work������������������������������������������������������������������������������ 39
5.5 Summary�������������������������������������������������������������������������������������� 39
■ Contents
ix
■■Chapter 6: Application Segments������������������������������������������������� 41
6.1 Create LOVs���������������������������������������������������������������������������������� 42
6.2 Create Segments Setup Pages����������������������������������������������������� 42
6.3 Modify Segments Form���������������������������������������������������������������� 44
6.4 Add Tree View Region������������������������������������������������������������������� 45
6.5 Create Buttons����������������������������������������������������������������������������� 45
6.6 Create Validations������������������������������������������������������������������������ 46
6.7 Create Branch������������������������������������������������������������������������������ 47
6.8 Test Your Work������������������������������������������������������������������������������ 47
6.9 Summary�������������������������������������������������������������������������������������� 48
■■Chapter 7: User Groups����������������������������������������������������������������� 49
7.1 Page and Parameters Region������������������������������������������������������� 50
7.2 Buttons����������������������������������������������������������������������������������������� 54
7.3 New Group Process���������������������������������������������������������������������� 54
7.4 Delete Group Button��������������������������������������������������������������������� 55
7.5 Delete Group Process������������������������������������������������������������������� 56
7.6 Group Privileges Region��������������������������������������������������������������� 56
7.7 Tree Region���������������������������������������������������������������������������������� 57
7.8 Add Classic Report Region����������������������������������������������������������� 58
7.9 Dynamic Action to Refresh Region����������������������������������������������� 58
7.10 Add Button and a Process to Allow/Revoke Segment Access
Right������������������������������������������������������������������������������������������� 59
7.11 Test Your Work���������������������������������������������������������������������������� 60
7.12 Summary������������������������������������������������������������������������������������ 61
■ Contents
x
■■Chapter 8: Create Users���������������������������������������������������������������� 63
8.1 Create Pages�������������������������������������������������������������������������������� 63
8.2 Create/Modify Items��������������������������������������������������������������������� 65
8.3 Create a Process to Set Company, Year, and Month��������������������� 67
8.4 Test Your Work������������������������������������������������������������������������������ 67
8.5 Summary�������������������������������������������������������������������������������������� 68
■■Chapter 9: Reset Password���������������������������������������������������������� 69
9.1 Add Custom Functions����������������������������������������������������������������� 69
9.2 Create Page���������������������������������������������������������������������������������� 70
9.3 Check User ID and Match Password Validations�������������������������� 73
9.4 Update Password Process������������������������������������������������������������ 74
9.5 Change Authentication Scheme��������������������������������������������������� 74
9.6 Summary�������������������������������������������������������������������������������������� 75
■■Chapter 10: Switch Company, Year, and Month���������������������������� 77
10.1 Create Page�������������������������������������������������������������������������������� 77
10.2 Add Button���������������������������������������������������������������������������������� 80
10.3 Add Validations��������������������������������������������������������������������������� 80
10.4 Update User Profile Process������������������������������������������������������� 81
10.5 Display Company, Year, and Month��������������������������������������������� 81
10.6 Summary������������������������������������������������������������������������������������ 83
■■Chapter 11: Cost Centers�������������������������������������������������������������� 85
11.1 Create Pages������������������������������������������������������������������������������ 85
11.2 Delete Processes����������������������������������������������������������������������� 87
11.3 Modify Delete Button������������������������������������������������������������������ 87
11.4 Add Button���������������������������������������������������������������������������������� 88
11.5 Modify Page Items��������������������������������������������������������������������� 88
■ Contents
xi
11.6 Add Dynamic Action: Evaluate Level������������������������������������������ 89
11.7 Validation: Check Level�������������������������������������������������������������� 89
11.8 Validation: Check Parent Level��������������������������������������������������� 90
11.9 Validation: Check Child Level����������������������������������������������������� 90
11.10 Validation: Check in Transaction����������������������������������������������� 91
11.11 Validation: Disallow Code Modification������������������������������������ 91
11.12 Process: Save Record��������������������������������������������������������������� 92
11.13 Process: Delete Record������������������������������������������������������������ 92
11.14 Add Button: Refresh����������������������������������������������������������������� 93
11.15 Test Your Work�������������������������������������������������������������������������� 94
11.16 Summary���������������������������������������������������������������������������������� 95
■■Chapter 12: Chart of Accounts����������������������������������������������������� 97
12.1 Create Three Lists of Values������������������������������������������������������� 98
12.2 Copy Pages�������������������������������������������������������������������������������� 99
12.3 Modify the Report Page (Page 15)�������������������������������������������� 100
12.4 Modify the Form Page (Page 16)���������������������������������������������� 100
12.5 Modify/Create Dynamic Actions����������������������������������������������� 103
12.6 Modify Validations�������������������������������������������������������������������� 107
12.7 Create Validation: Check Account Type������������������������������������ 108
12.8 Modify Processes��������������������������������������������������������������������� 109
12.9 Create a Highlight Rule������������������������������������������������������������ 109
12.10 Test Your Work������������������������������������������������������������������������ 109
12.11 Summary�������������������������������������������������������������������������������� 111
■■Chapter 13: Copy Chart of Accounts������������������������������������������� 113
13.1 Create Page������������������������������������������������������������������������������ 113
13.2 Add Button�������������������������������������������������������������������������������� 114
■ Contents
xii
13.3 Add Validations������������������������������������������������������������������������� 115
13.4 Copy COA Process�������������������������������������������������������������������� 115
13.5 Test Your Work�������������������������������������������������������������������������� 116
13.6 Summary���������������������������������������������������������������������������������� 116
■■Chapter 14: Enter Vouchers�������������������������������������������������������� 117
14.1 Create List of Values����������������������������������������������������������������� 119
14.2 Create Pages���������������������������������������������������������������������������� 119
14.3 Modify the Master Page (Page 42)������������������������������������������� 121
14.4 Add Items (Page 42)����������������������������������������������������������������� 122
14.5 Modify Button (Page 42)����������������������������������������������������������� 123
14.6 Modify the Detail Page (Page 43)��������������������������������������������� 123
14.7 Add/Modify Items��������������������������������������������������������������������� 125
14.8 Modify Validations on Page 43������������������������������������������������� 126
14.9 Add Validations to Page 43������������������������������������������������������� 127
14.10 Modify Process����������������������������������������������������������������������� 128
14.11 Create Process����������������������������������������������������������������������� 129
14.12 Control Buttons���������������������������������������������������������������������� 130
14.13 Test Your Work������������������������������������������������������������������������ 130
14.14 Summary�������������������������������������������������������������������������������� 132
■■Chapter 15: Search Transactions������������������������������������������������ 133
15.1 Create Page and Parameters Region��������������������������������������� 133
15.2 Create an Interactive Report Region���������������������������������������� 135
15.3 Add a Dynamic Action�������������������������������������������������������������� 137
15.4 Test Your Work�������������������������������������������������������������������������� 138
15.5 Summary���������������������������������������������������������������������������������� 138
■ Contents
xiii
■■Chapter 16: Vouchers Verification���������������������������������������������� 139
16.1 Create Page and Parameters Region��������������������������������������� 139
16.2 Create Interactive Report Region��������������������������������������������� 141
16.3 Create Verification Page����������������������������������������������������������� 143
16.4 Modify, Delete, and Create Page Buttons��������������������������������� 143
16.5 Modify Page-Rendering Process���������������������������������������������� 144
16.6 Delete Validations��������������������������������������������������������������������� 145
16.7 Delete Processes��������������������������������������������������������������������� 145
16.8 Add Processes�������������������������������������������������������������������������� 145
16.9 Handle Branches���������������������������������������������������������������������� 146
16.10 Test Your Work������������������������������������������������������������������������ 146
16.11 Summary�������������������������������������������������������������������������������� 148
■■Chapter 17: Vouchers Report������������������������������������������������������ 149
17.1 Create a List of Values�������������������������������������������������������������� 149
17.2 Create the Parameters Form���������������������������������������������������� 149
17.3 Create Report Query����������������������������������������������������������������� 152
17.4 Download and Install BI Publisher Desktop����������������������������� 153
17.5 Create Report Template in Microsoft Word������������������������������� 153
17.6 Template Formatting���������������������������������������������������������������� 155
17.7 Create the Report Layout��������������������������������������������������������� 157
17.8 Attach the Report Layout to Report Query�������������������������������� 158
17.9 Send the Print Request������������������������������������������������������������ 158
17.10 Create Validation�������������������������������������������������������������������� 159
17.11 Test Your Work������������������������������������������������������������������������ 159
17.12 Summary�������������������������������������������������������������������������������� 160
■ Contents
xiv
■■Chapter 18: Ledger Report��������������������������������������������������������� 161
18.1 Create Page and Parameters Form������������������������������������������ 161
18.2 Create an Interactive Report Region���������������������������������������� 164
18.3 Formatting Ledger Report�������������������������������������������������������� 164
18.4 Get Ledger Report in PDF��������������������������������������������������������� 165
18.5 Drill Down to Source Voucher �������������������������������������������������� 166
18.5.1 Create Link in Interactive Report�����������������������������������������������������166
18.5.2 Create Voucher Page�����������������������������������������������������������������������167
18.6 Test Your Work ������������������������������������������������������������������������� 168
18.7 Summary���������������������������������������������������������������������������������� 169
■■Chapter 19: Trial Balance Report������������������������������������������������ 171
19.1 Trial Balance Report Table�������������������������������������������������������� 171
19.2 Create a List of Values�������������������������������������������������������������� 172
19.3 Create Page and Parameters Form������������������������������������������ 172
19.4 Create the Interactive Report Region��������������������������������������� 174
19.5 Create a Process to Generate Trial Balance����������������������������� 175
19.6 Formatting the Trial Balance Report����������������������������������������� 175
19.7 Print the Selected Level����������������������������������������������������������� 176
19.7.1 Create Process��������������������������������������������������������������������������������177
19.8 Eliminate Zero Balances���������������������������������������������������������� 177
19.8.1 Create a Process�����������������������������������������������������������������������������178
19.9 Create a Validation������������������������������������������������������������������� 179
19.10 Get the Trial Balance Report in PDF��������������������������������������� 179
19.10.1 Template Formatting�������������������������������������������������������������������180
19.11 Drill Down to the Ledger Report �������������������������������������������� 180
19.12 Test Your Work ����������������������������������������������������������������������� 181
19.13 Summary�������������������������������������������������������������������������������� 181
■ Contents
xv
■■Chapter 20: Opening Bank Transactions������������������������������������ 183
20.1 Create Page������������������������������������������������������������������������������ 183
20.2 Modify Region Source Query���������������������������������������������������� 184
20.3 Handling Default Validations���������������������������������������������������� 185
20.4 Add Validation��������������������������������������������������������������������������� 186
20.5 Test Your Work�������������������������������������������������������������������������� 186
20.6 Summary���������������������������������������������������������������������������������� 187
■■Chapter 21: Bank Reconciliation������������������������������������������������ 189
21.1 Create Page and Parameters Form������������������������������������������ 189
21.2 Display Outstanding Opening Transactions������������������������������ 191
21.3 Modify Reconcile Opening Form���������������������������������������������� 192
21.4 Current Transactions Region���������������������������������������������������� 193
21.4.1 Create a Button and a Process�������������������������������������������������������195
21.5 Test Your Work�������������������������������������������������������������������������� 195
21.6 Summary���������������������������������������������������������������������������������� 197
■■Chapter 22: Bank Reconciliation Report������������������������������������ 199
22.1 The Bank Reconciliation Report Table�������������������������������������� 199
22.2 Create the Parameters Form���������������������������������������������������� 200
22.3 Create the Interactive Report��������������������������������������������������� 201
22.4 Create the Reconciliation Report Generation Process������������� 202
22.5 Format the Reconciliation Report�������������������������������������������� 202
22.6 Generate the PDF Report���������������������������������������������������������� 203
22.7 Test Your Work�������������������������������������������������������������������������� 204
22.8 Summary���������������������������������������������������������������������������������� 204
■ Contents
xvi
■■Chapter 23: Month Closure��������������������������������������������������������� 205
23.1 Create Page and Page Items���������������������������������������������������� 205
23.2 Show Unverified Vouchers������������������������������������������������������� 206
23.3 Add Validation��������������������������������������������������������������������������� 207
23.4 Close Month Process���������������������������������������������������������������� 208
23.5 Hide Buttons����������������������������������������������������������������������������� 209
23.6 Summary���������������������������������������������������������������������������������� 210
■■Chapter 24: Year-End Processes������������������������������������������������ 211
24.1 Enter Opening Balances����������������������������������������������������������� 211
24.2 Temporary Year-End (TYE)�������������������������������������������������������� 213
24.3 Create the Page and Page Items���������������������������������������������� 213
24.4 Create a Validation������������������������������������������������������������������� 215
24.5 Generate the Fiscal Year Process��������������������������������������������� 215
24.6 A Process to Generate a Closing Entry������������������������������������� 216
24.7 Test Your Work�������������������������������������������������������������������������� 216
24.8 Permanent Year End (PYE)�������������������������������������������������������� 217
24.9 Create the Page and Page Items���������������������������������������������� 217
24.10 Create the Validations������������������������������������������������������������ 218
24.11 A Process to Close the Year Permanently������������������������������� 218
24.12 Test Your Work������������������������������������������������������������������������ 219
24.13 Summary�������������������������������������������������������������������������������� 220
■■Chapter 25: Budget Allocation���������������������������������������������������� 221
25.1 Budget Allocation Table������������������������������������������������������������ 221
25.2 Create the Page and Parameters Form������������������������������������ 222
25.3 Create a Tabular Form�������������������������������������������������������������� 225
25.4 Budget Processes�������������������������������������������������������������������� 227
■ Contents
xvii
25.5 Test Your Work�������������������������������������������������������������������������� 227
25.6 Summary���������������������������������������������������������������������������������� 229
■■Chapter 26: Budget Report��������������������������������������������������������� 231
26.1 Budget Report Table����������������������������������������������������������������� 231
26.2 Create Page and Parameters Form������������������������������������������ 231
26.3 Create Computations���������������������������������������������������������������� 235
26.4 Create Interactive Report��������������������������������������������������������� 236
26.5 Budget Report Generation Process������������������������������������������ 237
26.6 Generate PDF Report���������������������������������������������������������������� 237
26.7 Test Your Work�������������������������������������������������������������������������� 238
26.8 Summary���������������������������������������������������������������������������������� 240
■■Chapter 27: Set Up Accounts for Financial Statements�������������� 241
27.1 Accounts Table for the Financial Statements��������������������������� 241
27.2 Create a List of Values�������������������������������������������������������������� 241
27.3 Create Page and Page Items���������������������������������������������������� 242
27.4 Create a Tabular Form�������������������������������������������������������������� 245
27.5 Create Validations�������������������������������������������������������������������� 247
27.6 Create Process������������������������������������������������������������������������� 248
27.7 Test Your Work�������������������������������������������������������������������������� 249
27.8 Summary���������������������������������������������������������������������������������� 250
■■Chapter 28: Financial Statements���������������������������������������������� 251
28.1 Financial Statements Table������������������������������������������������������ 251
28.2 Create Page and Page Items���������������������������������������������������� 251
28.3 Create Interactive Report and Buttons������������������������������������� 256
28.4 Create Computations���������������������������������������������������������������� 257
28.5 Create On-Demand Processes������������������������������������������������� 259
■ Contents
xviii
28.6 Create Branches����������������������������������������������������������������������� 260
28.7 Create Page for Financial Statements Notes��������������������������� 261
28.8 Create Column Link������������������������������������������������������������������ 262
28.9 Generate PDF Report���������������������������������������������������������������� 262
28.10 Enter Vouchers����������������������������������������������������������������������� 264
28.11 Test Your Work������������������������������������������������������������������������ 264
28.12 Summary�������������������������������������������������������������������������������� 266
■■Chapter 29: Executive Dashboard���������������������������������������������� 267
29.1 Dashboard Table����������������������������������������������������������������������� 267
29.2 Copy Components to the Home Page��������������������������������������� 267
29.3 Create Regions������������������������������������������������������������������������� 269
29.4 Create Chart Subregion������������������������������������������������������������ 269
29.5 Create a Hidden Item��������������������������������������������������������������� 270
29.6 Copy Chart Regions������������������������������������������������������������������ 271
29.7 Test Your Work�������������������������������������������������������������������������� 275
29.8 Summary���������������������������������������������������������������������������������� 276
■■Chapter 30: Application Feedback���������������������������������������������� 277
30.1 Application Feedback Table������������������������������������������������������ 277
30.2 Create Feedback Input Form���������������������������������������������������� 277
30.3 Create Feedback Report Page�������������������������������������������������� 279
30.4 Test Your Work�������������������������������������������������������������������������� 280
30.5 Summary���������������������������������������������������������������������������������� 280
■■Chapter 31: Mobile Version�������������������������������������������������������� 281
31.1 Create an Interface for a Mobile Application���������������������������� 281
31.2 Region and Page Items������������������������������������������������������������ 282
31.3 Copy Computations and Branches������������������������������������������� 287
■ Contents
xix
31.4 Add Entries to Mobile Navigation Menu����������������������������������� 287
31.5 Create Profit and Loss Statement Report��������������������������������� 288
31.6 Create Other Mobile Report Pages������������������������������������������� 289
31.7 Test Your Work�������������������������������������������������������������������������� 294
31.8 Summary���������������������������������������������������������������������������������� 295
■■Chapter 32: Application Security������������������������������������������������ 297
32.1 Authorization Schemes for the Main Menu������������������������������ 297
32.2 Test Menu Authorization����������������������������������������������������������� 300
32.3 Authorization Schemes for Application Pages�������������������������� 300
32.4 Test Page Authorization������������������������������������������������������������ 302
32.5 Authorization Schemes for Buttons������������������������������������������ 302
32.6 Test Buttons Authorization������������������������������������������������������� 304
32.7 Summary���������������������������������������������������������������������������������� 310
32.8 Conclusion�������������������������������������������������������������������������������� 310
■■Appendix: Book Code������������������������������������������������������������������ 311
Chapter 4��������������������������������������������������������������������������������������������� 311
Chapter 5��������������������������������������������������������������������������������������������� 317
Chapter 6��������������������������������������������������������������������������������������������� 318
Chapter 7��������������������������������������������������������������������������������������������� 319
Chapter 8��������������������������������������������������������������������������������������������� 321
Chapter 9��������������������������������������������������������������������������������������������� 321
Chapter 10������������������������������������������������������������������������������������������� 324
Chapter 11������������������������������������������������������������������������������������������� 327
Chapter 12������������������������������������������������������������������������������������������� 329
Chapter 13������������������������������������������������������������������������������������������� 333
Chapter 14������������������������������������������������������������������������������������������� 335
■ Contents
xx
Chapter 17������������������������������������������������������������������������������������������� 338
Chapter 18������������������������������������������������������������������������������������������� 340
Chapter 19������������������������������������������������������������������������������������������� 344
Chapter 20������������������������������������������������������������������������������������������� 348
Chapter 22������������������������������������������������������������������������������������������� 349
Chapter 23������������������������������������������������������������������������������������������� 352
Chapter 24������������������������������������������������������������������������������������������� 353
Chapter 25������������������������������������������������������������������������������������������� 359
Chapter 26������������������������������������������������������������������������������������������� 363
Chapter 27������������������������������������������������������������������������������������������� 367
Chapter 28������������������������������������������������������������������������������������������� 368
Index���������������������������������������������������������������������������������������������� 399
xxi
About the Author
Riaz Ahmed is an IT professional with more than 23 years of experience. He started
his career in early 1990s as a programmer and has been employed in a wide variety of
information technology positions, including analyst programmer, system analyst, project
manager, data architect, database designer, and senior database administrator. Currently
he is working as the head of IT for a group of companies. His core areas of interest
include web-based development technologies, business intelligence, and databases. Riaz
possesses extensive experience in database design and development. Besides all versions
of Oracle, he has worked intensively in almost all the major RDBMSs on the market today.
During his career he designed and implemented numerous databases for a wide range of
applications, including ERP. You can reach him via oratech@cyber.net.pk.
xxiii
About the Technical
Reviewer
Kali Kishore Gomattam is an MCA graduate with
almost a decade of experience working with various
Oracle technologies such as Oracle Identity 
Access Management (OID, OIM, OVD, OSSO, and
OAM), Fusion Middleware (WebLogic/SOA/OBIEE/
WebCenter Portal/WebCenter Content/Agile/PIP),
Oracle E-Business Suite (R12.2/R12.1/11i), Web Tier
(OHS and Web Cache), Oracle APEX, and databases
(RAC and Data Guard) on various platforms. He is
currently working as the principal DBA consultant at
Apps Associates Pvt. Ltd. and has worked with Hitachi
in his earlier assignments.
xxv
Preface
If someone had asked me to write this book two decades ago, I would have simply
refused the suggestion—not because I couldn’t do so but because of the mountain of
code necessary to create the application with its menus, forms, reports, and so on. The
appearance of GUIs and RAD has not only eased the burden on developers but has also
enabled application development to be easily demonstrated in book form.
Oracle Application Express (APEX) is a unique development platform that helps you
develop cloud-based applications rapidly. In my book Oracle Application Express 5 for
Beginners, I practically demonstrated almost every significant feature of Oracle APEX.
This book is an attempt to take my readers to the next level with some more useful stuff.
You might be one of those readers who is already familiar with Oracle APEX and
has some experience in developing simple applications but who lacks the required
knowledge that is needed to develop a comprehensive system. In this book, you will
bridge this gap by developing a complete general ledger accounting system named
The Cloud Accountant, which will be accessible through a variety of devices including
desktops, laptops, and the latest smartphones. Besides the development of a functional
application (which you can deploy in your organization or even in other organizations
to earn some handsome bucks), the book demonstrates many new techniques to further
enhance your APEX development skills.
This book is also ideal for those who have been developing applications in Oracle
Forms and now want to try web development using their existing expertise.
If you know what Oracle Application Express is and are also comfortable with SQL
and PL/SQL, then grab this book to learn something that is not available anywhere else. If
you are a novice, then you are encouraged to read my book Oracle Application Express 5
for Beginners (ISBN-13: 978-1-512-00330-7).
Good luck!

More Related Content

More from Mohamedcpcbma (9)

Spawithapex0 150815075436-lva1-app6891
Spawithapex0 150815075436-lva1-app6891Spawithapex0 150815075436-lva1-app6891
Spawithapex0 150815075436-lva1-app6891
 
Sewtz apex ui
Sewtz apex uiSewtz apex ui
Sewtz apex ui
 
Oracleapex 150914085107-lva1-app6892
Oracleapex 150914085107-lva1-app6892Oracleapex 150914085107-lva1-app6892
Oracleapex 150914085107-lva1-app6892
 
E fw b4rbr62uiizvvipyb_cannell_lowcodelowdown_apex_vbcs
E fw b4rbr62uiizvvipyb_cannell_lowcodelowdown_apex_vbcsE fw b4rbr62uiizvvipyb_cannell_lowcodelowdown_apex_vbcs
E fw b4rbr62uiizvvipyb_cannell_lowcodelowdown_apex_vbcs
 
Apexandfreeadboow19tues 190924225740
Apexandfreeadboow19tues 190924225740Apexandfreeadboow19tues 190924225740
Apexandfreeadboow19tues 190924225740
 
201505 beena v0
201505 beena v0201505 beena v0
201505 beena v0
 
2019 dev-marc sewtz-session-keynote-oracle_apex_19__neue_features_und_roadmap...
2019 dev-marc sewtz-session-keynote-oracle_apex_19__neue_features_und_roadmap...2019 dev-marc sewtz-session-keynote-oracle_apex_19__neue_features_und_roadmap...
2019 dev-marc sewtz-session-keynote-oracle_apex_19__neue_features_und_roadmap...
 
2016 bookmatter oracle_applicationexpressadmini
2016 bookmatter oracle_applicationexpressadmini2016 bookmatter oracle_applicationexpressadmini
2016 bookmatter oracle_applicationexpressadmini
 
2016 bookmatter oracle_applicationexpressadmini (1)
2016 bookmatter oracle_applicationexpressadmini (1)2016 bookmatter oracle_applicationexpressadmini (1)
2016 bookmatter oracle_applicationexpressadmini (1)
 

2016 bookmatter cloud_computingusingoracleappli

  • 2. Cloud Computing Using Oracle Application Express Riaz Ahmed Karachi, Pakistan ISBN-13 (pbk): 978-1-4842-2501-1 ISBN-13 (electronic): 978-1-4842-2502-8 DOI: 10.1007/978-1-4842-2502-8 Library of Congress Control Number: 2016961317 Copyright © 2016 Riaz Ahmed This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights. While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein. Managing Director: Welmoed Spahr Lead Editor: Celestin Suresh John Technical Reviewer: Kali Kishore Gomattam Editorial Board: Steve Anglin, Pramila Balan, Laura Berendson, Aaron Black, Louise Corrigan, Jonathan Gennick, Robert Hutchinson, Celestin Suresh John, Nikhil Karkal, James Markham, Susan McDermott, Matthew Moodie, Natalie Pao, Gwenan Spearing Coordinating Editor: Sanchita Mandal Copy Editor: Kim Wimpsett Compositor: SPi Global Indexer: SPi Global Artist: SPi Global Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation. For information on translations, please e-mail rights@apress.com, or visit www.apress.com. Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Special Bulk Sales–eBook Licensing web page at www.apress.com/bulk-sales. Any source code or other supplementary materials referenced by the author in this text are available to readers at www.apress.com. For detailed information about how to locate your book’s source code, go to www.apress.com/source-code/. Readers can also access source code at SpringerLink in the Supplementary Material section for each chapter. Printed on acid-free paper
  • 3. I dedicate this book to the person who taught me how to hold a pencil—my mother. I’m here because of her. I also dedicate this book to my wife, who is always behind me in these endeavors.
  • 4. v Contents at a Glance About the Author���������������������������������������������������������������������������� xxi About the Technical Reviewer������������������������������������������������������ xxiii Preface�������������������������������������������������������������������������������������������xxv ■■Chapter 1: Introduction to Cloud Computing and the Application Project������������������������������������������������������������������������� 1 ■■Chapter 2: Application Navigation�������������������������������������������������� 9 ■■Chapter 3: Companies������������������������������������������������������������������ 15 ■■Chapter 4: Fiscal Year������������������������������������������������������������������� 19 ■■Chapter 5: Voucher Types������������������������������������������������������������� 35 ■■Chapter 6: Application Segments������������������������������������������������� 41 ■■Chapter 7: User Groups����������������������������������������������������������������� 49 ■■Chapter 8: Create Users���������������������������������������������������������������� 63 ■■Chapter 9: Reset Password���������������������������������������������������������� 69 ■■Chapter 10: Switch Company, Year, and Month���������������������������� 77 ■■Chapter 11: Cost Centers�������������������������������������������������������������� 85 ■■Chapter 12: Chart of Accounts����������������������������������������������������� 97 ■■Chapter 13: Copy Chart of Accounts������������������������������������������� 113 ■■Chapter 14: Enter Vouchers�������������������������������������������������������� 117 ■■Chapter 15: Search Transactions������������������������������������������������ 133
  • 5. ■ Contents at a Glance vi ■■Chapter 16: Vouchers Verification���������������������������������������������� 139 ■■Chapter 17: Vouchers Report������������������������������������������������������ 149 ■■Chapter 18: Ledger Report��������������������������������������������������������� 161 ■■Chapter 19: Trial Balance Report������������������������������������������������ 171 ■■Chapter 20: Opening Bank Transactions������������������������������������ 183 ■■Chapter 21: Bank Reconciliation������������������������������������������������ 189 ■■Chapter 22: Bank Reconciliation Report������������������������������������ 199 ■■Chapter 23: Month Closure��������������������������������������������������������� 205 ■■Chapter 24: Year-End Processes������������������������������������������������ 211 ■■Chapter 25: Budget Allocation���������������������������������������������������� 221 ■■Chapter 26: Budget Report��������������������������������������������������������� 231 ■■Chapter 27: Set Up Accounts for Financial Statements�������������� 241 ■■Chapter 28: Financial Statements���������������������������������������������� 251 ■■Chapter 29: Executive Dashboard���������������������������������������������� 267 ■■Chapter 30: Application Feedback���������������������������������������������� 277 ■■Chapter 31: Mobile Version�������������������������������������������������������� 281 ■■Chapter 32: Application Security������������������������������������������������ 297 ■■Appendix: Book Code������������������������������������������������������������������ 311 Index���������������������������������������������������������������������������������������������� 399
  • 6. vii Contents About the Author���������������������������������������������������������������������������� xxi About the Technical Reviewer������������������������������������������������������ xxiii Preface�������������������������������������������������������������������������������������������xxv ■■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?����������������������������������������������������������������������� 3 1.4 Accounting System������������������������������������������������������������������������ 3 1.5 General Ledger������������������������������������������������������������������������������� 4 1.6 The Cloud Accountant General Ledger Project������������������������������� 5 1.7 Development Environment������������������������������������������������������������� 6 1.8 Application Segments�������������������������������������������������������������������� 6 1.9 Summary���������������������������������������������������������������������������������������� 8 ■■Chapter 2: Application Navigation�������������������������������������������������� 9 2.1 Create the Main Application Menu������������������������������������������������� 9 2.2 Modify/Add Navigation Bar Entries���������������������������������������������� 12 2.3 Summary�������������������������������������������������������������������������������������� 14
  • 7. ■ Contents viii ■■Chapter 3: Companies������������������������������������������������������������������ 15 3.1 Create Application Tables������������������������������������������������������������� 15 3.2 Create Pages for Company Setup������������������������������������������������ 16 3.3 Summary�������������������������������������������������������������������������������������� 17 ■■Chapter 4: Fiscal Year������������������������������������������������������������������� 19 4.1 Create List of Values��������������������������������������������������������������������� 20 4.2 Create Page and Parameters Region������������������������������������������� 21 4.3 Create a Fiscal Year Grid�������������������������������������������������������������� 22 4.4 Add Items to Hold Months/Dates�������������������������������������������������� 24 4.5 Create Buttons to Generate, Save, and Remove a Fiscal Year������ 25 4.6 Generate Fiscal Year Process������������������������������������������������������� 26 4.7 Save Fiscal Year Process������������������������������������������������������������� 26 4.8 Delete Fiscal Year Process����������������������������������������������������������� 27 4.9 Fetch Fiscal Year Dynamic Action������������������������������������������������ 27 4.10 Create Validation: Check Transaction����������������������������������������� 28 4.11 Create Branch���������������������������������������������������������������������������� 29 4.12 Dynamic Actions to Hide Buttons����������������������������������������������� 29 4.13 Test Your Work���������������������������������������������������������������������������� 32 4.14 Summary������������������������������������������������������������������������������������ 34 ■■Chapter 5: Voucher Types������������������������������������������������������������� 35 5.1 Create List of Values��������������������������������������������������������������������� 35 5.2 Create Pages for Voucher Types Setup����������������������������������������� 36 5.2.1 Convert Text Item to Radio Group���������������������������������������������������������37 5.3 Create Validation: Check Transaction������������������������������������������� 38 5.4 Test Your Work������������������������������������������������������������������������������ 39 5.5 Summary�������������������������������������������������������������������������������������� 39
  • 8. ■ Contents ix ■■Chapter 6: Application Segments������������������������������������������������� 41 6.1 Create LOVs���������������������������������������������������������������������������������� 42 6.2 Create Segments Setup Pages����������������������������������������������������� 42 6.3 Modify Segments Form���������������������������������������������������������������� 44 6.4 Add Tree View Region������������������������������������������������������������������� 45 6.5 Create Buttons����������������������������������������������������������������������������� 45 6.6 Create Validations������������������������������������������������������������������������ 46 6.7 Create Branch������������������������������������������������������������������������������ 47 6.8 Test Your Work������������������������������������������������������������������������������ 47 6.9 Summary�������������������������������������������������������������������������������������� 48 ■■Chapter 7: User Groups����������������������������������������������������������������� 49 7.1 Page and Parameters Region������������������������������������������������������� 50 7.2 Buttons����������������������������������������������������������������������������������������� 54 7.3 New Group Process���������������������������������������������������������������������� 54 7.4 Delete Group Button��������������������������������������������������������������������� 55 7.5 Delete Group Process������������������������������������������������������������������� 56 7.6 Group Privileges Region��������������������������������������������������������������� 56 7.7 Tree Region���������������������������������������������������������������������������������� 57 7.8 Add Classic Report Region����������������������������������������������������������� 58 7.9 Dynamic Action to Refresh Region����������������������������������������������� 58 7.10 Add Button and a Process to Allow/Revoke Segment Access Right������������������������������������������������������������������������������������������� 59 7.11 Test Your Work���������������������������������������������������������������������������� 60 7.12 Summary������������������������������������������������������������������������������������ 61
  • 9. ■ Contents x ■■Chapter 8: Create Users���������������������������������������������������������������� 63 8.1 Create Pages�������������������������������������������������������������������������������� 63 8.2 Create/Modify Items��������������������������������������������������������������������� 65 8.3 Create a Process to Set Company, Year, and Month��������������������� 67 8.4 Test Your Work������������������������������������������������������������������������������ 67 8.5 Summary�������������������������������������������������������������������������������������� 68 ■■Chapter 9: Reset Password���������������������������������������������������������� 69 9.1 Add Custom Functions����������������������������������������������������������������� 69 9.2 Create Page���������������������������������������������������������������������������������� 70 9.3 Check User ID and Match Password Validations�������������������������� 73 9.4 Update Password Process������������������������������������������������������������ 74 9.5 Change Authentication Scheme��������������������������������������������������� 74 9.6 Summary�������������������������������������������������������������������������������������� 75 ■■Chapter 10: Switch Company, Year, and Month���������������������������� 77 10.1 Create Page�������������������������������������������������������������������������������� 77 10.2 Add Button���������������������������������������������������������������������������������� 80 10.3 Add Validations��������������������������������������������������������������������������� 80 10.4 Update User Profile Process������������������������������������������������������� 81 10.5 Display Company, Year, and Month��������������������������������������������� 81 10.6 Summary������������������������������������������������������������������������������������ 83 ■■Chapter 11: Cost Centers�������������������������������������������������������������� 85 11.1 Create Pages������������������������������������������������������������������������������ 85 11.2 Delete Processes����������������������������������������������������������������������� 87 11.3 Modify Delete Button������������������������������������������������������������������ 87 11.4 Add Button���������������������������������������������������������������������������������� 88 11.5 Modify Page Items��������������������������������������������������������������������� 88
  • 10. ■ Contents xi 11.6 Add Dynamic Action: Evaluate Level������������������������������������������ 89 11.7 Validation: Check Level�������������������������������������������������������������� 89 11.8 Validation: Check Parent Level��������������������������������������������������� 90 11.9 Validation: Check Child Level����������������������������������������������������� 90 11.10 Validation: Check in Transaction����������������������������������������������� 91 11.11 Validation: Disallow Code Modification������������������������������������ 91 11.12 Process: Save Record��������������������������������������������������������������� 92 11.13 Process: Delete Record������������������������������������������������������������ 92 11.14 Add Button: Refresh����������������������������������������������������������������� 93 11.15 Test Your Work�������������������������������������������������������������������������� 94 11.16 Summary���������������������������������������������������������������������������������� 95 ■■Chapter 12: Chart of Accounts����������������������������������������������������� 97 12.1 Create Three Lists of Values������������������������������������������������������� 98 12.2 Copy Pages�������������������������������������������������������������������������������� 99 12.3 Modify the Report Page (Page 15)�������������������������������������������� 100 12.4 Modify the Form Page (Page 16)���������������������������������������������� 100 12.5 Modify/Create Dynamic Actions����������������������������������������������� 103 12.6 Modify Validations�������������������������������������������������������������������� 107 12.7 Create Validation: Check Account Type������������������������������������ 108 12.8 Modify Processes��������������������������������������������������������������������� 109 12.9 Create a Highlight Rule������������������������������������������������������������ 109 12.10 Test Your Work������������������������������������������������������������������������ 109 12.11 Summary�������������������������������������������������������������������������������� 111 ■■Chapter 13: Copy Chart of Accounts������������������������������������������� 113 13.1 Create Page������������������������������������������������������������������������������ 113 13.2 Add Button�������������������������������������������������������������������������������� 114
  • 11. ■ Contents xii 13.3 Add Validations������������������������������������������������������������������������� 115 13.4 Copy COA Process�������������������������������������������������������������������� 115 13.5 Test Your Work�������������������������������������������������������������������������� 116 13.6 Summary���������������������������������������������������������������������������������� 116 ■■Chapter 14: Enter Vouchers�������������������������������������������������������� 117 14.1 Create List of Values����������������������������������������������������������������� 119 14.2 Create Pages���������������������������������������������������������������������������� 119 14.3 Modify the Master Page (Page 42)������������������������������������������� 121 14.4 Add Items (Page 42)����������������������������������������������������������������� 122 14.5 Modify Button (Page 42)����������������������������������������������������������� 123 14.6 Modify the Detail Page (Page 43)��������������������������������������������� 123 14.7 Add/Modify Items��������������������������������������������������������������������� 125 14.8 Modify Validations on Page 43������������������������������������������������� 126 14.9 Add Validations to Page 43������������������������������������������������������� 127 14.10 Modify Process����������������������������������������������������������������������� 128 14.11 Create Process����������������������������������������������������������������������� 129 14.12 Control Buttons���������������������������������������������������������������������� 130 14.13 Test Your Work������������������������������������������������������������������������ 130 14.14 Summary�������������������������������������������������������������������������������� 132 ■■Chapter 15: Search Transactions������������������������������������������������ 133 15.1 Create Page and Parameters Region��������������������������������������� 133 15.2 Create an Interactive Report Region���������������������������������������� 135 15.3 Add a Dynamic Action�������������������������������������������������������������� 137 15.4 Test Your Work�������������������������������������������������������������������������� 138 15.5 Summary���������������������������������������������������������������������������������� 138
  • 12. ■ Contents xiii ■■Chapter 16: Vouchers Verification���������������������������������������������� 139 16.1 Create Page and Parameters Region��������������������������������������� 139 16.2 Create Interactive Report Region��������������������������������������������� 141 16.3 Create Verification Page����������������������������������������������������������� 143 16.4 Modify, Delete, and Create Page Buttons��������������������������������� 143 16.5 Modify Page-Rendering Process���������������������������������������������� 144 16.6 Delete Validations��������������������������������������������������������������������� 145 16.7 Delete Processes��������������������������������������������������������������������� 145 16.8 Add Processes�������������������������������������������������������������������������� 145 16.9 Handle Branches���������������������������������������������������������������������� 146 16.10 Test Your Work������������������������������������������������������������������������ 146 16.11 Summary�������������������������������������������������������������������������������� 148 ■■Chapter 17: Vouchers Report������������������������������������������������������ 149 17.1 Create a List of Values�������������������������������������������������������������� 149 17.2 Create the Parameters Form���������������������������������������������������� 149 17.3 Create Report Query����������������������������������������������������������������� 152 17.4 Download and Install BI Publisher Desktop����������������������������� 153 17.5 Create Report Template in Microsoft Word������������������������������� 153 17.6 Template Formatting���������������������������������������������������������������� 155 17.7 Create the Report Layout��������������������������������������������������������� 157 17.8 Attach the Report Layout to Report Query�������������������������������� 158 17.9 Send the Print Request������������������������������������������������������������ 158 17.10 Create Validation�������������������������������������������������������������������� 159 17.11 Test Your Work������������������������������������������������������������������������ 159 17.12 Summary�������������������������������������������������������������������������������� 160
  • 13. ■ Contents xiv ■■Chapter 18: Ledger Report��������������������������������������������������������� 161 18.1 Create Page and Parameters Form������������������������������������������ 161 18.2 Create an Interactive Report Region���������������������������������������� 164 18.3 Formatting Ledger Report�������������������������������������������������������� 164 18.4 Get Ledger Report in PDF��������������������������������������������������������� 165 18.5 Drill Down to Source Voucher �������������������������������������������������� 166 18.5.1 Create Link in Interactive Report�����������������������������������������������������166 18.5.2 Create Voucher Page�����������������������������������������������������������������������167 18.6 Test Your Work ������������������������������������������������������������������������� 168 18.7 Summary���������������������������������������������������������������������������������� 169 ■■Chapter 19: Trial Balance Report������������������������������������������������ 171 19.1 Trial Balance Report Table�������������������������������������������������������� 171 19.2 Create a List of Values�������������������������������������������������������������� 172 19.3 Create Page and Parameters Form������������������������������������������ 172 19.4 Create the Interactive Report Region��������������������������������������� 174 19.5 Create a Process to Generate Trial Balance����������������������������� 175 19.6 Formatting the Trial Balance Report����������������������������������������� 175 19.7 Print the Selected Level����������������������������������������������������������� 176 19.7.1 Create Process��������������������������������������������������������������������������������177 19.8 Eliminate Zero Balances���������������������������������������������������������� 177 19.8.1 Create a Process�����������������������������������������������������������������������������178 19.9 Create a Validation������������������������������������������������������������������� 179 19.10 Get the Trial Balance Report in PDF��������������������������������������� 179 19.10.1 Template Formatting�������������������������������������������������������������������180 19.11 Drill Down to the Ledger Report �������������������������������������������� 180 19.12 Test Your Work ����������������������������������������������������������������������� 181 19.13 Summary�������������������������������������������������������������������������������� 181
  • 14. ■ Contents xv ■■Chapter 20: Opening Bank Transactions������������������������������������ 183 20.1 Create Page������������������������������������������������������������������������������ 183 20.2 Modify Region Source Query���������������������������������������������������� 184 20.3 Handling Default Validations���������������������������������������������������� 185 20.4 Add Validation��������������������������������������������������������������������������� 186 20.5 Test Your Work�������������������������������������������������������������������������� 186 20.6 Summary���������������������������������������������������������������������������������� 187 ■■Chapter 21: Bank Reconciliation������������������������������������������������ 189 21.1 Create Page and Parameters Form������������������������������������������ 189 21.2 Display Outstanding Opening Transactions������������������������������ 191 21.3 Modify Reconcile Opening Form���������������������������������������������� 192 21.4 Current Transactions Region���������������������������������������������������� 193 21.4.1 Create a Button and a Process�������������������������������������������������������195 21.5 Test Your Work�������������������������������������������������������������������������� 195 21.6 Summary���������������������������������������������������������������������������������� 197 ■■Chapter 22: Bank Reconciliation Report������������������������������������ 199 22.1 The Bank Reconciliation Report Table�������������������������������������� 199 22.2 Create the Parameters Form���������������������������������������������������� 200 22.3 Create the Interactive Report��������������������������������������������������� 201 22.4 Create the Reconciliation Report Generation Process������������� 202 22.5 Format the Reconciliation Report�������������������������������������������� 202 22.6 Generate the PDF Report���������������������������������������������������������� 203 22.7 Test Your Work�������������������������������������������������������������������������� 204 22.8 Summary���������������������������������������������������������������������������������� 204
  • 15. ■ Contents xvi ■■Chapter 23: Month Closure��������������������������������������������������������� 205 23.1 Create Page and Page Items���������������������������������������������������� 205 23.2 Show Unverified Vouchers������������������������������������������������������� 206 23.3 Add Validation��������������������������������������������������������������������������� 207 23.4 Close Month Process���������������������������������������������������������������� 208 23.5 Hide Buttons����������������������������������������������������������������������������� 209 23.6 Summary���������������������������������������������������������������������������������� 210 ■■Chapter 24: Year-End Processes������������������������������������������������ 211 24.1 Enter Opening Balances����������������������������������������������������������� 211 24.2 Temporary Year-End (TYE)�������������������������������������������������������� 213 24.3 Create the Page and Page Items���������������������������������������������� 213 24.4 Create a Validation������������������������������������������������������������������� 215 24.5 Generate the Fiscal Year Process��������������������������������������������� 215 24.6 A Process to Generate a Closing Entry������������������������������������� 216 24.7 Test Your Work�������������������������������������������������������������������������� 216 24.8 Permanent Year End (PYE)�������������������������������������������������������� 217 24.9 Create the Page and Page Items���������������������������������������������� 217 24.10 Create the Validations������������������������������������������������������������ 218 24.11 A Process to Close the Year Permanently������������������������������� 218 24.12 Test Your Work������������������������������������������������������������������������ 219 24.13 Summary�������������������������������������������������������������������������������� 220 ■■Chapter 25: Budget Allocation���������������������������������������������������� 221 25.1 Budget Allocation Table������������������������������������������������������������ 221 25.2 Create the Page and Parameters Form������������������������������������ 222 25.3 Create a Tabular Form�������������������������������������������������������������� 225 25.4 Budget Processes�������������������������������������������������������������������� 227
  • 16. ■ Contents xvii 25.5 Test Your Work�������������������������������������������������������������������������� 227 25.6 Summary���������������������������������������������������������������������������������� 229 ■■Chapter 26: Budget Report��������������������������������������������������������� 231 26.1 Budget Report Table����������������������������������������������������������������� 231 26.2 Create Page and Parameters Form������������������������������������������ 231 26.3 Create Computations���������������������������������������������������������������� 235 26.4 Create Interactive Report��������������������������������������������������������� 236 26.5 Budget Report Generation Process������������������������������������������ 237 26.6 Generate PDF Report���������������������������������������������������������������� 237 26.7 Test Your Work�������������������������������������������������������������������������� 238 26.8 Summary���������������������������������������������������������������������������������� 240 ■■Chapter 27: Set Up Accounts for Financial Statements�������������� 241 27.1 Accounts Table for the Financial Statements��������������������������� 241 27.2 Create a List of Values�������������������������������������������������������������� 241 27.3 Create Page and Page Items���������������������������������������������������� 242 27.4 Create a Tabular Form�������������������������������������������������������������� 245 27.5 Create Validations�������������������������������������������������������������������� 247 27.6 Create Process������������������������������������������������������������������������� 248 27.7 Test Your Work�������������������������������������������������������������������������� 249 27.8 Summary���������������������������������������������������������������������������������� 250 ■■Chapter 28: Financial Statements���������������������������������������������� 251 28.1 Financial Statements Table������������������������������������������������������ 251 28.2 Create Page and Page Items���������������������������������������������������� 251 28.3 Create Interactive Report and Buttons������������������������������������� 256 28.4 Create Computations���������������������������������������������������������������� 257 28.5 Create On-Demand Processes������������������������������������������������� 259
  • 17. ■ Contents xviii 28.6 Create Branches����������������������������������������������������������������������� 260 28.7 Create Page for Financial Statements Notes��������������������������� 261 28.8 Create Column Link������������������������������������������������������������������ 262 28.9 Generate PDF Report���������������������������������������������������������������� 262 28.10 Enter Vouchers����������������������������������������������������������������������� 264 28.11 Test Your Work������������������������������������������������������������������������ 264 28.12 Summary�������������������������������������������������������������������������������� 266 ■■Chapter 29: Executive Dashboard���������������������������������������������� 267 29.1 Dashboard Table����������������������������������������������������������������������� 267 29.2 Copy Components to the Home Page��������������������������������������� 267 29.3 Create Regions������������������������������������������������������������������������� 269 29.4 Create Chart Subregion������������������������������������������������������������ 269 29.5 Create a Hidden Item��������������������������������������������������������������� 270 29.6 Copy Chart Regions������������������������������������������������������������������ 271 29.7 Test Your Work�������������������������������������������������������������������������� 275 29.8 Summary���������������������������������������������������������������������������������� 276 ■■Chapter 30: Application Feedback���������������������������������������������� 277 30.1 Application Feedback Table������������������������������������������������������ 277 30.2 Create Feedback Input Form���������������������������������������������������� 277 30.3 Create Feedback Report Page�������������������������������������������������� 279 30.4 Test Your Work�������������������������������������������������������������������������� 280 30.5 Summary���������������������������������������������������������������������������������� 280 ■■Chapter 31: Mobile Version�������������������������������������������������������� 281 31.1 Create an Interface for a Mobile Application���������������������������� 281 31.2 Region and Page Items������������������������������������������������������������ 282 31.3 Copy Computations and Branches������������������������������������������� 287
  • 18. ■ Contents xix 31.4 Add Entries to Mobile Navigation Menu����������������������������������� 287 31.5 Create Profit and Loss Statement Report��������������������������������� 288 31.6 Create Other Mobile Report Pages������������������������������������������� 289 31.7 Test Your Work�������������������������������������������������������������������������� 294 31.8 Summary���������������������������������������������������������������������������������� 295 ■■Chapter 32: Application Security������������������������������������������������ 297 32.1 Authorization Schemes for the Main Menu������������������������������ 297 32.2 Test Menu Authorization����������������������������������������������������������� 300 32.3 Authorization Schemes for Application Pages�������������������������� 300 32.4 Test Page Authorization������������������������������������������������������������ 302 32.5 Authorization Schemes for Buttons������������������������������������������ 302 32.6 Test Buttons Authorization������������������������������������������������������� 304 32.7 Summary���������������������������������������������������������������������������������� 310 32.8 Conclusion�������������������������������������������������������������������������������� 310 ■■Appendix: Book Code������������������������������������������������������������������ 311 Chapter 4��������������������������������������������������������������������������������������������� 311 Chapter 5��������������������������������������������������������������������������������������������� 317 Chapter 6��������������������������������������������������������������������������������������������� 318 Chapter 7��������������������������������������������������������������������������������������������� 319 Chapter 8��������������������������������������������������������������������������������������������� 321 Chapter 9��������������������������������������������������������������������������������������������� 321 Chapter 10������������������������������������������������������������������������������������������� 324 Chapter 11������������������������������������������������������������������������������������������� 327 Chapter 12������������������������������������������������������������������������������������������� 329 Chapter 13������������������������������������������������������������������������������������������� 333 Chapter 14������������������������������������������������������������������������������������������� 335
  • 19. ■ Contents xx Chapter 17������������������������������������������������������������������������������������������� 338 Chapter 18������������������������������������������������������������������������������������������� 340 Chapter 19������������������������������������������������������������������������������������������� 344 Chapter 20������������������������������������������������������������������������������������������� 348 Chapter 22������������������������������������������������������������������������������������������� 349 Chapter 23������������������������������������������������������������������������������������������� 352 Chapter 24������������������������������������������������������������������������������������������� 353 Chapter 25������������������������������������������������������������������������������������������� 359 Chapter 26������������������������������������������������������������������������������������������� 363 Chapter 27������������������������������������������������������������������������������������������� 367 Chapter 28������������������������������������������������������������������������������������������� 368 Index���������������������������������������������������������������������������������������������� 399
  • 20. xxi About the Author Riaz Ahmed is an IT professional with more than 23 years of experience. He started his career in early 1990s as a programmer and has been employed in a wide variety of information technology positions, including analyst programmer, system analyst, project manager, data architect, database designer, and senior database administrator. Currently he is working as the head of IT for a group of companies. His core areas of interest include web-based development technologies, business intelligence, and databases. Riaz possesses extensive experience in database design and development. Besides all versions of Oracle, he has worked intensively in almost all the major RDBMSs on the market today. During his career he designed and implemented numerous databases for a wide range of applications, including ERP. You can reach him via oratech@cyber.net.pk.
  • 21. xxiii About the Technical Reviewer Kali Kishore Gomattam is an MCA graduate with almost a decade of experience working with various Oracle technologies such as Oracle Identity Access Management (OID, OIM, OVD, OSSO, and OAM), Fusion Middleware (WebLogic/SOA/OBIEE/ WebCenter Portal/WebCenter Content/Agile/PIP), Oracle E-Business Suite (R12.2/R12.1/11i), Web Tier (OHS and Web Cache), Oracle APEX, and databases (RAC and Data Guard) on various platforms. He is currently working as the principal DBA consultant at Apps Associates Pvt. Ltd. and has worked with Hitachi in his earlier assignments.
  • 22. xxv Preface If someone had asked me to write this book two decades ago, I would have simply refused the suggestion—not because I couldn’t do so but because of the mountain of code necessary to create the application with its menus, forms, reports, and so on. The appearance of GUIs and RAD has not only eased the burden on developers but has also enabled application development to be easily demonstrated in book form. Oracle Application Express (APEX) is a unique development platform that helps you develop cloud-based applications rapidly. In my book Oracle Application Express 5 for Beginners, I practically demonstrated almost every significant feature of Oracle APEX. This book is an attempt to take my readers to the next level with some more useful stuff. You might be one of those readers who is already familiar with Oracle APEX and has some experience in developing simple applications but who lacks the required knowledge that is needed to develop a comprehensive system. In this book, you will bridge this gap by developing a complete general ledger accounting system named The Cloud Accountant, which will be accessible through a variety of devices including desktops, laptops, and the latest smartphones. Besides the development of a functional application (which you can deploy in your organization or even in other organizations to earn some handsome bucks), the book demonstrates many new techniques to further enhance your APEX development skills. This book is also ideal for those who have been developing applications in Oracle Forms and now want to try web development using their existing expertise. If you know what Oracle Application Express is and are also comfortable with SQL and PL/SQL, then grab this book to learn something that is not available anywhere else. If you are a novice, then you are encouraged to read my book Oracle Application Express 5 for Beginners (ISBN-13: 978-1-512-00330-7). Good luck!