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

Query To Fetch AP Invoice Details From SO Number(Doc ID 2949013.1)

SELECT dh.source_order_number       ,df.source_line_number as so_line_number   ,df.fulfill_line_number    ,ddr.doc_user_key as po_number...