Calling report within parameter form

I am using web.show_document to call a report with paramform=yes and desformat=spreadsheet.
The users wanted the output to be displayed in excel rather than internet explorer so this was achieved by these PC settings
control panel > folder options > file types tab
Choose XLS from the list
“Advanced” button
untick “Browse in same window”
This works OK except it has a side effect of leaving the parameter form displayed after running the report, and it has to be closed manually. Can anyone think of a method to fix this ?

Try this in Before Form Value:.....<script type="text/javascript">
function runAndClose(){
myform.submit();
setTimeout("window.close();",1500);
</script>
</head>
<body bgcolor="#ffffff">
<form id="myform" onsubmit="runAndClose();" method=post action="_action_">.....There may be an event which fires when the form has been submitted but failing that you'll justhave to hope the timeout interval is large enough.
On my machine when window.close() runs in IE a message box pops up to tell me the window is trying to close, which I have to acknowledge. I don't know if this is a setting or hard-wired, but there may not be much benefit in having code to close the window 'automatically'.
Incidentally, how do you specify a name for the spreadsheet file? I trieddesformat=spreadsheet&destype=cache&desname=c:\a.xlsbut the file in the Open File dialog is always named 'rwservlet'.
Cheers,
James.

Similar Messages

  • Calling report with parameter form using frmrwinteg

    Hi,
    I am calling a report with a parameter screen from a form and am using the frmrwinteg bean. This works fine on our test application server but, when moved onto our production application server, the database logon screen is presented after pressing the submit button on the parameter screen. The cause of the problem seems to be the html generated to simulate the parameter screen. The html on the test application server contains a BASE tag in the HEAD section with an href starting "http:/servername.companyname.com". However, the same tag in the html generated on the production application server is missing the ".companyname.com", causing the cookie produced by the frmrwinteg bean to not be found. Does anyone know how the BASE href tag is generated and what I need to change to get the correct BASE href value? I am using Forms/Reports 10g R2 and Application Server 10.1.2.
    Cheers....

    Appendix "A" of this document describes how cookie_domain works:
    http://otn.oracle.com/products/forms/pdf/10g/frmwebshowdoc_rep.pdf

  • Report 9i parameter form problem, is it a bug?

    Hi all,
    I am using Dev 9i IDS, rel. 9.0.2, running in windows 2000. I've been converting my forms and reports from previous versions to 9i, and I came across an issue with the report's parameter form.
    First, I thought it could be a problem during the conversion , but to make sure I developed a new form and a new report straight in the 9i IDS suite, using Scott's DEPT table. The new form is simple having a button to call the new report which is based on the DEPT table and accepts an user's input for a dept. no.
    The same problem occurs:
    - in the form, if I set PARAMFORM=HTML then it could not open the report parameter form, hence the report could not run.
    - if I set PARAMFORM=YES, then the report parameter form is displayed, then I can enter a value for the department number. BUT, when I clicked the Submit Query button the report failed, and I received the following error:
    REP-52007: Parameter form format error.
    java.lang.IllegalStateException: Response is already committed!
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse.setContentType(EvermindHttpServletResponse.java:973)
         at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:27)
         at oracle.reports.rwclient.RWReportRunner.setContentType(RWReportRunner.java:261)
         at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:135)
         at oracle.reports.rwclient.CommandManager.handleCmdGetjob(CommandManager.java:1219)
         at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:369)
         at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:651)
         at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1053)
         at oracle.reports.rwclient.RWClient.doPost(RWClient.java:318)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    I have no problem integrating others reports that don't have parameter form using run_report_object. And, I've checked and tried different ways of manipulating the parameter value using to_number in the report's where clause etc., it never worked.
    I guess the only workaround is to create the parameter form in Forms builder. Is there other ways of doing it , or is it a bug of the 9i IDS suites that needs to be fixed?
    - Thanks

    Hi Frank,
    There's a note published on Metalink, note 139546.1, showing a workaround to thi problem. but
    - it is rather lengthy and confusing, may not be practical .
    - it only applies to Forms and Reports 6i.
    However, it shows that the problem comes from 2 items in the source code of the parameter form which is produced by the RUN_REPORT_OBJECT built-in:
    1. <form method=post action=""> where action contains an empty string, it needs to have a valid entry, e.g.
    <form method=post action="http://hostname:port/cgi/rwci60.exe?">
    2. <input name="hidden_run_parameters" type=hidden value=""> where hidden value is also empty. It should contains all parameter values passed to the report parameter form, e.g.
    <input name="hidden_run_parameters" type=hidden value="report%3test+destype%3Dcache+userid%Dscott.....">
    And that is what I found, but I am reluctant to try it in 9i IDS, hoping Oracle has a better solution than that.
    Tho.

  • 10g Report after Parameter form REP-52007??

    I have been struggling for years to display report with parameter form = yes, Report with parameter form=no works perfectly. Report with paramform=yes shows parameter but pressing submit query gives
    REP-52007 Parameter form format error
    My enviornment is:
    Windows 2003 Forms and Report Secrvices 10.0.xx
    i found some where before parameter form code can any one has such type of workaround with details
    Please help......
    Edited by: Zahid Rahim on Mar 18, 2010 2:33 PM

    Thanx Denis...
    This is the source of my parameter form.
    <html>
    <head>
    <base href="http://vpn.iwm.com/reports/rwservlet/getfile/HW/YX+JlF07hIshsw7rSixK7d1yytLr6mhU=/28482206.htm">
    </head></html>
    <html>
    <body dir="LTR" bgcolor="#ffffff">
    <form method=post action="&report=D:\OracleApps\sales\reports\Order_Booking_Saleman.rdf&destype=CACHE&desformat=pdf&userid=WH/WH@oracle-server&">
    *<input name="hidden_run_parameters" type=hidden value="">*
    <center>
    <p><table border=0 cellspacing=0 cellpadding=0>
    <tr>
    <td><input type=submit></td>
    <td width=15>
    <td><input type=reset></td>
    </tr>
    </table>
    <p><hr><p>
    <!-- Created by Oracle Reports 10:24 Mon Mar 22 , 2010 -->
    <table border=0 cellspacing=0 cellpadding=0 width=357>
    <tr><td width=29></td><td width=25></td><td width=1></td><td width=2></td><td width=1></td><td width=55></td><td width=76></td><td width=1></td><td width=1></td><td width=1></td><td width=21></td><td width=113></td><td width=2></td><td width=27></td><td width=2></td></tr>
    <tr><td colspan=15 height=38></td></tr>
    <tr valign=top>
    <td height=9></td>
    <td width=326 colspan=13 rowspan=5 align=center><font size=6 face="Arial" color="#ffffff"><b>ORDERS</b></font></td>
    <td></td>
    </tr>
    <tr valign=top>
    <td height=9></td>
    <td></td>
    </tr>
    <tr valign=top>
    <td height=9></td>
    <td></td>
    </tr>
    <tr valign=top>
    <td height=9></td>
    <td></td>
    </tr>
    <tr valign=top>
    <td height=9></td>
    <td></td>
    </tr>
    <tr><td colspan=15 height=38></td></tr>
    <tr valign=top>
    <td height=9 colspan=4></td>
    <td width=269 colspan=8 rowspan=3 align=center><font size=4 face="Arial" color="#ffffff"><b>Booking Date</b></font></td>
    <td colspan=3></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=4></td>
    <td colspan=3></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=4></td>
    <td colspan=3></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=4></td>
    <td width=134 colspan=5 rowspan=2 align=center><font size=2 face="Arial"><b>FROM</b></font></td>
    <td></td>
    <td width=134 colspan=2 rowspan=2 align=center><font size=2 face="Arial"><b>TO</b></font></td>
    <td colspan=3></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=4></td>
    <td></td>
    <td colspan=3></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td colspan=4 rowspan=3><INPUT type=TEXT name="pbdatefrom" size=19 maxlength=13 value="15022006"> <BR><font face="Arial,Helvetica" size="-2"> (19120007) </font><P></td>
    <td></td>
    <td colspan=5 rowspan=3><INPUT type=TEXT name="pbdateto" size=19 maxlength=13 > <BR><font face="Arial,Helvetica" size="-2"> (22032010) </font><P></td>
    <td colspan=2></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td></td>
    <td colspan=2></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td></td>
    <td colspan=2></td>
    </tr>
    <tr><td colspan=15 height=9></td></tr>
    <tr valign=top>
    <td height=9 colspan=5></td>
    <td width=55 rowspan=2 align=right><font size=2 face="Arial"><b>Sale Point</b></font></td>
    <td colspan=9></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=5></td>
    <td colspan=9></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td colspan=8 rowspan=2><SELECT name="pspname" size=1 > <OPTION selected value="ALL SALE POINTS"> ALL SALE POINTS <OPTION value="FACTORY"> FACTORY <OPTION value="GARDEN TOWN"> GARDEN TOWN <OPTION value="GULBERG"> GULBERG <OPTION value="ISLAMABAD"> ISLAMABAD <OPTION value="KARACHI"> KARACHI </SELECT></td>
    <td colspan=4></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td colspan=4></td>
    </tr>
    <tr><td colspan=15 height=9></td></tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td colspan=8 rowspan=3><SELECT name="PSRID" size=1 > <OPTION value="1"> 1 - SOHAIL ASLAM <OPTION value="2"> 2 - AKHTAR RIAZ <OPTION value="3"> 3 - SHAHID KHAN <OPTION value="4"> 4 - IBRAHIM MIAN <OPTION value="5"> 5 - ZULFIQAR KHAN <OPTION value="6"> 6 - AZHAR HUSSAIN <OPTION value="7"> 7 - ABDUL MUSTAFA <OPTION value="8"> 8 - SYED WAQAR ABBAS <OPTION value="12"> 12 - REHAN <OPTION value="13"> 13 - FARHAN <OPTION value="14"> 14 - SHAHINA AZIZ <OPTION value="15"> 15 - OMAR FAROOQ <OPTION value="16"> 16 - MUDASSAR ABBAS <OPTION value="17"> 17 - AMJAD ALI RAZI <OPTION value="18"> 18 - MIAN IBRAHIM <OPTION value="19"> 19 - KHURRAM SUMEER <OPTION value="20"> 20 - TAYYAB <OPTION value="21"> 21 - COMMON AT FACTORY <OPTION value="22"> 22 - COMMON AT GULBERG <OPTION value="23"> 23 - COMMON AT GARDENTOWN <OPTION value="24"> 24 - COMMON AT KARACHI <OPTION value="25"> 25 - ADEEL AHMED <OPTION value="26"> 26 - N. A. ABDULLAH <OPTION value="27"> 27 - AZIZ AHMED <OPTION value="28"> 28 - BATOOL FATIMA <OPTION value="29"> 29 - QURATUL AIN AZIZ <OPTION value="30"> 30 - SHAKIR KHAN <OPTION value="31"> 31 - SHAFAQ AROOJ <OPTION value="32"> 32 - NIHAL BAIG <OPTION value="33"> 33 - ALI ASGHAR <OPTION value="35"> 35 - MADIHA JALAL <OPTION value="34"> 34 - ALI FAROOQ <OPTION value="37"> 37 - MALIHA OMER <OPTION value="36"> 36 - KIPTIA <OPTION value="38"> 38 - SHAHZAD <OPTION value="39"> 39 - FAHAD <OPTION value="40"> 40 - FAKHAR SHAHZAD <OPTION value="41"> 41 - ZUBAIR IQBAL <OPTION value="42"> 42 - MUHAMMAD ABBAS <OPTION value="43"> 43 - ABDUL RAHEEM <OPTION value="44"> 44 - ALI RAZA <OPTION value="45"> 45 - MUHAMMAD SABIH <OPTION value="46"> 46 - NAGIEB AHMED <OPTION value="47"> 47 - RAJA TAHIR IRSHAD <OPTION value="48"> 48 - MOAZZAM KHAN <OPTION value="49"> 49 - HAJRA FAREED <OPTION value="50"> 50 - FAHIMUDDIN <OPTION value="51"> 51 - FARKHANDA <OPTION value="52"> 52 - JAWWAD MUNIR <OPTION value="53"> 53 - ARSALAN RIAZ <OPTION value="54"> 54 - HASEEB FAROOQ <OPTION value="55"> 55 - MISBAH GUL AWAN <OPTION value="57"> 57 - YASIR ILYAS <OPTION value="56"> 56 - FIRDOUS IQBAL <OPTION value="59"> 59 - TAHIR MEHMOOD <OPTION value="60"> 60 - ADIL HUSSAIN <OPTION value="61"> 61 - WASEEM AHMED RAJA <OPTION value="62"> 62 - SHAKEEL AHMED <OPTION value="63"> 63 - ABDUL MALIK M. OWAIS <OPTION value="64"> 64 - MIAN ZAHID IQBAL <OPTION value="65"> 65 - AHSAN MUSTAFA <OPTION value="66"> 66 - IRFAN ALI AWAN <OPTION value="70"> 70 - MEHMOOD <OPTION value="71"> 71 - SAJID <OPTION value="73"> 73 - AFZAL <OPTION value="75"> 75 - EHSAN ULLAH BAJWA <OPTION value="76"> 76 - SALE 3 <OPTION value="77"> 77 - SALE 4 <OPTION value="78"> 78 - SALE 5 <OPTION value="79"> 79 - SALE 6 <OPTION value="80"> 80 - SALE 7 <OPTION value="81"> 81 - BILAL <OPTION value="82"> 82 - ALI ASGHAR <OPTION value="83"> 83 - RAJA BILAL KHALID <OPTION value="84"> 84 - M. Irfan Ali <OPTION value="85"> 85 - SALE 5 <OPTION value="86"> 86 - SALE 6 <OPTION value="87"> 87 - SALE 7 <OPTION value="88"> 88 - LATIF A. MALIK <OPTION value="89"> 89 - LATIF A. MALIK <OPTION value="91"> 91 - MAZHAR ALI <OPTION value="93"> 93 - NAEEM AHMAD <OPTION value="94"> 94 - SADIQ NAZIR <OPTION value="95"> 95 - MARIYUM SHEIKH <OPTION value="96"> 96 - ALLAH DITTA <OPTION value="97"> 97 - GHOUS BUX <OPTION value="98"> 98 - MUHAMMAD ZAHID <OPTION value="99"> 99 - sales-3-99 <OPTION value="100"> 100 - FAIZA SIDDIQ <OPTION value="101"> 101 - MUHAMMAD JAVAID <OPTION value="102"> 102 - SAQIB BAIG <OPTION value="103"> 103 - MUSTAFA TAJ <OPTION value="104"> 104 - RASHID IQBAL <OPTION value="105"> 105 - GHULAM SHABBIR <OPTION value="106"> 106 - SAMIULLAH <OPTION value="107"> 107 - BEENISH ATTIQ <OPTION value="108"> 108 - MUHAMMAD UMAIR <OPTION value="109"> 109 - SABIHA FATIMA <OPTION value="110"> 110 - DANISH AHMAD <OPTION value="111"> 111 - TANIA NASIR <OPTION value="112"> 112 - NASIR JAFFERY <OPTION value="113"> 113 - RAMISH FATIMA <OPTION value="114"> 114 - MUHAMMAD SABIR <OPTION value="115"> 115 - MAJID IMRAN <OPTION value="116"> 116 - SHAHID AZIZ <OPTION value="117"> 117 - ADNAN ZULFIQAR <OPTION value="118"> 118 - NADIA YAQOOB <OPTION value="119"> 119 - ASIM QAMAR <OPTION value="120"> 120 - ASHFAQ ALAM <OPTION value="143"> 143 - Nadra Anjum <OPTION value="123"> 123 - ASIF ALI <OPTION value="124"> 124 - OMAR FAROOQ <OPTION value="125"> 125 - ADEEL MUNIR <OPTION value="126"> 126 - sales-1-126 <OPTION value="127"> 127 - sales-1-127 <OPTION value="128"> 128 - sales-1-128 <OPTION value="129"> 129 - sales-1-129 <OPTION value="130"> 130 - sales-1-130 <OPTION value="131"> 131 - sales-1-131 <OPTION value="132"> 132 - sales-1-132 <OPTION value="133"> 133 - sales-1-133 <OPTION value="134"> 134 - sales-1-134 <OPTION value="135"> 135 - sales-1-135 <OPTION value="136"> 136 - sales-1-136 <OPTION value="137"> 137 - sales-1-137 <OPTION value="138"> 138 - sales-1-138 <OPTION value="139"> 139 - sales-1-139 <OPTION value="140"> 140 - sales-1-140 <OPTION value="141"> 141 - sales-1-141 <OPTION value="142"> 142 - IRAM <OPTION value="144"> 144 - Iram Shahzadi <OPTION value="145"> 145 - Rubina Jaffar <OPTION value="146"> 146 - Faiza Nazir <OPTION value="147"> 147 - AWAIS ASHRAF <OPTION value="148"> 148 - IMRAN ASHRAF <OPTION value="149"> 149 - RAHEEL AHMED <OPTION value="150"> 150 - TARIQ MASOOD <OPTION value="151"> 151 - SADIA <OPTION value="152"> 152 - AMAD ZIAFAT <OPTION value="153"> 153 - ABID HUSSAIN <OPTION value="154"> 154 - SUMAIRA SYEDA <OPTION value="155"> 155 - RIZWAN ASLAM <OPTION value="156"> 156 - ANUM MUSHTAQ <OPTION value="157"> 157 - ABDUR REHMAN ASIF <OPTION value="158"> 158 - FAHIM RAFIQUE <OPTION value="159"> 159 - ABBAS ALI <OPTION value="160"> 160 - ATTA ULLAH <OPTION value="161"> 161 - TALIB MUKHTAR <OPTION value="162"> 162 - ASIM MUSHTAQ <OPTION value="163"> 163 - AZHAR HUSSAIN <OPTION value="164"> 164 - TAJAMUL BUTT <OPTION value="165"> 165 - LATIF MALIK <OPTION value="166"> 166 - WARIS ALI <OPTION value="167"> 167 - SAHIBZADA ABDUL SATTAR <OPTION value="168"> 168 - KASHIF NADEEM <OPTION value="169"> 169 - SHAISTA MIRZA <OPTION value="170"> 170 - QAISAR MEHMOOD <OPTION value="171"> 171 - NAZAM MUHAMMAD <OPTION value="172"> 172 - SAJJAD AHMAD <OPTION value="173"> 173 - MUHAMMAD AZIM <OPTION value="174"> 174 - Muhammad Waqar <OPTION value="175"> 175 - KEHAN <OPTION value="176"> 176 - FAISAL NADEEM <OPTION value="177"> 177 - SAJID NAZIR <OPTION value="178"> 178 - MUHAMMAD ALI <OPTION value="179"> 179 - GHULAM SHABBIR <OPTION value="180"> 180 - MUHAMMAD ARSHAD <OPTION value="181"> 181 - AAMIR ABBAS <OPTION value="182"> 182 - FAHAD AQEEL <OPTION value="183"> 183 - RANA MUBASHIR <OPTION value="184"> 184 - BILAL SHEIKH <OPTION value="72"> 72 - SR <OPTION value="74"> 74 - SR74 <OPTION value="185"> 185 - MUHAMMAD SOHAIB <OPTION value="186"> 186 - MUHAMMAD IBRAHIM <OPTION value="187"> 187 - MUHAMMAD WAQAS <OPTION value="188"> 188 - RAGHIB JAVAID <OPTION value="189"> 189 - SAIMA SAYYED <OPTION value="190"> 190 - MUHAMMAD AFZAAL <OPTION value="191"> 191 - TAYYABA SHAHEEN <OPTION value="192"> 192 - MISS HUMA <OPTION value="193"> 193 - MUNEEB ASLAM <OPTION value="194"> 194 - MUHAMMAD NAEEM <OPTION value="195"> 195 - SHAHER BANO <OPTION value="196"> 196 - SHAISTA <OPTION value="197"> 197 - HASHAM BAIG <OPTION value="198"> 198 - WAQAS MUGHAL <OPTION value="199"> 199 - FARAH NAEEM <OPTION value="200"> 200 - ALMINA <OPTION value="201"> 201 - FAZLULLAH <OPTION value="202"> 202 - TANYA KARIM <OPTION value="203"> 203 - IMRAN GILLANI <OPTION value="204"> 204 - KHAWAR QAYYUM <OPTION value="205"> 205 - JAWAD MUNAWAR <OPTION value="206"> 206 - ARSHAD FAROOQ </SELECT></td>
    <td colspan=4></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td colspan=4></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td colspan=4></td>
    </tr>
    <tr><td colspan=15 height=19></td></tr>
    <tr valign=top>
    <td height=9 colspan=2></td>
    <td colspan=9 rowspan=3><SELECT name="PSALE" size=1 > <OPTION value="D"> D <OPTION value="T"> T </SELECT></td>
    <td colspan=4></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=2></td>
    <td colspan=4></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=2></td>
    <td colspan=4></td>
    </tr>
    </table>
    </center>
    </body>
    </form>
    </html>
    what should be the value of hidden_run_parameters ????
    i have also created 3 parameters in report p_action, p_User_connect and p_servername
    i am using the procedure below to call the report
    PROCEDURE show_report(pRptServer varchar2,pRptObj varchar2,pRptFormat varchar2,pRptPath varchar2,pRptParameter varchar2,pParamForm varchar2) IS
         repid REPORT_OBJECT;
         rep_status varchar2(30);
         v_rep VARCHAR2(100);
         vjob_id varchar2(100);
         v_reportserver varchar2(50):=pRptServer;
         v_runformat varchar2(50):= pRptFormat;
         hidden_action varchar2(1000);
         v_report_other VARCHAR2(4000) :='';
    c char;
    c_old char;
    c_new char;
    begin
                   repid := FIND_REPORT_OBJECT(pRptObj);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,pRptPath);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_reportserver);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,v_runformat);
                   --SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,pRptParameter||' paramform='||pParamForm);
                   -- code for pfaction
                   hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME);
                   hidden_action := hidden_action ||'&destype='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE);
                   hidden_action := hidden_action ||'&desformat='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT);
                   hidden_action := hidden_action ||'&userid=' ||GET_APPLICATION_PROPERTY(username)||'/'||GET_APPLICATION_PROPERTY(password)||'@'||GET_APPLICATION_PROPERTY(connect_string);
                   hidden_action := hidden_action ||'&'||v_report_other;
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'pfaction='||hidden_action||' '||pRptParameter||' paramform='||pParamForm);
                   v_rep := RUN_REPORT_OBJECT(repid);
                   vjob_id := substr(v_rep,length(v_reportserver)+2,length(v_rep));
                   rep_status := REPORT_OBJECT_STATUS(v_rep);
                   while rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
                   loop
                        rep_status := REPORT_OBJECT_STATUS(v_rep);
                   end loop;
                   if rep_status = 'FINISHED' then
                        WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id||'?server='||v_reportserver||'','_blank');
                        message('Finished');
                   else
                        message('Error');
                   end if;
    end;
    Your urgent reply will be highly appreciated.........
    Edited by: Zahid Rahim on Mar 22, 2010 11:10 AM

  • Calling Report from Oracle form 11g

    I am new to Forms 11g, trying to call report from Oracle forms 11g .
    I want to call report from oracle forms, but its giving error.
    Below is the code
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('empreport'); -- report node in forms builder
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
    set_report_object_property ( repid, report_filename, 'empreport.rdf' ); -- report name
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'RptSvr'); -- report server name
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    if
    rep_status = 'FINISHED'
    then
    WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/dtd/rwservlet/getjobid='||v_rep||'?server='||'RptSvr','_blank');
    else
    message ( 'error while running reports-object ' || error_text );
    message ( ' ' );
    clear_message;
    end if;
    end;
    Above code giving following error :
    Unable to connect to report server RptSvr
    I think my report servername is wrong
    Where to find report server name in 11g.
    I am Using weblogic server, so can i give weblogic server name
    Thanks in advance.
    Edited by: parapr on Aug 17, 2012 1:52 AM
    Edited by: parapr on Aug 17, 2012 3:21 AM

    Hi,
    You have to have the report server
    a. Installed and configured
    b. Running.
    See
    http://docs.oracle.com/cd/E21764_01/bi.1111/b32121/pbr_strt001.htm
    http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_verify004.htm
    http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_conf003.htm#i1007341
    If you are using rwservlet then you will find the name from the Configuration file referred to in the last link.
    Cheers,

  • Calling Report From Oracle Forms

    Hi
    I am calling this one report from oracle forms, I am using global temporary table to run that report. I am first inserting data into the temporary table through oracle form and then i am calling report in that form to view the data in that temporary table. The problem is, we can not view the data of an other session if we are using temporary table. When i call report from that form a new session get created due to which i can not see the data. Is there any method of calling report from oracle form that a same session is used to run the report?
    Thanks.

    As you mention Forms and Reports do not share the database session. I had the same problem and resolved it using record groups and DATA_PARAMETER to transfer data from Forms to Reports. You could also read the Note 110495.1 on Metalink to find useful information regarding this issue.
    Adi

  • Report without Parameter form

    I would like to generate report without Parameter form being displayed.How to do?

    If you use Forms to pass parameters to Reports, use add_parameter('PARAMFORM',text_parameter,'NO'). This will "disable" the parameter form.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by keyurashu:
    I would like to generate report without Parameter form being displayed.How to do?<HR></BLOCKQUOTE>
    null

  • How to call Reports in oracle forms 10g

    Dear All,
    How to call Reports in oracle forms 10g.
    I am using Oracle Forms 10g Reports 10g and Database 10 and and Operating system Windows XP.
    Please give me the Solution.
    Thanks and Regards,
    Faziludeen

    Hi Omkar,
    Please check the following code.
    DECLARE
      repid REPORT_OBJECT;
      v_rep VARCHAR2(100);
      rep_status VARCHAR2(20);
      plid ParamList;
    BEGIN
      plid := Get_parameter_List('tmp');
      IF NOT Id_Null(plid) THEN
      Destroy_parameter_List( plid );
      END IF;
      plid := Create_parameter_List('tmp');
      add_parameter(plid,'p_parameter',text_parameter,to_char(:POLICY.POLICY_NO));
      Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
      repid := FIND_REPORT_OBJECT('POL_REP');
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
      v_rep := RUN_REPORT_OBJECT(repid,plid);
      rep_status := REPORT_OBJECT_STATUS(v_rep);
      WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
      LOOP
      rep_status := report_object_status(v_rep);
      END LOOP;
      WEB.SHOW_DOCUMENT('http://'||'LENOVO-428E9E41'||'8889'||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
      '||'server=prod_report_server&P_parameter='||:POLICY.POLICY_NO||
      '&paramform=no');
    END;
    I am used to Start the Report sever   'Rwserver Server=prod_Report_Server Start'
    OracleAS Report Services
    Version :-   10.1.2.0.2
    Name    :-   prod_report_server
    Status  :-   Server is Shutting down
    Jobs in Queue  0
    Active Engines  0
    I got the Following Error when I trying to run the Report
    FRM-41211: Integration error:SSL failure running another product
    Thanks and Regards,
    Faziludeen

  • Calling reports from oracle forms 9i

    Hi
    I succeded to call reports from oracle forms but for I have a problem for only one report so I can't call it. this a part of the code I'm using :
    declare
         pl_id2 ParamList;
         pl_name2 VARCHAR2(30) := 'liste2';      
    v_rep VARCHAR2(100);
         rep_status VARCHAR2(20);
    begin
    pl_id2 := get_parameter_list(pl_name2);
    if (Id_Null(pl_id2) )THEN     
    pl_id2 := Create_Parameter_List(pl_name2);
    IF NOT Id_Null(pl_id2) THEN     
         add_parameter(pl_id2,'mois',TEXT_PARAMETER,:mois);
    END IF;
    end if;
    IF NOT Id_Null(pl_id2) THEN
    if(:mois is not null) then
    v_rep := RUN_REPORT_OBJECT('My_report',pl_id2);
    message(v_rep);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
    ELSE      
    message('Error when running report');
    END IF;
    end;
    the problem I've remarqued is that the function message(v_rep) is always returning the value :'repserver_0'.
    so when I execute the previous code I'm getting the 2 messages : 'repserver_0' and 'Error when running report'.
    Rq: the report my_report is running very well in report builder.
    does someone see where is the problem so can help me??
    thanx.

    Hi,
    This usually happens when the report fails on the report server. To obtain details on why a particular report has failed, use the showjobs page :
    http://server.domain:PORT/reports/rwservlet/showjobs?server=repserver
    and check the detailed error occured.
    This is logged as Bug:3017948. It is marked to be fixed in version 9.0.4 (Reports 10g) and also has one-off patches for version 9.0.2.3 on Windows platforms. If you need further assistance about patches, please raise a Service Request (SR) with Support via Metalink (http://metalink.oracle.com).
    Regards,
    -Bulent

  • Problem in Runinng a report with parameter form through Run_Report_object

    Hi,
    I am trying to run reports thought RUN_REPORT_OBJECT built-in. It works fine in following cases
    * Run a report without parameter Form
    * Run a report with parameter form by passing parameters through parameter
    List.
    But it did not o\work in following cases.
    * Run a report with parameter form by passing parameters through setting the
    REPORT_OTHER option of SET_REPORT_OBJECT_PROPERTY built-in.
    * Run a report with parameter form by using Reports own parameter form.
    In first case it says un able to run report and does not even submitt the job to the AS. In the second case its submits the job but when i show it with WEB.SHOW_DOCUMENT, it opens the parameter form and when i run the report after filling the parameters, it displays an error page.
    I am using 9iDS and 10g AS, and 10g Database. Please help me.
    Mohib.

    Mohib,
    Run a report with parameter form by passing parameters through setting the REPORT_OTHER option of SET_REPORT_OBJECT_PROPERTY built-in.[...] it says un able to run report and does not even submitt the job to the AS
    This sound like a user error to me and you want to check the parameters and maybe look at the Reports Queue Manager for the exact error message
    Run a report with parameter form by using Reports own parameter form.
    See:
    http://www.oracle.com/technology/products/forms/pdf/10g/frmrepparamform.pdf
    and
    http://www.oracle.com/technology/products/forms/pdf/10g/frmrepparamform.zip
    Frank

  • Reports Portlet Parameter Form LOV Format

    Hi,
    I have created several LOV's that I want to use in the Reports Portlet Parameter Form for running Oracle Reports, but the format I am choosing when creating the LOV's is not showing correctly on the parameter form. I am picking 'Check Box' and 'Radio Group' for several of the LOV's, but they are still displaying as Dropdowns on the parameter for. Am I doing something wrong here, can the parameter form show check boxes and radio buttons?
    Thanks

    hello,
    i am afraid the answer to both questions is 'no'. i would suggest you create some HTML/JSP parameter forms for your reports. the parameter form editor of reports is very limited and for more complex requirements we suggest using other tools (or the JSP web source of reports, which is available from 9i onwards).
    thanks,
    ph.

  • Disabling the 'Schedule' tab on the Reports Portlet Parameter Form

    Hi,
    I have deployed several Oracle Reports through Portal using the built in Reports Portlet Parameter Form and I was wondering if anyone knows how to disable the 'Schedule' tab located on this form. I would like users to run the reports but not to schedule them.
    Thanks

    Hi .
    I forgot to say that, the reports is an XML report .
    regards
    rajesh
    Hi.
    I am facing a problem with the parameter form in reports 10g. The number of parameters in this report are huge. After designing the parameter form , i save and close the report. Now if i re-open the report to do changes, the width and height of the parameter form is reduced (which i increased changed previously) and if i click on any field , that specific field is repositioning itself inside the (reduced)border lines.
    I request the forum to give a remedy on this issue.
    thanks in advance
    regards
    rajesh

  • How to call reports 6i or forms 6i directly from oracle procedure

    Hi,
    Hi,
    Env: 6.0.8.25.2 (forms 6i/reports 6i)
    Database: Oracle 10g r2
    We are running a client server environment and not web based.
    I want to run the forms 6i or reports 6i directly from a database procedure/function and not by creating a procedure inside a form and then call a report.
    Looking for calling forms6i/reports 6i directly from sql*plus commands used inside the PLSQL database procedure/function. (Just like we create a stand alone package/procedure/function).
    I have developed many forms and reports and very comfortable in calling reports from forms 6i.
    My question was completely different but looks like i was not able to explain properly:
    I want to call the forms 6i or reports 6i directly from sqlplus* prompt and through stand alone oracle database procedure/function (procedure created directly in database but not as a program unit within form or report).
    There is a requirement to call the form through database scheduling by passing fixed parameters and then generate the report pdf and email automatically to various users.
    Also, is there any way to schedule a report automatically so that the report runs automatically in the scheduled time and send out reports to the users. I have developed a email program but looking for scheduling the report or forms 6i.
    Thanks,
    Srinivas

    Hi,
    There are couple of existing reports and forms developed in 6i and users are using them when required.
    For certain MIS reports, management wants them to be generated on daily/weekly basis and email to be sent to them as PDF files.
    Have a program which will convert to PDF and email to users but not able to trace on how to call the forms 6i or reports 6i and pass the report parameters so that the report is called directly through pl/sql so that i can schedule them.
    All the forms and report executables are located on server1 and database server is located in server2 and running on client/server architecture.
    Database version is 10g r2 and Forms/Reports version is 6i.
    Any code samples would be of great use.
    Srinivas

  • Calling Report from a Form

    Hi All,
    I tried to call a report from a form (using this form as a parameter form)but unfortunately it is not working out for me. I used the run_product built in.
    Could someone examine my code and tell me what is wrong?
    DECLARE
    pl_id ParamList;
    BEGIN
    pl_id := Get_Parameter_List('OPEN');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('OPEN');
    Add_Parameter(pl_id,'P_BUNIT',TEXT_PARAMETER, :BLOCK3.BUNIT);
    Add_Parameter(pl_id,'P_AGRMT',TEXT_PARAMETER,:BLOCK3.AGRMT);
    add_parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'SCREEN');
    add_parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    run_product(REPORTS, 'APRIL11', SYNCHRONOUS,RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    null

    Olan,
    Your code looks good, and it should work.
    Maybe you should check your report to make sure it is under oralce report path, user-defined parameters in the report are same name, type,lengh as in the form parameters, and correct system parameters.
    good luck.
    Jingning

  • Calling report from a form with user input parameters

    Hello,
    I am new to Oracle reports. I have an application coded in 6i. I am currently running the application in Oracle Forms Builder 9i. There are also few reports which are called from the forms. Since the application was developed in 6i, the report was called using Run_Product. The forms pass a set of user parameters to the report using the parameter list pl_id. The syntax used was Run_Product(REPORTS, 'D:\Report\sales.rdf', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL);
    I learnt that the Run_product doesnt work in 9i and we need to use run_report_object. I have changed the code to use run_report_object and using web.show_document () i am able to run the report from the form. There are 2 parameters that need to be passed from forms to reports. The parameters are from_date and to_date which the user will be prompted to enter on running the form. In the report, the initial values for these parametes are defined. So, the report runs fine for the initial value always. But when i try to change the user inputs for the form_date and to_date, the report output doesnt seem to take the new values, instead the old report with the initial values(defined in the report) runs again.
    Can someone give me the code to pass the user defined parameters to the report from the forms? I have defined a report object in the forms node as REPTEST and defined a parameter list pl_id and added form_date and to_date to pl_id and used the following coding:
    vrepid := FIND_REPORT_OBJECT ('REPTEST');
    vrep := RUN_REPORT_OBJECT (vrepid,pl_id);
    But this doesnt work.
    Also, Should the parameters defined in the forms and reports have the same name?

    Thanks for the quick response Denis.
    I had referred to the document link before and tried using the RUN_REPORT_OBJECT_PROC procedure and ENCODE functions as given in the doc and added the following SET_REPORT_OBJECT_PROPERTY in the RUN_REPORT_OBJECT_PROC :
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,' FROM_DATE='||:BLK_INPUT.FROM_DATE||' TO_DATE='||:BLK_INPUT.TO_DATE||' paramform=no');
    But this also dint work. Please help me understand what difference does setting paramform=no OR paramform=yes make?
    In the report, i have defined the user parameters as FROM_DATE and TO_DATE respectively so that they match the form datablock BLK_INPUT items FROM_DATE and TO_DATE.
    My WHEN_BUTTON_PRESSED trigger is as below:
    DECLARE
    report_id report_object;
    vrep VARCHAR2 (100);
    v_show_document VARCHAR2 (2000) := '/reports/rwservlet?';
    v_connect VARCHAR2 (30) := '&userid=scott/tiger@oracle';
    v_report_server VARCHAR2 (30) := 'repserver90';
    BEGIN
    report_id:= find_report_object('REPTEST');
    -- Call the generic PL/SQL procedure to run the Reports
    RUN_REPORT_OBJECT_PROC( report_id,'repserver90','PDF',CACHE,'D:\Report\sales.rdf','paramform=no','/reports/rwservlet');
    END;
    ... and the SET_REPORT_OBJECT_PROPERTY code in the RUN_REPORT_OBJECT_PROC procedure is as:
    PROCEDURE RUN_REPORT_OBJECT_PROC(
    report_id REPORT_OBJECT,
    report_server_name VARCHAR2,
    report_format VARCHAR2,
    report_destype_name NUMBER,
    report_file_name VARCHAR2,
    report_otherparam VARCHAR2,
    reports_servlet VARCHAR2) IS
    report_message VARCHAR2(100) :='';
    rep_status VARCHAR2(100) :='';
    vjob_id VARCHAR2(4000) :='';
    hidden_action VARCHAR2(2000) :='';
    v_report_other VARCHAR2(4000) :='';
    i number (5);
    c char;
    c_old char;
    c_new char;
    BEGIN
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,report_file_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,report_server_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,report_destype_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,report_format);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,' FROM_DATE='||:BLK_INPUT.FROM_DATE||' TO_DATE='||:BLK_INPUT.TO_DATE||' paramform=no');
    hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
    hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
    hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY (report_id,REPORT_DESFORMAT);
    hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'||get_application_property(password)||'@'||get_application_property(connect_string);
    c_old :='@';
    FOR i IN 1..LENGTH(report_otherparam) LOOP
    c_new:= substr(report_otherparam,i,1);
    IF (c_new =' ') THEN
    c:='&';
    ELSE
    c:= c_new;
    END IF;
    -- eliminate multiple blanks
    IF (c_old =' ' and c_new = ' ') THEN
    null;
    ELSE
    v_report_other := v_report_other||c;
    END IF;
    c_old := c_new;
    END LOOP;
    hidden_action := hidden_action ||'&'|| v_report_other;
    hidden_action := reports_servlet||'?_hidden_server='||report_server_name|| encode(hidden_action);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction='||hidden_action||' '||report_otherparam);
    -- run Reports
    report_message := run_report_object(report_id);
    rep_status := report_object_status(report_message);
    IF rep_status='FINISHED' THEN
    vjob_id :=substr(report_message,length(report_server_name)+2,length(report_message));
    message('job id is'||vjob_id);pause;
    WEB.SHOW_DOCUMENT(reports_servlet||'/getjobid'||vjob_id||'?server='||report_server_name,' _blank');
    ELSE
    --handle errors
    null;
    END IF;
    In the code - " hidden_action := hidden_action ||'&'|| v_report_other; " in the RUN_REPORT_OBJECT_PROC procedure above, how do i make sure that the v_report_other variable reflects the user input parameters FROM_DATE and TO_DATE ??? v_report_other is initialised as v_report_other VARCHAR2(4000) :=''; in the procedure. Will ensuring that the v_report_other contains the user input parameters FROM_DATE and TO_DATE ensure that my report will run fine for the input parameters?
    Thanks in advance.
    Edited by: user10713842 on Apr 7, 2009 6:05 AM

Maybe you are looking for