Karen Cannell kcannell@thtechnology.com APEX: Tight Tabular Forms Karen Cannell kcannell@thtechnology.com http://www.thtechnology.com.

Slides:



Advertisements
Similar presentations
CC SQL Utilities.
Advertisements

The basics and troubleshooting tips
GP2013 (R2) New features in GP2013 (R2). New Ribbon for windows Edit List is the Print button on the right without the paper background Action pane can.
1099 Pro, Inc. – Software for Pro Enterprise Edition Features.
Steal the Show with ApEx Oracle Open World, November 13, 2007 Bill Holtzman National Air Traffic Controllers Association.
YOUR LOGO HERE YOUR LOGO HERE Amy Brink Comparing caTissue Plus to caTissue 1.3.6A Amy Brink March 5 th, 2014.
Microsoft ® Access ® 2010 Training Create Reports for a Database If a yellow security bar appears at the top of the screen in PowerPoint, click Enable.
Feature requests for Case Manager By Spar Nord Bank A/S IBM Insight 2014 Spar Nord Bank A/S1.
6 th Annual Focus Users’ Conference 6 th Annual Focus Users’ Conference Accounts Receivable Presented by: Robert Myers Presented by: Robert Myers.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Cognos 8.4 Upgrade Business Intelligence. Why Cognos 8.4 Increased Performance on Database due to optimized SQL and more filters passed in native SQL.
There is a certain way that an HTML file should be set up. The HTML section declares a beginning and an ending. Within the HTML, there should be a HEAD.
Introduction To Form Builder
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
The University of Adelaide Table Talk: Using tables in Word Peter Murdoch March 2014 PREPARING GOOD LOOKING DOCUMENTS.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you to enter and organize information?
THE VU AGENDA EXCELLENT, ENGAGED AND ACCESSIBLE Victoria University Alesco Custom Business Rules.
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
Project Implementation for COSC 5050 Distributed Database Applications Lab5.
MS Access: Database Concepts Instructor: Vicki Weidler.
Esri International User Conference | San Diego, CA Technical Workshops | Managing and Editing Annotation Natalie Vines Samantha Keehan July 14, 2011.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
1 Vendor RFI - Event User Guide. 2 Minimum System Requirements Internet connection - Modem, ISDN, DSL, T1. Your connection speed determines your access.
Application Express 4.1 New Features Hilary Farrell, Principal Member of Technical Staff, Oracle.
Easy HTML DB. Michael Cunningham Developer/Database Administrator.
XP Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Collecting Data for Well-Designed Forms Chapter 4 “Making.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Module 3: Table Selection
Author: DoanNX Version 2.0/Time: 30’. The ways to solve it There are 2 main ways:  Client-side: Using JavaScript (now one very good option is JQuery).
Project Implementation for COSC 5050 Distributed Database Applications Lab3.
SCIENTIFIC SOLUTIONS Journal Citation Reports ® New Features of Version 4.0.
COMP 365 Android Development.  Manages access from a central database  Allows multiple applications to access the same data.
CSS/417 Introduction to Database Management Systems Workshop 2.
ApEx: Lessons from the Trenches ODTUG Kaleidoscope, June 20, 2007 Bill Holtzman National Air Traffic Controllers Association.
Access Queries Office 2013/ Queries Most common type of Query is selection(projection) Specify sources for data retrieval table(s) and/or query(ies)
1 OPOL Training (OrderPro Online) Prepared by Christina Van Metre Independent Educational Consultant CTO, Business Development Team © Training Version.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
PowerBuilder Online Courses - by Prasad Bodepudi
Agency (BU) Query Manager Training State of Indiana Instructor: Lori Shapiro, ENTAP.
1.NET Web Forms Business Forms © 2002 by Jerry Post.
Database Systems Microsoft Access Practical #1 Creating Tables Nos 215.
State of Kansas Travel Authorizations Statewide Management, Accounting and Reporting Tool Entering a Travel Authorization Navigation: Employee Self Service.
FIX Eye FIX Eye Getting started: The guide EPAM Systems B2BITS.
Guide to Oracle 10g ITBIS373 Database Development Lecture 4a - Chapter 4: Using SQL Queries to Insert, Update, Delete, and View Data.
1Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
Statewide Financial System Program 1 Accounts Receivable: Refresher Training Key Points Accounts Receivable: Refresher Training Key Points Welcome.
Building Dashboards SharePoint and Business Intelligence.
Access Queries Agenda 6/16/14 Review Access Project Part 1, answer questions Discuss queries: Turning data stored in a database into information for decision.
Chapter 3 Automating Your Work. It is frustrating when you have to type the same passage of text repeatedly. For example your name and address. Word includes.
Office of Housing Choice Voucher Program Voucher Management System – VMS Version Released October 2011.
V9 ISIS Upgrade ISIS v9 Transition Demo University of Wisconsin Madison Kathleen Cummings, ISIS Training.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
Session id: Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Address Book Application Introducing Database Programming.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
Copyright  Oracle Corporation, All rights reserved. 6 CMIS Powell Oracle Designer: Prototype Application Generation CMIS Powell.
5 Copyright © 2008, Oracle. All rights reserved. Testing and Validating a Repository.
Chapter 4 Crystal Report Presenter: PEN PHIROM (MscIT) Phone:
FHA Training Module 1 This document reflects current policy related to this topic. Its content is approved for use in all external and internal FHA-related.
 CONACT UC:  Magnific training   
BTM 382 Database Management Chapter 8 Advanced SQL Chitu Okoli Associate Professor in Business Technology Management John Molson School of Business, Concordia.
Lawson Mid-America User Group Spring 2016 Meeting.
JavaScript, Sixth Edition
Computer Fundamentals
Data Virtualization Tutorial: XSLT and Streaming Transformations
Introduction to Oracle Application Express
DB Implementation: MS Access Forms
Presentation transcript:

Karen Cannell kcannell@thtechnology.com APEX: Tight Tabular Forms Karen Cannell kcannell@thtechnology.com http://www.thtechnology.com

Volunteer to author ODTUG Journal Articles! 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

About You … (Audience Background) New to APEX? APEX Experience? Previous Tools? APEX Training? Version 2.0? 3.1 ? 3.2 ? 4.0?

Agenda Tabular Forms, <= APEX 3.2 Tabular Forms, Manual Loose Tabular Forms, Manual Tighter and Tedious Tabular Form 4.0 Enhancements Tighter, less work OOTB Tabular Form 4.0 + Custom Tightest and (a bit) less Tedious

Tabular Forms Multiple Rows, Columns at Once

Tabular Form vs. Updateable Report Coding w/the Enemy: JDeveloper as PL/SQL IDE April 26, 2006 Tabular Form vs. Updateable Report Tabular Form = = Updateable Report Report + editable items + MRU, MRD, Add Row Processes. Try adding fly-in HTML, CSS, XML, JavaScript URL COLLABORATE '06 Paper 532

Tabular Forms <= APEX 3.2 ~ Loose ~

The Problem? (<= APEX 3.2) Limited Out-of-the-Box Validations Required, Format Mask Column Checks Only No Per Row No “Has Row Changed?” Error Message Stops on First Error Does Not Show Row/Column of Error Too Loose! Bad Data In … Bad Data Out … Need to Tighten Up …

Tabular Forms <= APEX 3 Tabular Forms <= APEX 3.2 Plus Manual Validations ~ Tighter, Tedious ~

Tabular Form No Element Names Where to Add Validations?

Tabular Form Validations - Solutions Use a Developer Framework i.e. APEXLib Manually Code Validations

APEXLib APEXLib Development Framework http://apexlib.oracleapex.info/index.html#index For APEX <- 3.2, Tabular form Enhancements Help Not an Oracle Product Not part of APEX

APEXLib Tab Form Features Reference columns by name without having to find which array your column is mapped to To get the correct number of rows to process Identify which row has changed Get your data with the correct data type (NUMBER, DATE) without having to take care about format masks. Add a required column check by declaration, instead of coding it. Get more meaningful error message than APEX provides. These Features are in APEX 4.0

To Manually Code Validations: Get the Generated Item Names or Use APEX_ITEM in SQL Query then Use APEX_APPLICATION.g_fxx Arrays to Manually Write Validation/Processing Procedures

Generated Item Names Each Item has a Handle Handle   Aligns with an per Wizard’s Standard Naming Convention Handle   Aligns with an APEX_APPLICATION.g_fxx Array

WebDeveloper Show ID & Class Details

Manual Tab Form Processing Has the Row Changed?

Tabular Forms APEX 4.0+ ~ Tighter, Less Work ~

APEX 4.0 Tabular Forms 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

Tabular Form - Validations

Tabular Form - Validations Columns

Tabular Form Validations NOT NULL String Comp

Tabular Form – String Comp String Comparison Options

Tabular Form Validations Error Display Location

Tabular Form – Error Messages Column and Row

Tabular Form Validations Page

Tabular Form Validations - Page SQL, PL/SQL Use APEX_APPLICATION.g_fnn Arrays

4.0 Tabular Forms - Limitations Cannot Directly Reference Column Values i.e. like Page Items Field Highlighting Only via Declarative Validations Default NOT NULL Validations Do Not Highlight LOV Columns Do Not Highlight Limited Options “… We have plans to further extend this to support additional types of validations in future release of Application Express.”

Tabular Forms 4.0 - Limitations Coding w/the Enemy: JDeveloper as PL/SQL IDE April 26, 2006 Tabular Forms 4.0 - Limitations No Declarative Per-Row Validation No Declarative Page Validation (ok) No Easy Reference to Tabular Form Cells Field Highlighting Only Through Declarative Validations To Code These Use: APEX_ITEM in Query APEX_APPLICATION.g_f0nn Arrays Javascript Still LOTS OF CODE! http://htmldb.oracle.com/pls/otn/f?p=31517:176:2983426600843482 COLLABORATE '06 Paper 532

Tabular Forms APEX 4.0+ Plus Manual Validations ~ Tightest, Less Tedious ~

Manual Tabular Forms - Possibilities Highlight Rows Disable Columns Custom Validations Row-level, Page-level, Complex Whatever You Can Code Second Tabular Form on page Whatever You Can Code!

Generated Item Names Each Item has a Handle Handle   per Wizard’s Standard Naming Convention Per APEX_ITEM Call Handle   APEX_APPLICATION.g_fxx Array

WebDeveloper Show ID & Class Details

Manual Tabular Forms User APEX_ITEM in Query to Build Element Embed JavaScript in the APEX_ITEM call Use APEX_APPLICATION.g_f0nn Arrays to Code Custom Validations, Other Processing Essentially, you are Manipulating Arrays …

SQL for Manual Tabular Form: Regular SQL Query

Manual SQL for Tabular Form

Resulting Item Names

APEX_ITEM.TEXT Call Syntax:

APEX_ITEM.TEXT Example

APEX_ITEM.TEXT - Sorting

APEX_ITEM.MD5 - Checksum Use When Need Checksum Use for Has Row Changed Checks

APEX_APPLICATION.g_fXX Arrays

PL/SQL to Process Manual Tab Form Use APEX_APPLICATION.g_f0n arrays to Process Data Example: Landed Lbs Must = Landed Qty If Unit = ‘LB’

Landed Lbs Must = Landed Qty If Unit = ‘LB’ Pseudocode: IF g_f13=‘LB’ THEN IF g_f11 <> g_f12 THEN .. ‘Landed Lbs must match Landed Qty when Unit is LB’; END IF;

The Real Code – Assessment Form Validation 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 LOOP; RETURN v_msg; END

Tabular Forms – Workarounds Manual Tabular Forms APEX_ITEM to build query, APEX g_f0nn arrays Validations not covered by APEX By-Row Validations Embed JavaScript for all those extras: Highlighting Cascading LOVs Conditional Validations Development Framework (ex: APEXLib - Tab form help for < APEX 4.0) Still LOTS OF CODE!!!

Manual Tabular Forms - Possibilities Highlight Rows Disable Columns Custom Validations Row-level, Page-level, Complex Whatever You Can Code Second Tabular Form on page Whatever You Can Code!

Tabular Form - Manual Manual Tabular Form Using APEX_ITEM

Manual Tab Form Processing Has the Row Changed?

Tabular Form - Online Examples Great Examples at Denes Kubicek http://htmldb.oracle.com/pls/otn/f?p=31517:170 Many others out there!

Manual Tabular Forms Demo ~ in case I forgot ~

Tight Tabular Forms - Summary <= APEX 3.2 No Validations Anything can get in APEX 4.0 + Out-of-the-Box Validations Improves Still only part way there! Unless You Build It … Be Prepared to Code, Still …

References APEX_ITEM Documentation APEX_APPLICATION 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/e12855/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/

K’Scope 2011!!

Share Your Knowledge ! Call for Articles/Reviewers ODTUG Technical Journal ALWAYS Looking for Content! kcannell@odtug.com

Please fill out the evaluations! Questions ? Tight Tabular Forms kcannell@thtechnology.com http://tunahuntress.com/apex Please fill out the evaluations!

Please fill out the evaluations! Tight Tabular Forms February 2011 Thank You ~ Tight Tabular Forms kcannell@thtechnology.com http://tunahuntress.com/apex Please fill out the evaluations! RMOUG 2011 Karne Cannell, THTechnoloy

<= 3.2 Tabular Form - Drawbacks Limited Validations on Columns No Row-Changed Function Error Messages Do Not Indicate Row/Column Stops After First Error To Code Validations, use APEX_APPLICATION.g_fxx Arrays All Custom Code If Order Changes, Re-Code Conditions Change g_fxx Array Checkbox Columns Use g_fxx Arrays Differently …

Tabular Form - Manual Manual Tabular Form Using APEX_ITEM