Hosted within the Oracle Database. APEX is ... Free hosted environment at apex.oracle.com ... Call coreins.sql from sqlp
Integrate Oracle Application Express (APEX) with the Oracle E-Business Suite.
Joshua Bryant Application Architect
[email protected]
Agenda • • • • •
Description of Application Express Tips for installing APEX with EBS Integration with E-Business Suite Authentication and Authorization with EBS Screenshots of Mellon APEX application
Description of APEX • Rapidly develop and deploy Web applications • Build reports, forms and charts • Hosted within the Oracle Database. APEX is included with your database license. • APEX release 2.2.1 requires Oracle Application Server as the web server. Oracle Database 10g Express Edition (XE) includes Oracle APEX release 2.1and does not require OAS. • Standard with 10g. Install script for 9.2 and above (20 minutes to run). • Free hosted environment at apex.oracle.com • Application Express Forum is an excellent resource.
Screenshot of APEX homepage
Installation • APEX is included with 10g database. • For 9.2 and above, download apex_2.2.1.zip from Oracle Technology Network. Follow instructions for install. – Call coreins.sql from sqlplus to install all database objects (~20 minutes). – Copy images directory into $IAS_ORACLE_HOME/Apache – Add a new DAD entry to $IAS_ORACLE_HOME/Apache/modplsql/cfg/wdbsvr.app – Add new alias and types to $IAS_ORACLE_HOME/Apache/Apache/conf/httpd.conf
Installation Tips • Dad entry in wdbsvr.app: # Begin customizations [DAD_apex] connect_string = hostname:db_port:SID password = apex username = apex_public_user default_page = apex document_table = wwv_flow_file_objects$ document_path = docs document_proc = wwv_flow_file_mgr.process_download reuse = Yes enablesso = No stateful = STATELESS_RESET nls_lang = American_America.US7ASCII custom_auth = Basic # End customizations
• Connect to http://hostname/pls/apex
Installation Tips • If you receive the error ‘Authorization Required’ at login: – Comment out the custom_auth=CUSTOM variable in wdbsvr.app OR – Confirm that DAD_APEX includes custom_auth = Basic in wdbsvr.app
• Add the following to the httpd.conf file: # Begin customizations Alias /i/ "/fiprdafs/fiprd1ora/iAS/Apache/images/" AddType text/xml xbl AddType text/x-component htc # End customizations
– The Alias points to the APEX images directory you must copy into your $IAS_ORACLE_HOME/Apache path – The AddType allows you to edit sql scripts with APEX inside the browser
Best Practices for integrating APEX • Create a custom E-Business Suite application (separate schema) – Tables, Views, Sequences and Triggers go into custom schema – Grants, Synonyms, and PL/SQL go into APPS schema
• Setup APEX workspace to parse the APPS schema so that APEX can see all the EBS objects
Integration with E-Business Suite • You may wish to rapidly develop forms and reports on request. We have developed APEX applications for the following: – – – –
Mapping data from an interface or conversion Reassign approvers for workflow notification Report of all invoices over 30,000 in source currency. Enhancement requests
Mapping Application
Popup lists created from Legal Entities maintained in EBS
Referencing List of Values select apex_item.hidden(1,id) || apex_item.checkbox(2,id) || apex_item.hidden(6,CREATED_BY) || apex_item.hidden(7,LAST_UPDATED_BY) || apex_item.hidden(8,wwv_flow_item.md5(EFS_LEGAL_ENTITY,SET_OF_BOOKS_NAME)) remove, apex_item.popup_from_lov(3,EFS_LEGAL_ENTITY,'MELLONLE',3,5) EFS_LEGAL_ENTITY, apex_item.select_list_from_query(4,SET_OF_BOOKS_NAME,'SELECT NAME FROM GL_SETS_OF_BOOKS WHERE NAME NOT LIKE ''%CONSOL%''',null,'NO') SET_OF_BOOKS_NAME, APEX_ITEM.DISPLAY_AND_SAVE(9,DESCRIPTION) LE_DESCRIPTION from (SELECT FILS.*, FFVV.DESCRIPTION FROM FI_GL_APEXV_LE_TO_SOB FILS, FND_FLEX_VALUES_VL FFVV where FFVV.FLEX_VALUE(+) = FILS.EFS_LEGAL_ENTITY and FFVV.FLEX_VALUE_SET_ID(+) = 1008547 and (UPPER(FILS.EFS_LEGAL_ENTITY) like UPPER('%'||NVL(:SEARCH_LE,'%')||'%') or ','||REPLACE(:SEARCH_LE,':',',')||',' like '%,'||FILS.EFS_LEGAL_ENTITY||',%') order by FILS.EFS_LEGAL_ENTITY)
Access Control
Authenticating against EBusiness Suite
Login process calls built-in procedure
Q&A