Flex Your APEX Implementing Oracle E-Business Suite Descriptive Flexfields in Application Express Shane Bentz InterVarsity Christian Fellowship/USA.

Slides:



Advertisements
Similar presentations
Web 2.0 Programming 1 © Tongji University, Computer Science and Technology. Web Web Programming Technology 2012.
Advertisements

Information Technology Quiz Questions with Answers Part 11
Chungnam National University DataBase System Lab
3rd Annual Plex/2E Worldwide Users Conference Page based on Title Slide from Slide Layout palette. Design is cacorp Title text for Title or Divider.
Copyright © 2003 Pearson Education, Inc. Slide 7-1 The Web Wizards Guide to PHP by David Lash.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Introduction to XHTML Programming the World Wide Web Fourth edition.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails.
Copyright © 2003 Pearson Education, Inc. Slide 5-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
Structured Query Language (SQL)
October 2008 MPDPF and MOC Enhancements – Consolidated Mockups.
Relational Database and Data Modeling
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
12 Copyright © 2005, Oracle. All rights reserved. Query Rewrite.
7 Copyright © 2005, Oracle. All rights reserved. Maintaining State in J2EE Applications.
18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
4 Copyright © 2005, Oracle. All rights reserved. Creating the Web Tier: Servlets.
8 Copyright © 2005, Oracle. All rights reserved. Creating the Web Tier: JavaServer Pages.
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
Using the Set Operators
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Determine Eligibility Chapter 4. Determine Eligibility 4-2 Objectives Search for Customer on database Enter application signed date and eligibility determination.
Child Health Reporting System (CHRS) How to Submit VHSS Data
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
Introduction to Relational Database Systems 1 Lecture 4.
ZMQS ZMQS
Integrify 5.0 Tutorial : Creating a New Process
4. Internet Programming ENG224 INFORMATION TECHNOLOGY – Part I
Report Card P Only 4 files are exported in SAMS, but there are at least 7 tables could be exported in WebSAMS. Report Card P contains 4 functions: Extract,
Text 1 July, 2010 DCMS: Training Manual Campaign Management.
HTML Tags and Their Functions
Campaign Overview Mailers Mailing Lists
Yunling Wang VoIP Security COMS 4995 Nov 24, 2008 XCAP The Extensible Markup Language (XML) Configuration Access Protocol (XCAP)
ABC Technology Project
Access Lesson 13 Programming in Access Microsoft Office 2010 Advanced Cable / Morrison 1.
User Friendly Price Book Maintenance A Family of Enhancements For iSeries 400 DMAS from Copyright I/O International, 2006, 2007, 2008, 2010 Skip Intro.
1 Web-Enabled Decision Support Systems Access Introduction: Touring Access Prof. Name Position (123) University Name.
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2.1: Relational Databases.
Svetlin Nakov Telerik Corporation
Creating Tables in a Web Site
Microsoft Access.
Displaying Data from Multiple Tables
Access Tables 1. Creating a Table Design View Define each field and its properties Data Sheet View Essentially spreadsheet Enter fields You must go to.
Creating Tables. 2 home back first prev next last What Will I Learn? List and provide an example of each of the number, character, and date data types.
Integration between HTML 5 Drag & Drop and SAP ABAP HTTP ICF Services Alessandro Spadoni & Patrizia Rossi October 8th,
August 2012 This work is licensed under the Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 12 – Security Panel Application Introducing.
1 What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight.
 Copyright I/O International, 2013 Visit us at: A Feature Within from Item Class User Friendly Maintenance  Copyright.
4 Oracle Data Integrator First Project – Simple Transformations: One source, one target 3-1.
Essentials for Design JavaScript Level One Michael Brooks
Addition 1’s to 20.
INTRODUCTORY MICROSOFT WORD Lesson 7 – Working With Documents
Dr. Alexandra I. Cristea XHTML.
25 seconds left…...
School Census Summer 2011 Headlines Version Jim Haywood Product Manager for Statutory Returns.
Week 1.
We will resume in: 25 Minutes.
CHAPTER 11 FILE INPUT & OUTPUT Introduction to Computer Science Using Ruby (c) 2012 Ophir Frieder et al.
1 PART 1 ILLUSTRATION OF DOCUMENTS  Brief introduction to the documents contained in the envelope  Detailed clarification of the documents content.
Computer Concepts BASICS 4th Edition
WaveMaker Visual AJAX Studio 4.0 Training
TIDE Presentation Florida Standards Assessments 1 FSA Regional Trainings Updated 02/09/15.
User Friendly Item Relationship Maintenance A Family of Enhancements For iSeries 400 DMAS from  Copyright I/O International, 2006, 2007, 2008, 2010 Skip.
Project Implementation for COSC 5050 Distributed Database Applications Lab4.
Project Implementation for COSC 5050 Distributed Database Applications Lab5.
Presentation transcript:

Flex Your APEX Implementing Oracle E-Business Suite Descriptive Flexfields in Application Express Shane Bentz InterVarsity Christian Fellowship/USA

2 Presentation Summary Descriptive Flexfield Introduction General Overview of Method Page Items Application-Level Processes and Item Database Stored Functions Javascript Code Label Template Specifications Fetch and DML Processing Potential Future Improvements

3 Descriptive Flexfield Introduction Descriptive flexfields provide a flexible way for Oracle Applications to provide customizable "spaces" within a page or pages of an application. ( Generic columns (traditionally called attributes) have two general purposes: potential future use storing mutually exclusive data to conserve space

4 Descriptive Flexfield Introduction A dedicated governing column (traditionally named ATTRIBUTE_CATEGORY) is used to define a context-sensitive purpose for these generic columns. Example: Payment Types (Credit Card, Cash, E-Pay, etc.) Each generic attribute column can be assigned a validation rule called a value set.

5 Descriptive Flexfield Introduction Necessary Rules (for this method): Value sets assigned to attributes must have a validation type of Table. If an attribute column is defined as a free- form text item, there should be no value set assigned to it.

6 General Overview Application Express Items and Processes: Multiple versions (Text Field, Select List, and Pop-Up Key LOV) of ATTRIBUTE items on your Application Express page Two on-demand application-level processes and one application-level item

7 General Overview Database and Javascript Code: Two database functions to dynamically build the valid list of options to be populated in select and pop-up lists Javascript to make everything appear magical show/hide appropriate items AJAX used to retrieve the validation lists changing the label on each attribute field All code is provided in the presentation paper

8 Page Items Create the following items: an ATTRIBUTE_CATEGORY item which governs which attribute items are displayed. a Text Field, Select List, and Pop-Up Key LOV version of each attribute database column hidden items for each attribute to store the value set ID if the attribute has a table-based value set and the help text retrieved from the flexfield definition

9 Page Items Page items needing to be created:

10 Page Items (Pop-Up Key LOV) Pop-Up Key LOV items should have the following characteristic: a List of Values source which calls a packaged function to dynamically build the validation list. Example: begin return ( generate_attribute_lov ( :p6_attribute1_vset_id ) ); end;

11 Application-Level Processes CREATE_DYNAMIC_LOV – generates XML of a list of valid options to be assigned to a select list GET_ATTRIBUTES – generates XML to describe the needed attributes the name of the attribute column the attributes label the value set ID of the value set for validation flag indicating if the value set is a long list help text stored in the description of the flexfield column if fetching an existing record, the current value stored in the attribute database column and its description

12 Application-Level Item APPL_LEVEL_VSET_ID accessed by the CREATE_DYNAMIC_LOV on- demand application-level process to build the list of options of a select list. as the AJAX code loops through each attribute item, this item temporarily stores the value set ID of the attribute currently being processed.

13 Stored Functions GENERATE_ATTRIBUTE_LOV returns the SELECT statement representing the value set associated with current attribute column to generate the list of options example: select description, code from master_lookup_table order by description; GET_ATTRIBUTE_DESCRIPTION returns the description of a code stored in an attribute column

14 Javascript Code clearAllAttributes: sets the value of all attributes to null hideAllAttributes: turns display of all attribute items off ChangeLabel*: changes the label of an item on the page *requires a change to the specified label template

15 Javascript Code (AJAX) Asynchronous Javascript And XML Application Express has built-in code which makes implementing AJAX simple on-demand application-level process and the htmldb_Get Javascript function to call the on- demand application-level process lots of examples on the Oracle Application Express forum (

16 Javascript Code (AJAX) fillAttributeLOV – dynamically builds a select list getAttributeCategoryXML – main JS function 1.uses AJAX to retrieve several pieces of information (metadata) about the necessary attribute columns 2.loops through each attribute columns metadata to 1.determine which item type to use 2.build validation lists where appropriate 3.assign the attribute-specific help text to the item 4.change the label of the item dynamically

17 Label Template Specifications For Javascript to dynamically change the label of an item, there are two requirements of the label template(s): the opening label tag must have an ID attribute for Javascript to access its contents example: the opening and closing label tags must be immediately next to the text of the label example: … id=fname_label>First Name

18 Label Template Specifications Two required specifications to dynamically change the label:

19 Fetch and DML Processing The SELECT Before Header process looks up the metadata description of the current record in order to know in which version of the attribute items to place the information. The INSERT and UPDATE After Submit processes assume only the appropriate version of the attribute item will contain the current value. It is important that only one version of the item contains the value.

20 Fetch and DML Processing The INSERT and UPDATE After Submit processes assume only the appropriate version of the attribute item will contain the current value.

21 Potential Future Improvements Dynamically implement the required checkbox of an attribute column Addition of a date picker or other item types. Dynamically create the items (using APEX_ITEM) instead of hiding and showing appropriate versions.

22 Sources and Resources Oracle Application Express Home Page Oracle Application Express Forum Oracle E-Business Suite Documentation Javascript Tutorial

23 Contact Information Shane Bentz Application Development Mgr. InterVarsity Christian Fellowship/USA 6400 Schroeder Road Madison, Wisconsin Copyright 2008