Monday, September 17, 2018

How to call another oracle Form with Parameters

1)Develop both forms and register in application.

2)Place the Button in first from 

3)Write the following code in WHEN-BUTTON-PRESSED Trigger.


fnd_funCtion.execute(function_name => 'second_form_function_name',

             open_flag     => 'Y'    ,             

                     OTHER_PARAMS  => 'P1 = '||:XXAP_SUPPLIERS.VENDOR_ID);

 

P1 is Second form parameter

 

4)Open the Second form and define the Parmaeter called P1


5)goto PRE-QUERY trigger and write the following code to change the query dynamically.


 :XXAP_SUPPLIER_SITES_ALL.VENDOR_ID  := :PARAMETER.P1;

 --:blockname.fieldname := :PARAMETER.Parametername; 

  

6) Goto the WHEN-NEW-FORM-INSTANCE Trigger at form level. write the following code 

    GO_BLOCK('XXAP_SUPPLIER_SITES_ALL');

EXECUTE_QUERY;


1 comment:

  1. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.
    Oracle Fusion HCM Online Training

    ReplyDelete

SupplierAddressImportTemplate.xlsm South Africa Suburb Field mapping in POZ_SUPPLIER_ADDRESSES_INT

Suburb mpping in Supplier Address Import Template will be mapped to Address Element Attribute2 (HZ_LOCATIONS. ADDR_ELEMENT_ATTRIBUTE2)