Professional Documents
Culture Documents
AS
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
--Business Validations can be added here
INSERT INTO xxsw_testadi_tbl
VALUES (p_seq_no,
p_item_number,
p_pos_uom,
p_status);
COMMIT;
EXCEPTION
WHEN OTHERS
THEN
raise_application_error (
-20116,
'Error - Cannot insert/update size code mappings');
END LOAD_ADI;
END xx_testadi_pkg;
Function: XXSW_TEST_ADI
User Function Name: XXSW_TEST_ADI
Type: SSWA servlet function
HTML Call: BneApplicationService
Save and Close
Note: Parameter has to update with Integrator code and Layout. Will come back here later.
Step4: Add the Function to Menu. Save and Close
Click NEXT
--> This will display all the IN and OUT parameters of the package procedure. Delete the
OUT attributes using Delete button
--> Change the Prompt if Required.
--> Click on Update and Select 'Not Null' check box in order make mandatory during upload
Click NEXT twice to go Step 4.
Step5.3: Define Uploader
Uploader: From Template
Uploader Name: XXSW_TEST_WEBADI - Uploader
Upload Parameters: For bne:Validation, enable the check box for Displayed, Enabled and
Required. For rest of them Uncheck
APPLY
Step 6: Update Function Parameters
Run the below SQL Query:
SELECT INTEGRATOR_APP_ID || ':' || INTEGRATOR_CODE INTEGRATORS,
APPLICATION_ID || ':' || LAYOUT_CODE LAYOUTS FROM BNE_LAYOUTS_B WHERE
INTEGRATOR_APP_ID = 20003 ORDER BY 1, 2
From the Results of above sql, copy the Integrator and layout to below string:
bne:page=BneCreateDoc&bne:integrator=20003:XXSW_TEST_ADI_XINTG&bne:layout=200
03:XXSW_TEST_ADI_LAYOUT
Goto Application Developer --> Application --> Function --> Query for XXSW_TEST_ADI
function --> 'Form' tab, Enter the above string and SAVE