Home » Developer & Programmer » Forms » Report 10g in Web Browser
Report 10g in Web Browser [message #85328] Wed, 16 June 2004 02:55 Go to next message
hudo
Messages: 165
Registered: May 2004
Senior Member
Hello,
I used to develop with Forms 6i, now I'm using Forms 10g (from Oracle Developer Suite 10g).
By pressing a button within a form, I'd liked to see the respective report in the webbrowser.
Here is the code how it was implemented with Forms 6i:
--------------------------------------------------------
PROCEDURE call_rep_datesearch IS

para_id_form PARAMLIST;
para_id_rep PARAMLIST;

--p_sessionid NUMBER;

BEGIN
para_id_rep := GET_PARAMETER_LIST('ein_param');
--
IF NOT ID_NULL(para_id_rep) THEN
DESTROY_PARAMETER_LIST(para_id_rep);
END IF;
--
para_id_rep := CREATE_PARAMETER_LIST('ein_param');

ADD_PARAMETER(para_id_rep,'p_starttime',TEXT_PARAMETER,TO_CHAR(:SEARCHFIELD.STARTDATE,'dd.mm.yyyy'));
ADD_PARAMETER(para_id_rep,'p_endtime',TEXT_PARAMETER,TO_CHAR(:SEARCHFIELD.ENDDATE,'dd.mm.yyyy'));

-- Ask for parameters: NO oder YES
ADD_PARAMETER(para_id_rep,'PARAMFORM',TEXT_PARAMETER,'NO');
-- ADD_PARAMETER(para_id_rep,'PARAMFORM',TEXT_PARAMETER,'YES');

RUN_PRODUCT(REPORTS,
'rep_datesearch.rep',
SYNCHRONOUS, RUNTIME,FILESYSTEM ,para_id_rep, NULL);
--DELETE REPORT_TABLE WHERE id = p_sessionid;

--FORMS_DDL('COMMIT');

NULL;
END call_rep_datesearch;
---------------------------------------------------

What has to be changed ?
Re: Report 10g in Web Browser [message #85334 is a reply to message #85328] Wed, 16 June 2004 07:00 Go to previous messageGo to next message
Himanshu
Messages: 457
Registered: December 2001
Senior Member
Hi,
I am not sure if RUN_PRODUCT is supported in 10G, so you must try it out.
Otherwise make use of either RUN_REPORT_OBJECT or WEB.SHOW_DOCUMENT built-ins.

HTH
Regards
Himanshu
Re: Report 10g in Web Browser [message #85336 is a reply to message #85334] Thu, 17 June 2004 00:47 Go to previous messageGo to next message
Kapil
Messages: 145
Registered: May 2002
Senior Member
RUN_PRODUCT is not supported in Oracle 9i iDS,so must not be supported in 10g also.You Should try RUN_REPORT_OBJECT.
Re: Report 10g in Web Browser [message #85402 is a reply to message #85336] Tue, 22 June 2004 23:39 Go to previous message
begemoth
Messages: 1
Registered: June 2004
Junior Member
You merely should read the WhitePapers from Oracle and the FAQ given the fact that it is clearly mentioned
Previous Topic: Package
Next Topic: Exception
Goto Forum:
  


Current Time: Tue May 07 02:20:23 CDT 2024