|
|
|
Re: passing values from oracle forms to oracle reports [message #157462 is a reply to message #157212] |
Thu, 02 February 2006 09:19 |
mail2me
Messages: 5 Registered: February 2006
|
Junior Member |
|
|
hi
have u tried creating parameter list
if not then try creating it
this is one of the same code we are using
DECLARE
pl_id ParamList;
pl_name VARCHAR2(10) := 'Temp';
BEGIN
--Create Parameter List With Name 'TEMP'
pl_id := Get_Parameter_List(pl_name);
IF Id_Null(pl_id) THEN
pl_id := Create_Parameter_List(pl_name);
IF Id_Null(pl_id) THEN
Message('Error creating parameter list '||pl_name);
RAISE Form_Trigger_Failure;
END IF;
ELSE
Message('Clear the screen,to run the report again!');
RAISE Form_Trigger_Failure;
END IF;
pl_id := Get_Parameter_List('Temp');
-- Adding Parameters Runtime
IF NOT Id_Null(pl_id) THEN
Add_Parameter(pl_id,'ENT_ID',TEXT_PARAMETER,:REPORT.NBT_ENT_ID);
Add_Parameter(pl_id,'INPUT_DATE',TEXT_PARAMETER,to_char(:REPORT.NBT_INPUT_DT,'DD-MON-YYYY'));
--running the report
Run_Product(REPORTS, 'C:\Reports\client.rdf', ASYNCHRONOUS, RUNTIME,FILESYSTEM,'Temp');
clear_form;
Destroy_Parameter_List(pl_id);
END IF
the parameters you have to create in report
|
|
|