|
Re: passing parameter to report from texts on form by using menu item in menu toolbar [message #81796 is a reply to message #81777] |
Mon, 24 March 2003 01:28 |
waris
Messages: 115 Registered: November 2001
|
Senior Member |
|
|
THis is the code to be written in ur Menu Code :
declare
pl_id ParamList;
begin
pl_id :=Get_Parameter_List('tmpdata');
IF NOT id_null(pl_id) THEN
Destroy_Parameter_List(pl_id);
END IF;
pl_id:=Create_Parameter_List('tmpdata');
/* Here the ur block name and text item name should be in NAME_IN function */
Add_Parameter(pl_id,'LISTPATH',TEXT_PARAMETER,NAME_IN('blockname.tex_item_name'));
run_product(REPORTS,:global.report_path||'abrepins',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id,NULL);
end;
Cheers
waris
|
|
|