Sunteți pe pagina 1din 4

WebADI Creating Custom Integrators Web Applications Desktop Integrator (Web ADI) is a self-service Oracle Application.

Web ADI generates Microsoft Excel or Word documents on your desktop, and downloads the data you have selected from the application to be viewed, or modified and uploaded. It can also be used to load legacy data into Oracle HRMS, and allows you to manage the Mail Merge process We can use the WebADI to create custom Integrators that can be used to Upload or Download data from the application. In this blog I will list down the steps involved in creating a Custom Integrator that can be used to upload data into Custom table. Again, here we will be using EMP table for the sake of simplicity. 1) Assign yourself Oracle Web ADI responsibility. It has three important functions. Create Document : Allows using existing Integrators or create custom Integrators Define Layout : Create a Layout for existing or Custom Integrators Define Mapping : Create Map for exiting or Custom integrator to load data using flat text files.

2) Update the "Oracle Web ADI Menu" menu to add the Integrator functions menu "HR ADI Seeded Integrator Form Functions" . Otherwise, we won't be able to use integrators as permission is not granted. 3) Now, click on the Create Document option. 4) Select the Viewer, generally Excel, to generate the document (Reporting Check box is used when

downloading 5) Next, select "HR Integrator Setup" to create a custom Integrator. 6) Next, select the layout as "Integrator Setup" .

7) Next, leave the content as "None".

8) Next, review and select "Create Document".

9) This action creates an Excel Spreadsheet. Make sure you "Enable Macros" when you open it. Now using this spreadsheet we can create New Integrators. Basically, WebADI uses data from this standard template/layout to create/upload details about new Integrators. Complete the excel sheet with the Integrator Name. Meaning Column CREATE : create new Integrator UPDATE : update an Integrator Metadata Type DOWNLOAD : download Integrator data

Application Short Name, like AP, XXTEK Application Short Name Integrator User Name, Appear in the drop down list Integrator User Name Name of the View used to download data, not required for CREATE type. View Name GENERAL if dont associate Integrator with form LETTER for mail merge. Form Name Specific form name to associate with Integrator

PROCEDURE or FUNCTION API Package Name Procedure that inserts/uploads data. API Procedure Name Interface name displayed on to the user for this integrator on layout page. Interface User Name

Name for the parameter list displayed on Layout page Interface Parameter List Name PROCEDURE or FUNCTION API Type Date, Number or Varhar2 API Return Type

Click on Oracle --> Upload menu option. This will upload the Integrator definition into the system and the Integrator name would appear on the list of available integrators. NOTE : Integrator commits only if all rows are uploaded successfully Make sure that the API + Procedure is defined in the database, as the Integrator uses the procedure parameters to identify the data/columns to handle and shows it in the layout (which we will be creating soon ..)

So far we have only created the custom Integrator. We still need to do a few more things before we can actually begin to use it . --------------------------------------------------------------------------------Here's the sample code attached, simple and easy. CREATE OR REPLACE PACKAGE temp_emp IS PROCEDURE CREATE_EMP( p_empno IN NUMBER , p_ename IN VARCHAR2 , p_job IN VARCHAR2 , p_mgr IN NUMBER , p_hiredate IN DATE , p_sal IN NUMBER , p_comm IN NUMBER , p_deptno IN NUMBER ); END temp_emp; CREATE OR REPLACE PACKAGE BODY temp_emp IS PROCEDURE CREATE_EMP( p_empno IN NUMBER , p_ename IN VARCHAR2 , p_job IN VARCHAR2 , p_mgr IN NUMBER , p_hiredate IN DATE , p_sal IN NUMBER , p_comm IN NUMBER , p_deptno IN NUMBER ) IS BEGIN insert into emp ( empno, ename, job, mgr, hiredate, sal, comm, deptno); values (p_empno, p_ename, p_job, p_mgr,p_hiredate,p_sal,p_comm,p_deptno); EXCEPTION

WHEN OTHERS THEN null; END ; END temp_emp ; ---------------------------------------------------------------------------------

S-ar putea să vă placă și