0% found this document useful (0 votes)
462 views20 pages

Technical Document of WebAdi

This document provides steps to configure Oracle WebADI for integrating Excel sheets. It includes enabling macros in Excel, setting browser security settings in Internet Explorer, defining an integrator in Oracle WebADI, creating an Excel download layout for the integrator, and defining a form function for navigator access. Key steps are enabling macros, setting scripting permissions, defining an integrator using an API, creating an Excel download layout, and assigning a function to a custom menu for navigation.

Uploaded by

Aadii Goyal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
462 views20 pages

Technical Document of WebAdi

This document provides steps to configure Oracle WebADI for integrating Excel sheets. It includes enabling macros in Excel, setting browser security settings in Internet Explorer, defining an integrator in Oracle WebADI, creating an Excel download layout for the integrator, and defining a form function for navigator access. Key steps are enabling macros, setting scripting permissions, defining an integrator using an API, creating an Excel download layout, and assigning a function to a custom menu for navigation.

Uploaded by

Aadii Goyal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 20

ORACLE WEBADI STEPS

Enable the macros option for your Excel sheet

Home => Excel Options

Select Excel Options to set the properties :=>

Click on Trust Centre -> Trust center Settings


Select Macro Settings -> Enable all macros and check the option Trust access to
the VBA Project object model
Apply and save your settings

1.2. I.E Browser Setting

1. Go to Internet Explorer --> Tools --> Internet Options -->


Security Tab-->Custom Level
and change "Allow status bar updates via script" to "Enable"

In the Security Setting window scroll down until you see the ‘Scripting’
region. For the ‘Allow status bar updates via script’ click the ‘enable’
button. Click OK
If the Warning message appears click ‘Yes’ to change the settings.

2. Go to Internet Explorer--> Tools --> Internet Options -->


Security Tab-->Custom Level
and change "Initialize and script ActiveX control not marked as safe for
scripting" to "Prompt"
If the Warning message appears click ‘Yes’ to change the settings.

1.3. Set Profile Options

Check the value for profile option named BNE Allow No Security Rule and
set the value to Yes
Go to System Administrator => Profile => System
Open Below Menu:
Desktop Integration Menu

Seq Prompt Submenu Function Description Grant


120 Manage Desktop Checked
Integrator Integration
Manager -
Create
Integrator
125 HRMS Checked
ADI
Create
Document
Menu
130 HR ADI
Seeded
Integrator
Form
Functions
Go to Desktop Integrator Responsibility and click on Manage Integrator

Integrator Name ELE_MIG


Internal Name ELE_MIG
Application Human Resources
Reporting Only Unchecked
Enabled Yes
Display in Create Document Page Unchecked

Then Click Next And Enter Details

Interface Name ELE_MIG


Interface Type API-Procedure
Package Name XXKAEC_ELEMENT_ENTRY_PKG
Procedure/function Name XXKAEC_ELEMENT_ENTRY_P
API Returns

Click on Apply
• Click Apply:
Click On Radio Button of Interface Name the screen come like this given below :

Finally click on Submit Button you will see the Integrator Created Successfully.

Now In Search Box, Search below Integrator Name


XXKAEC Earning Element

Click on go

Select the Radio Button

click tab Define Layout from here select name of your Integrator from List Of Value.
Click On Go , then click on Create Button

Layout Name: XXKAEC Earning Element

Number of Headers: 1
click on Next Button and make it as below.

Click on Next and make it as below

Click on Apply
Go to Desktop Integrator Responsibility again and click on Manage Integrator

Click on Cancel and Search for Below Integrator Name

XXKAEC Earning Element

Click on Go.

Select the radio Button and click on preview tab , you will see the Excel Sheet will be download.
Screen Shot to download of Excel Sheet

Click Next
Click On Create Document after that Excel Sheet will be Download , Click On Open and wait a
second.

Open the Downloaded Sheet


Now Change the column prompt for that you need to run the API.

select * from bne_interface_cols_TL where APPLICATION_ID=800 and INTERFACE_CODE =


'XXKAEC_EARNING_ELEMENT_INTF1'
order by last_update_date desc

DECLARE
CURSOR C1
IS
select * from bne_interface_cols_TL where APPLICATION_ID=800 and INTERFACE_CODE =
'XXKAEC_EARNING_ELEMENT_INTF1'
order by last_update_date desc;
LC_PROMPT VARCHAR2(1000);
BEGIN
FOR i IN C1
LOOP

IF I.prompt_left='EMPLOYEE_NUMBER'
THEN
LC_PROMPT:='Employee Number';
elsif
I.prompt_left='EFFECTIVE_START_DATE'
THEN
LC_PROMPT:='Start Date';
elsif
I.prompt_left='ELEMENT_NAME'
THEN
LC_PROMPT:='Element Name';
else
LC_PROMPT:=I.prompt_left;
end if;

bne_integrator_utils.update_interface_column_text
(p_application_id => 800,
p_interface_code => 'XXKAEC_EARNING_ELEMENT_INTF1',
p_sequence_num => I.sequence_num,
p_language => I.language,
p_source_lang => I.source_lang,
p_prompt_left => LC_PROMPT,
p_prompt_above => LC_PROMPT,
p_user_hint => NULL,
p_user_help_text => NULL,
p_user_id => 0 --Here you need to mention the user_id from whom you
login
);
COMMIT;
END LOOP;
END;

Now to display LOV In Spread Sheet , for that also you need to run API .
Suppose you want to display LOV of Flex Field .First you need to create View for that :

CREATE OR REPLACE VIEW hmg_value_set_view

AS

SELECT ffvs.flex_value_set_name, ffv.flex_value_set_id,

TO_CHAR (ffv.flex_value) flex_value,

TO_CHAR (ffvtl.description) description

FROM fnd_flex_values_tl ffvtl,

fnd_flex_values ffv,

fnd_flex_value_sets ffvs

WHERE ffvtl.LANGUAGE = 'US'


AND ffv.flex_value_id = ffvtl.flex_value_id

AND ffv.enabled_flag = 'Y'

AND SYSDATE BETWEEN NVL (ffv.start_date_active, SYSDATE)

AND NVL (ffv.end_date_active, SYSDATE)

AND ffvs.flex_value_set_id = ffv.flex_value_set_id;

After That Run below one API to display LOV In SpreadSheet.


CREATE OR REPLACE VIEW XXKAEC_EARNING_ELEMENTS
AS
(SELECT element_name,PROCESSING_TYPE FROM PAY_ELEMENT_TYPES_F WHERE
BUSINESS_GROUP_ID=102 and CLASSIFICATION_ID=84 and PROCESSING_TYPE='N' and
upper(ELEMENT_NAME) not like '%RETRO%')

declare
v_interface_code varchar2(200) := 'XXKAEC_EARNING_ELEMENT_INTF1';
begin
BNE_INTEGRATOR_UTILS.CREATE_TABLE_LOV
(P_APPLICATION_ID => 800,
P_INTERFACE_CODE =>v_interface_code,
P_INTERFACE_COL_NAME => 'ELEMENT',
P_ID_COL => 'DESCRIPTION',
P_MEAN_COL => 'DESCRIPTION',
P_DESC_COL => 'DESCRIPTION',
P_TABLE => 'XXKAEC_EARNING_ELEMENTS',
P_ADDL_W_C => 'upper(PROCESSING_TYPE) = upper(''N'')',
P_WINDOW_CAPTION => 'Element',
P_WINDOW_WIDTH => 400,
P_WINDOW_HEIGHT => 500,
P_TABLE_BLOCK_SIZE => 10,
P_TABLE_SORT_ORDER => 'DESCRIPTION',
P_USER_ID => 0, -- Name of user_id of the system for whom you login
P_POPLIST_FLAG => 'Y',
P_TABLE_COLUMNS => 'DESCRIPTION');
end;

Note:=>If LOV is not coming then say DBA to bounce Apache and adpcctl.sh

( both are same) =>stop , start

Defining the Form Function for Integrator


Navigation -> System Administrator -> Application -> Function
FUNCTION: EARNING_BEE
USER FUNCTION NAME: Payroll Earning Element BEE
TYPE: SSWA servlet function
PAREMETERS :
bne:page=BneCreateDoc&bne:integrator=800:XXKAEC_EARNING_ELEMENT_XINTG&bne:lay
out= 800:XXKAECEARNINGELEMENT

Below One Query to find parameters :


SELECT INTEGRATOR_APP_ID || ':' || INTEGRATOR_CODE INTEGRATORS,
APPLICATION_ID || ':' || LAYOUT_CODE LAYOUTS FROM BNE_LAYOUTS_B
WHERE INTEGRATOR_APP_ID = 800 and LAYOUT_CODE like '%EARNING%'

HTML Call: BneApplicationService


Assign Function to Custom Menu

Suppose You want to add this In HRMS SUPER USER Responsibility.

Copy Menu Name : SA HRMS Navigator

Create your own Menu


You will see this custom menu in HRMS SUPER USER responsibility:

******************************************************************
******************************************************************

You might also like