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

Similar Messages

  • Calling report from form and after parameter form trigger

    Hi, I've also posted to this to the reports forum but because it works from Reports Builder it may be a forms issue which is why I'm x-posting. Apologies.
    I have a report that creates a file, desname is set in the after parameter form trigger (it uses one of the parameter values).
    The problem is file is not created using the path and filename set in the trigger, the file is created in the bin folder with the name account_by_service_type.txt (account_by_service_type.rdf is the report definition).
    If the desname is set in the before parameter form AND a field with the source=desname is added to the parameter form then the file will be created with the correct path and name however it won't have the relevant parameter incorporated into the file name obviously.
    I've noticed in other reports that where the desname is being set in the after parameter form that I've had to pass the desname from the form but obviously I cannot do that here either.
    Am I missing something obvious?
    Regards
    Sean

    Hi Frank,
    It's WebForms. Below is the code:
    -- call from menu item
    run_report_object_proc(TRUE,'accounts_by_service_type.RDF',null,FILE,'delimited','paramform=yes');
    -- run_report_0bject procedure
    PROCEDURE run_report_object_proc (p_screen IN BOOLEAN,
                        p_report_filename IN VARCHAR2,
                        p_desname IN VARCHAR2,
                        p_destype IN NUMBER,
                        p_desformat IN VARCHAR2,
                        p_paramform IN VARCHAR2)IS
    v_report_id     report_object;
    v_report     varchar2(100);
    v_job_id     varchar2(100);
    v_url          varchar2(1000);
    rep_status     varchar2(20);
    hidden_action     VARCHAR2(2000)     :='';
    BEGIN
    v_report_id := find_report_object( 'report2');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_FILENAME,p_report_filename);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESNAME,p_desname);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,p_destype);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,p_desformat);
    hidden_action := hidden_action||'&report='||GET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_FILENAME);
    hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESTYPE);
    hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESFORMAT);
    hidden_action := hidden_action||'&userid='||GET_APPLICATION_PROPERTY(username)||'/'||GET_APPLICATION_PROPERTY(password)||'@'||GET_APPLICATION_PROPERTY(connect_string);
    if p_desname is not null then
    hidden_action := hidden_action||'&'||p_paramform||'&desname='||p_desname;
    else
    hidden_action := hidden_action||'&'||p_paramform;
    end if;
    hidden_action := '/reports/rwservlet?_hidden_server=rserv1'||hidden_action;
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_OTHER, 'pfaction='||hidden_action||' '||p_paramform);
    -- SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_OTHER, 'paramform=no');
    v_report := run_report_object( v_report_id);
    IF p_screen THEN
         v_job_id := substr(v_report,instr(v_report,'_',-1)+1);
    rep_status:=report_object_status(v_report);
    while rep_status in ('RUNNING', 'OPENING_REPORT', 'ENQUEUED')
    loop
         rep_status:=report_object_status(v_report);
    end loop;
    if rep_status='FINISHED' THEN
         v_url := '/reports/rwservlet/getjobid'||v_job_id||'?server=rserv1';
              web.show_document(v_url,'_blank');
    else
         message(rep_status||' error running report');
    end if;     
    end if;
    END;
    -- report after parameter form trigger
    function AfterPForm return boolean is
    begin
    :desname := 'c:\service_type_'||:p_service_type||'_'||to_char(sysdate,'DDMMYYYY')||'.xls';
    return (TRUE);
    end;

  • After Parameter Form issue - Oracle Reports 10g

    Hi All,
    I have compiled an .rdf report to an .rep file and when
    I run this file I get the "REP-1247: Report contains uncompiled PL/SQL" message.
    The issue is I have built the report with dynamic XML customizations in the after parameter form trigger. When I remove this piece of code from the trigger both files .rdf and .rep works fine.
    Notice that the .rdf file works fine with the after parameter form XML customization.
    Please, can enyone advice me how can I have a .rep file that contains dynamic XML customization (using the srw.add_definition).
    Thank you in advance.

    In Your code there is a line:
    add_parameter(pl_id,'PARAMFORM',text_PARAMETER,'NO');
    which actually disables the report parameter form.
    The line:
    WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id||
    '?server=rep_mohahubkpcomp_ORaHOme_IAS'||'&userid=
    bedman/bedman@bedman'||'&paramform=yes','_blank');
    displays the report to which vjob_id refers. At this point the report is competed so the parameters userid and paramform are useless.
    Hope this helps.
    Regards
    Bekcic Aleksandar

  • Report Builder 6i returns ORA-01483 in after parameter form trigger ?

    Can anybody help me ?
    I've been working on a report with report builder 6.0.8.11.3,
    and whenever i run the report the after parameter form trigger
    returns REP-1401 and following ORA-01483.
    I've been trying to change the values of some user parameters
    from within the trigger code, none of them is a date or a number
    parameter, these are character variables who would be referenced
    lexically to change a table name dynamically when the trigger
    fires. Aditionally I'm using a cursor to obtain data and then
    modify the parameters.
    How can i get this thing to work ?
    Thanks in advance for your reply...

    hello,
    this might be related to the usage of number(1) as type/length
    of your parameter. this is a known problem. it should be solved
    by using e.g. number(2) as the type/length of your parameter.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Calling a report from another report in after parameter form

    hi,
    I'm calling Emp.rdf report with deptno as parameter and if the parameter is '10' then i have to call dept.rdf
    function AfterPForm return boolean is
    begin
    if :p_deptno =10 then
         srw.run_report('report=c:\reports\dept.rdf destype=screen p_deptno='||:p_deptno);
         end if;
    return (TRUE);
    end;
    But, now i'm getting an error as
    REP-1428: afterpform': Error while running SRW.RUN_REPORT
    Could you please help on this. thanks Bcj

    Hi , I have tried destype=file , didn't work for me. same time i tried with background=yes , that time report crashed.
    Actualy what i'm trying to do is,
    whenever the main report received an incorrect user input , i have to run a different report based on that particular input value and to show the users the actual input values.
    so the coding would be like this in the after parameter form,
    BEGIN
    IF :P_ID between 1000 and 5000 then
    --here i'm only changing the paramter value ,
    ELSE
    --here i'm calling the new report
    srw.run_report('report=c:\reports\emp.rdf batch=yes destype=file desname c:\reports\id.txt background=yes p_new_id='|| :p_id);
    return(true);
    END;
    Any help....

  • How to call a Report 10g from a parameter form..?

    Hello,
    pls i wanna know the procedure of :
    How to call a Report 10g from a parameter form..?
    regards,
    Abdetu..

    hopes it work for you.
    procedure get_report is
    pl_id paramlist;
    p_year varchar2(4);
    param_name varchar2(10) :'param';
    begin
    pl_id := get_parameter_list(param_name);
    if not id_null(pl_id_)then
    destroy_parameter_list(pl_id);
    end if;
    pl_id := create_parameter_list(param_name);
    p_year := year -- assign the value.
    add_parameter(pl_id,'p_year',text_parameter,p_year);
    execute_report('report_name',pl_id);
    end;

  • Difference between AFTER PARAMETER FORM and BEFORE REPORT in Reports 6i

    Hi Aii,
    What is the difference between AFTER PARAMETER FORM and BEFORE REPORT in Reports 6i.
    Thanks in Advance,
    Balu

    Hi Balu.,
    As per my findings the After Parameter is fired after the Parameters are given to the report and Before Report fires when the queries are parsed and data is fetched.
    Regards.,
    Vijay G

  • Difference between After parameter Form Trigger and before Report Trigger

    hi,
    Can some one tell me difference between After parameter form Trigger and Before parameter trigger.
    Why do we need both these trigger , why can't we use any one of them because after parameter trigger will obviously fire before report trigger and similarly before report trigger will fire after parameter form.
    Thanks
    Ram

    Hi,
    i will make it clear..!
    Actually, we have four type of triggers in reports..!
    Before Parameter -- fires before params are suppied to the calling report..
    After Parameter -- fires after params are suppied to the calling report..
    Before Report -- fires before report is generated..
    After Report. -- fires after report is generated..
    Before Report and After Report triggers are used for formatting the report design..
    like u can specify a report to be displayed based on a condition in the Before
    Report trigger and u can specify some backend updations in the after report trigger
    which fires after report is generated..

  • How 2 call a report 10g from a parameter form 10G

    Hello,
    pls. i need steps ,or docs how 2 run a report 10g from a parameter form ;
    Is it requireD for the Parameter form to call a report an Application Server no* ???*
    i had a previous  experience with the code due to run the report as follows:_
    DECLARE
       PARAM_ID                                 PARAMLIST ;
       PARAM_NAME                           VARCHAR2(30) := 'REPORT_PARAMETER';
       ALRT                                         NUMBER;
       ERR_TXT                                   VARCHAR2(1000);
       repid                                         REPORT_OBJECT;
       v_rep                                        VARCHAR2(100);
       v_REP_SERVER_NAME       VARCHAR2(200);
       v_ip                                          VARCHAR2(100);
    BEGIN
           PARAM_ID := GET_PARAMETER_LIST(PARAM_NAME);
           IF NOT ID_NULL(PARAM_ID) THEN
              DESTROY_PARAMETER_LIST('REPORT_PARAMETER');
           END IF;
           v_REP_SERVER_NAME := REP_SERVER_NAME;
    BEGIN
            SELECT  PARAMETER_VALUE
            INTO   v_ip
            FROM GENERAL_FIXED_PARAMETERS
           WHERE PARAMETER_ID = 'REPORT_SERVER_IP';
           EXCEPTION
           WHEN OTHERS THEN   
           Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);
           Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);     
    END;
           PARAM_ID := CREATE_PARAMETER_LIST(PARAM_NAME);
           ADD_PARAMETER(PARAM_ID,'PARAMFORM',TEXT_PARAMETER,'NO');   
           ADD_PARAMETER(PARAM_ID,'COPIES',TEXT_PARAMETER,:COPIES);
           ADD_PARAMETER(PARAM_ID,'P_DISPLAY',TEXT_PARAMETER,:DESTYPE);
           ADD_PARAMETER(PARAM_ID,'DESFORMAT',TEXT_PARAMETER,'pdf');
           ADD_PARAMETER(PARAM_ID,'group_id',TEXT_PARAMETER, :group_id);
             repid := find_report_object('WH_R01_GRP_ITEM');
             SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_rep_server_name);     
             v_rep := RUN_REPORT_OBJECT(repid,PARAM_ID);
      WEB.SHOW_DOCUMENT('http://'||V_IP||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?server='||v_REP_SERVER_NAME,'_blank');
    --  http://server_name:8889/reports/rwservlet?report=rep_name.rdf&paramform=yes&destype=CACHE&desformat=htmlcss&userid=id/pass@conn
    END;notice here the value of V_IP it is retrieved from the following table desc...
    The table desc   GENERAL_FIXED_PARAMETERS that i select from the values are as follows:_
    SQL>   DESC GENERAL_FIXED_PARAMETERS;
    Name                                      Null?    Type
    PARAMETER_ID                                       VARCHAR2(200)
    PARAMETER_VALUE                                    VARCHAR2(200)
    PARAMETER_DESC                                     VARCHAR2(200)
    MODULE                                             VARCHAR2(200)it's stored value is as follows:
    SQL>  select * from GENERAL_FIXED_PARAMETERS;
    PARAMETER_ID   PARAMETER_VALUE  PARAMETER_DESC   MODULE
    REPORT_SERVER_IP     rep_oraas_OracleAs_10gNotice here the value of the PARAMETER_VALUE is a string ; as if it's a generic value to be applied on any REPORT_SERVER_IP this value ...
    Where Should i retrieved or Get ???
    That was long time i can't remember pls help me 2 run my report what should id
    i searched the google but there is a missing link can u help and guide me it's urgent pls.
    if needed 2 start oc4j for reports , setting pathes ,fonts, enviroment file etc.
    The report object's property in the object navigator is as follow:_
    + Oracle Developer Integration node :
    File name : My_Report_name
    Execution Mode: Runtime
    Communication Mode : Synchronous
    Data Source data block :NULL
    + Reports node:
    Report Destination Type : FileThanks in advance,
    Regards,
    Abdetu...

    Thanks InoL for reply,
    REPORT_SERVER_IP is not correcti had doubted but wasn't sure of it...!
    My First Question was :
    Is it requireD for the Parameter form to call a report an Application Server no ???*the answer i found is Yessss
    Regards,
    Abdetu...

  • Using ref cursor in after parameter form in reports

    hi everyone,
    I have problem in usage of ref cursor in after parameter form. My actual requirement is I have user parameter :p_minval, :p_maxval. The values into these user parameters will be coming dynamically using sql_statement as shown below
    select min(empid),max(empid) into :p_minval, :p_maxval from emp where empid in (:p_emp);
    I will be writing this query in the after parameter form
    :p_emp is a lexical parameter as per me but the after parameter form is taking it as a bind variable. so I decided to define a ref cursor and then use it for retrieve. But when I use ref cursor it is returning pl/sql error 591 saying that this is not supported by client side can anyone help me plz..
    The following is the code i tried to use in after parameter form
    function afterPform return boolean is
    type rc is ref cursor;
    l_rc rc;
    sqlstmt varchar2(512);
    begin
    sqlstmt:='select min(empid),max(empid) from emp where empid in ('||:p_emp||')';
    open l_rc for
    select max(empid) from emp where empid in ('||:p_emp||')';
    fetch l_rc into :p_maxval;
    close l_rc;
    return(true);
    end;
    thanks & regards
    venkat

    I ran into the same problem. any body knows why?

  • 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.

  • PDF Not Displayed After Parameter Form Submitted

    We are moving a Forms6i application to web deployed Forms10g. Reports with parameter forms are being called using web.show_document(...) with the oracle.reports.utility.FrmReportsInteg JavaBean to hide database login credentials, as described in the Forms/Reports integration white papers.
    On our development server this process works as expected: the form displays a new browser window containing the parameter form with URL http://server/reports/rwservlet?userid=&report=report&desformat=pdf&destype=cache&paramform=yes, the parameter form is submitted, and the report output is displayed as a PDF embedded in the new browser window.
    However, on our customer's test server, after the parameter form is submitted, the Oracle Reports OracleAS Reports Services - Servlet Command Help page is displayed. Executing the rwservlet/showjobs command shows the job as being successfully completed. Clicking on the Job Name link redisplays the parameter form, and submitting this returns to the Oracle Reports OracleAS Reports Services - Servlet Command Help page.
    I have not been able to trace any other posts describing the same behavior on Metalink or OTN. Has anyone else seen this?
    Development server is OracleAS 10g (9.0.4.1) on Red Hat Linux, customer server is OracleAS 10g (9.0.4.1) on Solaris.
    Anyone explain this difference between the two servers?

    wonder if your problem is the host.domain name?
    It has to be the same name as the "host:" name that was entered in the "Register with Oracle Internet Directory" screen - while installing AS. Reason is that: when the .html is running, it has no connections to the AS, OID, SSO or anything else - it runs independentally. For it to go back into the oracle 'system', the full host.domain name is needed. So, if when the AS was installed, the "fully qualifed" domain name was not given, you may have problems and could need to reinstall AS again. (speaking from sad experience :) )
    regards

  • 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

  • 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

  • Reports-Runtime Parameter Form; another question

    hi!
    I would like to implement 2 user parameters in the runtime
    parameter form which depend on each other: with the first one you
    can select a special ressort and depending on the selection you
    made here you can select some keyword groups with the second one;
    but I don't know how the select statement for the second user
    parameter should look like, because it is not allowed to use
    'Bindevariablen' (sorry, don't know what they are called in
    english; this are the ones with the : in front of them):
    here is what I tried to do:
    parameter: P_1
    select rs_id, rs_name from tb_ressort union select 99999, 'alle
    Ressorts' from dual order by 1
    parameter: P_2
    select kwg_id, kwg_group from tb_keyword_group union select
    99999, 'ALL' from dual
    and here I wanted to add a where clause: where rs_id = :P_1
    but this doesn't work
    Any other ideas?
    thx in advance
    null

    Michaela (guest) wrote:
    : hi!
    : I would like to implement 2 user parameters in the runtime
    : parameter form which depend on each other: with the first one
    you
    : can select a special ressort and depending on the selection you
    : made here you can select some keyword groups with the second
    one;
    : but I don't know how the select statement for the second user
    : parameter should look like, because it is not allowed to use
    : 'Bindevariablen' (sorry, don't know what they are called in
    : english; this are the ones with the : in front of them):
    : here is what I tried to do:
    : parameter: P_1
    : select rs_id, rs_name from tb_ressort union select 99999, 'alle
    : Ressorts' from dual order by 1
    : parameter: P_2
    : select kwg_id, kwg_group from tb_keyword_group union select
    : 99999, 'ALL' from dual
    : and here I wanted to add a where clause: where rs_id = :P_1
    : but this doesn't work
    : Any other ideas?
    : thx in advance
    Hi Michaela,
    I think this will generally not work in reports parameter form;
    the parameter values are available first when the report is
    started, and the first point to reference them is in the
    after-parameter-form trigger. I think you get the message
    from the report builder 'REP-0781: Bind variables not allowed in
    the Select statement'.
    The only idea I have is to write a parameter form with Forms,
    with two LOV's attached to two items wich CAN reference each
    other. Then use add_parameter and run_product to start your
    report. This seems to be more complicated then using only
    Reports, but it isn't and it works.
    peter
    null

Maybe you are looking for

  • Reciept from PO - Why stock not updating

    Hi experts, I am making GR in a Plant (ISBW) but didnt mention the storage location so when i open the stock list it didnt show goods which i recieved. My question is where is my material or did any step i am missing between a goods reciept from PO a

  • Issue in CIF of delivery from R/3 to APO

    Hi Experts, I am facing an issue while transferring sales order from R/3 to APO. When any sales order is created in ECC, it is transferred to APO. My requirement is to restricted specific sales order type and respective deliveries from going to APO.

  • Error downloading Mountain Lion

    Hi all, I just bought the new imac (late 2012). I did a migration from a time machine backup and everything was ok. After that I changed my mind and tried to start with a fresh new installation of the Mountain Lion so I went to App Store. I tried to

  • Analytic workspace manager - simple count?

    I must be missing something in the Analytic workspace manger as all i want is a simple count of the rows. Its a basic type of calculation. I have a number of agreements that have a sum of the amount on a Yearly, QTR, Month, Day. I also need the numbe

  • Search fails if ampersand is in "Company" field

    I came across an interesting problem this morning when using my address book. Several of my contacts have an ampersand ("&") in the Company field, e.g. "G&M Landscaping" or "Nashua Harley Davidson & Buell". This morning, I typed "nashua" into the Add