Académique Documents
Professionnel Documents
Culture Documents
Karen Cannell
kcannell@thtechnology.com
TH Technology
http://www.thtechnology.com
TH Technology
About Me …
Karen Cannell ~ Consultant, TH Technology
Analyzed, designed developed, converted, upgraded,
enhanced and otherwise worked on database
applications for 25+ years, focused on Oracle since
1994.
Currently migrating business processes from paper to
web-based systems, leveraging the Oracle 10g & 11g
suite of tools. Lately APEX.
Editor, ODTUG Technical Journal
Volunteer to author ODTUG Journal Articles!
Using APEX since the HTMLDB beginning
New to APEX?
APEX Experience?
Previous Tools?
APEX Training?
Version 2.0? 3.1 ? 3.2 ? 4.0?
Agenda
Tabular Forms
~ Tighter, Tedious ~
Tabular Form
No Element Names
APEXLib
then
Use APEX_APPLICATION.g_fxx Arrays to
Manually Write Validation/Processing
Procedures
Validations!!
NOT NULL
Column String Comparison
e.g. value is numeric, value is a date, value only
contains the following characters etc.
Error Message
Error Cell Highlighting
Columns
NOT NULL
String Comp
String Comparison
Options
Error
Display
Location
Page
SQL, PL/SQL
Use APEX_APPLICATION.g_fnn Arrays
Highlight Rows
Disable Columns
Custom Validations
Row-level, Page-level, Complex
Whatever You Can Code
Second Tabular Form on page
Whatever You Can Code!
Handle
APEX_APPLICATION.g_fxx Array
APEX_ITEM.TEXT Call
Syntax:
APEX_ITEM.TEXT Example
APEX_ITEM.TEXT - Sorting
APEX_ITEM.MD5 - Checksum
APEX_APPLICATION.g_fXX Arrays
Pseudocode:
IF g_f13=‘LB’ THEN
IF g_f11 <> g_f12 THEN
.. ‘Landed Lbs must match Landed Qty when Unit is LB’;
END IF;
END IF;
DECLARE
v_msg VARCHAR2(4000) := ' ';
v_br VARCHAR2(6) := '<br>';
BEGIN
FOR i IN 1 .. APEX_APPLICATION.g_f11.COUNT LOOP
IF APEX_APPLICATION.g_f13(i) = 'LB' THEN
IF APEX_APPLICATION.g_f11(i) <> APEX_APPLICATION.g_f12(i) THEN
v_msg := v_msg
||'Row '||TO_CHAR(i)
||‘ - Landed Lbs must equal Landed Qty if unit is LBs‘
||v_br;
END IF;
END IF;
END LOOP;
RETURN v_msg;
END
Highlight Rows
Disable Columns
Custom Validations
Row-level, Page-level, Complex
Whatever You Can Code
Second Tabular Form on page
Whatever You Can Code!
Manual
Tabular Form
Using
APEX_ITEM
Great Examples at
Denes Kubicek
http://htmldb.oracle.com/pls/otn/f?p=31517:170
References
APEX_ITEM Documentation
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/api.
htm#HTMDB15003
APEX_APPLICATION Documentation
http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e
12855/apex_app.htm
APEX Documentation and Examples
http://apex.oracle.com
Denes Kubicek (Tabular Form Examples)
http://htmldb.oracle.com/pls/otn/f?p=31517:170
APEXLib (Tabular Form Help)
http://apexlib.oracleapex.info/
APEX Tight Tabular Forms
TH Technology
K’Scope 2011!!
TH Technology
Thank You ~
Tight Tabular
Forms
kcannell@thtechnology.com
http://tunahuntress.com/apex
TH Technology
TH Technology
Manual
Tabular Form
Using
APEX_ITEM