Use of srw.set_page_navigation_html

hi
i want to use this package
to display report running in 9i web containing next and previous page
please help me its urgent
srw.set_page_navigation_html(type,'string');
in this package what i use in type and
what i use in string
please reply as soon as possible
[email protected]

Hi,
SRW.SET_PAGE_NAVIGATION_HTML
Description:This procedure specifies the scripting for navigation controls in page-streamed HTML/HTMLCSS report output. Syntax: SRW.SET_PAGE_NAVIGATION_HTML(type,’string’);
Parameters:
type Is SRW.FILE_ESCAPE orSRW.TEXT_ESCAPE. It indicates whetherthe string parameter is a filename or theHTML script text to be inserted.
string Is a filename or the HTML scripting code tobe inserted, depending on what was specifiedfor the type parameter. If left blank, thedefault Report Builder JavaScript is used todefine navigation controls on each page ofreport output.
Usage Notes:
If you choose to provide your own script for navigation controls, you must include twovariables in your script:
&TotalPages (total number of pages)
&file_name (the name of the output destination file; e.g., myreport).
Report Builder assigns values to these variables during formatting.
The height of the page navigation control frame is hard coded to 70 points without ascroll bar. The width of the frame is variable. If you want to use icons and images in thisframe, keep these dimensions in mind.
Property Palette To define this attribute using the Property Palette, set the PageNavigation Control Type and Page Navigation Control Value properties.
Monica

Similar Messages

  • Use of SRW.SET_MAXROW

    Hi Friends,
    By using SRW.SET_MAXROW we can limit the number of rows it should show on a page.
    1. Lets say i set this as SRW.SET_MAXROW('Q_1',17) and i have 19 rows for my query, then it is fetching only 17 rows in report and 2 rows are not displaying at all.
    i want to fetch remaining 2 rows in next page then what should i do for that ???
    Thanks in advance.
    Umesh

    984120 wrote:
    Hi Friends,
    By using SRW.SET_MAXROW we can limit the number of rows it should show on a page.
    Hi Umesh
    Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Oracle Forums FAQ
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>How to ask questions the smart way
    </ul>
    Following these simple guidelines will ensure you have a positive experience in any forum; not just this one!
    1. Lets say i set this as SRW.SET_MAXROW('Q_1',17) and i have 19 rows for my query, then it is fetching only 17 rows in report and 2 rows are not displaying at all.
    i want to fetch remaining 2 rows in next page then what should i do for that ???No need of srw.set_maxrow
    Just select the repeating frame of that query which frame's data you want to break and set the following property by selecting the frame and press F4
    Maximum Record Per Page --set property value 15Hope this helps
    Mark correct/helpful to help others to get right answer(s).*

  • Using SRW package to send a report via email

    Hi,
    Please can someone please help me resolve this issue I have been facing in using the srw package
    I have configured a report server and was trying to use the srw package to send a report out to our customers when there is an update on a particular table.
    I have succesfully use this same procedure to generate the same report to an output file and it was ok but anytime I try to generate the report as a mail and send to a DESNAME, i get mail server unavailable.
    Below is the procedure i try to execute:
    procedure testrep(new_name in varchar2) as
    myPlist SRW_PARAMLIST;
    myIdent SRW.Job_Ident;
    BEGIN
         myPlist := SRW_PARAMLIST(SRW_PARAMETER('',''));
    srw.add_parameter(myPlist,'GATEWAY','http://technorth4:7780/reports/rwservlet');
    srw.add_parameter(myPlist,'SERVER','rep_technorth4');
    srw.add_parameter(myPlist,'REPORT','c:\gens\name.rdf');
    srw.add_parameter(myPlist,'USERID','gens/[email protected]');
    srw.add_parameter(myPlist,'AUTHID','orcladmin/password1@orcl');
    srw.add_parameter(myPlist,'DESTYPE','MAIL');
    srw.add_parameter(myPlist,'DESFORMAT','PDF');
    srw.add_parameter(myPlist,'FROM','[email protected]');
    srw.add_parameter(myPlist,'DESNAME','[email protected]');
    srw.add_parameter(myPlist,'T1',new_name);
    myIdent := srw.run_report(myPlist);
    END;
    when i now start debugging i got this error:
    SQL> set serveroutput on
    SQL> exec srw.start_debugging
    * WELCOME TO EVENT-BASED-REPORTING API *
    * API-Version : 9i *
    * (C) Oracle Corporation, 2000 - 2002 *
    * Debugging turned ON **************************
    PL/SQL procedure successfully completed.
    SQL> exec testrep('TOPE');
    *** Length of Paramlist : 1
    OK : Parameter added : GATEWAY=http://technorth4:7780/reports/rwservlet
    *** Length of Paramlist : 2
    OK : Parameter added : SERVER=rep_technorth4
    *** Length of Paramlist : 3
    OK : Parameter added : REPORT=c:\gens\name.rdf
    *** Length of Paramlist : 4
    OK : Parameter added : USERID=gens/[email protected]
    *** Length of Paramlist : 5
    OK : Parameter added : AUTHID=orcladmin/password1@orcl
    *** Length of Paramlist : 6
    OK : Parameter added : DESTYPE=MAIL
    *** Length of Paramlist : 7
    OK : Parameter added : DESFORMAT=PDF
    *** Length of Paramlist : 8
    OK : Parameter added : [email protected]
    *** Length of Paramlist : 9
    OK : Parameter added : [email protected]
    *** Length of Paramlist : 10
    OK : Parameter added : T1=TOPE
    Starting run_report: building url
    *** Building URL (RUN_REPORT)
    OK : URL built :
    http://technorth4:7780/reports/rwservlet?SERVER=rep%5Ftechnorth4&REPORT=c%3A%5Cg
    ens%5Cname%2Erdf&USERID=gens%2Fgens%40technorth%2Eworld&AUTHID=orcladmin%2Fpassw
    ord1%40orcl&DESTYPE=MAIL&DESFORMAT=PDF&FROM=tope%5Folowosale%40gtbplc%2Ecom&D
    *** Submitting HTTP Request
    *** using URL
    :http://technorth4:7780/reports/rwservlet?SERVER=rep%5Ftechnorth4&REPORT=c%3A%5C
    gens%5Cname%2Erdf&USERID=gens%2Fgens%40technorth%2Eworld&AUTHID=orcladmin%2Fpass
    word1%40orcl&DESTYPE=MAIL&DESFORMAT=PDF&FROM=tope%5Folowosale%40gtbplc%2Ecom&DES
    OK : Request submitted - Return stream : <?xml version = '1.0' encoding =
    'ISO-8859-1' standalone = 'yes'?>
    <serverQueues>
    <error code="50138"
    component="REP" message="Mail server is not available"/>
    </serverQueues>
    OK : Request submitted - Length of stream : 182
    *** XML-Parsed - Following Structure discovered :
    *** Checking elements!
    serverQueues ()
    *** Checking attributes!
    error
    *** Checking attributes!
    __code = 50138
    __component = REP
    __message = Mail server is not available
    *** Finished Parsing XML
    Getting value for element: job
    Getting value for element: error
    *** Requesting value for Attribute error.component [REP]
    Getting value for element: error
    *** Requesting value for Attribute error.code [50138]
    Getting value for element: error
    *** Requesting value for Attribute error.message [Mail server is not available]
    REP-50138:Mail server is not available
    BEGIN testrep('TOPE'); END;
    ERROR at line 1:
    ORA-20999:
    ORA-06512: at "GENS.SRW", line 284
    ORA-06512: at "GENS.SRW", line 815
    ORA-06512: at "GENS.TESTREP", line 17
    ORA-06512: at line 1
    Please can someone help me with this. I can connect to the mail server using the telnet mailservername port,i get a 220 message with ***** .
    I have updated d report configuration file with the mailserver name, and d proxyinfo.xml too.I put it to bypass proxy for d mail server address and also inlclude the proxy ip and port.
    Kindly assist me as it is urgent.
    Thank you.

    You are in the wrong forum. Please try the Reports.<br><br>
    Regards,
    Rob.

  • Using SRW api : strange error message

    Hi all,
    i am using the srw api to generate reports out of the database. here is the procedure i have written:
    CREATE OR REPLACE PROCEDURE Create_Reports
    AS
    v_paralist PORTAL.SRW_PARAMLIST;
    v_ident     PORTAL.SRW.JOB_IDENT;
    BEGIN
    v_paralist := PORTAL.SRW_PARAMLIST(PORTAL.SRW_PARAMETER('',''));
    PORTAL.srw.add_parameter(v_paralist, 'GATEWAY', 'http://my.ias_machine.com/reports/rwservlet');
    PORTAL.srw.add_parameter(v_paralist, 'SERVER', 'repserver);
    PORTAL.srw.add_parameter(v_paralist, 'DESFORMAT', 'PDF');
    PORTAL.srw.add_parameter(v_paralist, 'DESTYPE', 'FILE');
    PORTAL.srw.add_parameter(v_paralist, 'DESNAME', 'w:\transfer\pdfs\eventdriven_test.pdf');
    PORTAL.srw.add_parameter(v_paralist, 'REPORT', 'testreport.rdf');
    PORTAL.srw.add_parameter(v_paralist, 'USERID', 'username/password@exampledb');
    v_ident := portal.srw.run_report(v_paralist);
    END;
    The following error has occurred during execution:
    ORA-01849: hour must be between 1 and 12
    ORA-06512: at "PORTAL.SRW", line 290
    ORA-06512: at "PORTAL.SRW", line 774
    ORA-06512: at "PRAMA.CREATE_REPORTS", line 16
    ORA-06512: at line 2
    Neither in the report nor in another table which i use for this , i have a column with date or time datatype, so why does this error message occur?
    Do you have any ideas?
    Katharina

    If I run this report locally in reports builder it works without problems. Is it possible that the setting system time of the computer has something to do with this error message? After testing and troubleshooting the last days I found out that the report runs without problems only in the morning until 12.00 AM (?). In the afternoon and evenings I get this error message...
    Has anybody similar experiences?
    thank you!!

  • SRW.Run_Report is not working in Reports from 6i to 10g

    Hi,
    I have a report .rdf file that submits another .rdf report using the SRW.Run_Report. This code was working fine in Reports 6i version. We are upgrading the Reports 6i to Reports 10g, and did a small change in the call i.e., Removed the server parameter, and it is not working. This is in Oracle E-Business Suite environment. The first report is called as a Concurrent Program. Here is the call that was working fine in Reports 6i (i.e., Oracle Apps 11i environment)
    srw.run_report('report='||l_source_dir||l_parent_shortname||'.rdf'||
    ' p_user_id='||l_user_id||
    ' p_resp_id='||l_resp_id||
    ' p_appl_id='||l_appl_id||
    ' p_conc_request_id='||
    ' batch=yes mode=character destype=file desname='||l_destination_dir||l_filename||
    ' desformat=verp_i012 p_vendor_id='||dealer_list_rec.vendor_id||
    ' p_trx_date_from='||to_char(l_date_from, 'DD-MON-RRRR') ||
    ' p_trx_date_to='||to_char(l_date_to,'DD-MON-RRRR') ||
    ' p_period_name='||l_period_name ||                                                                      
    ' server='||l_server
    It has been modified to the following for Reports 10g (i.e., Oracle Apps R12 environment)
    srw.run_report('report='||l_source_dir||l_parent_shortname||'.rdf'||
    ' p_user_id='||l_user_id||
    ' p_resp_id='||l_resp_id||
    ' p_appl_id='||l_appl_id||
    ' p_conc_request_id='||
    ' batch=yes mode=character destype=file desname='||l_destination_dir||l_filename||
    ' desformat=verp_i012 p_vendor_id='||dealer_list_rec.vendor_id||
    ' p_trx_date_from='||to_char(l_date_from, 'DD-MON-RRRR') ||
    ' p_trx_date_to='||to_char(l_date_to,'DD-MON-RRRR') ||
    ' p_period_name='||l_period_name
    );

    Thank you for your reply.
    Yes, it's done using MOD-PLSQL version 10.1.2.0.2.
    I did as you said: compared the 2 generated HTML files. It's not that it doesn't generate all tags. It generates all tags but some of them are different, that is it screws them up.
    Here it is some example code.
    For example, in 9i I have the following code:
    div id=div_plus_GENERALE style="cursor:hand; display:none;"
    <td> width=8 </td>
    <td id=butt align=left style="font-family:Verdana,Tahoma;
    font-size: 10px; font-weight: 400; color: '#ffffff';
    background-color: '';
    "onClick="if (butt_clicked) butt_clicked.style.cssText=restore_butt_style;
    butt_clicked=this; restore_butt_style=butt_off_lit;
    this.style.cssText=butt_on_lit;
    var x = document.getElementById('Freccia_' + freccia_old);
    x.style.display = 'none';
    Freccia_sitointer_anagrafica_anagrafica_cliente_punto.style.display='block';
    freccia_old='sitointer_anagrafica_anagrafica_cliente_punto';"
    onMouseOver="this.style.cssText=butt_on_lit;"
    onMouseOut="if (butt_clicked != this) this.style.cssText=butt_off_lit;">Anagrafica Fornitura</td></tr>
    <tr>
    <td height=2></td>
    </tr>
    </table>
    In 10g the HTML code looks like this:
    div id=div_plus_GENERALE style="cursor:hand;"
    <td width=8> </td>
    <td align=left style="font-family:Verdana,Tahoma;
    font-size: 10px; font-weight: 400; color: '#ffffff';
    background-color: '';">
    <a href="sitointer.anagrafica.anagrafica_cliente_punto target="frameCenter"
    onClick="var x = document.getElementById('Freccia_' + freccia_old);
    x.Style.visibility='hidden';
    Freccia_sitointer_anagrafica_anagrafica_cliente_punto.Style.visibility='visible';
    freccia_old='sitointer_anagrafica_anagrafica_cliente_punto';"
    onMouseOver="this.style.cssText=butt_on_lit;"
    onMouseOut="if (butt_clicked != this) this.style.cssText=butt_off_lit;">Anagrafica Fornitura</a></td></tr>
    <tr>
    <td height=2></td>
    </tr>
    </table>
    At this point I don't know what should I investigate next.
    Thank you very much.
    Daniela

  • SRW.DOSQL NOT WORKING IN REPORTS 11G

    Hi Experts
    I have certain coding in my report which makes use of SRW.DOSQL and the queries are written in reports 11g.
    Kindly let me know the alternative in reports 11g as the opening balance field is not bringing the value as attached in the report.
    I am attaching the rdf file for reference.
    Kindly let us know the solution for the same.
    Regards

    Your not seeing the built in package for some reason.
    Maybe they are missing on your Linux machine.
    Reinstall reports there? Examing your environment variables?
    Is that rwrun.jar anywhere?

  • Convert a field to_number and use formatmask

    I like to convert a field into a number SRW.Set_field(0, to_number(:fieldname));
    as well create this mask 'N.NNN.NNN.NNN.NNN.NNN'
    SRW.SET_FORMAT_MASK('N.NNN.NNN.NNN.NNN.NNN'); or SRW.ATTR.FORMATMASK := 'N.NNN.NNN.NNN.NNN.NNN';
    All this srw doesn't work, why?

    The field doesn't have a datatype. The field's datatype is picked up from the column that is its source. Therefore, the datatype of a field is fixed at runtime and can't be changed.
    The srw.set_field_number() built-in only sets the value of a field, it doesn't change the field's type. If the datatype of the source column for a field was not "number" then the above call would have no effect.
    Likewise, the srw.set_format_mask() built-in only effects fields whose datatype is number.
    It sounds like what you're doing is trying to display both Character and Number values in a single field. The only way to do this with a single field is to base the field on a character column and do the formatting either in the SQL or PL/SQL that is the source of the column. This will limit you to the format masks available in both SQL or PL/SQL.
    Another way of doing it is to create 2 fields. One for the number value and one for the character value. Place the fields on top of each other and use format triggers to display one or the other. You can then use the srw.set_format_mask() against the number field if required.

  • Srw.run_report problem

    Hi all,
    i'm trying to run a report inside another report using srw.run_report routine, but i get the following error:
    REP-0110: Impossible to open file 'app/OA11i/NOCE/software.ds/noceappl/xxene/11.5.0/reports/I/XXENE_PROPACCPDRNOINT.rdf'
    the full command that i use is: srw.run_report('report=app/OA11i/NOCE/software.ds/noceappl/xxene/11.5.0/reports/I/XXENE_PROPACCPDRNOINT.rdf desname=DL006345.pdf destype=file desformat=pdf batch=yes P_PDR_ID=10015 P_DATA_ATTIVAZIONE=20-FEB-07 P_USE_SITE=LEGAL');
    Thanks for the help,
    bye
    Simona

    Hello Simona,
    Below is the definition of the error you are getting:
    Cause:     Report Builder tried to open the file shown and could not.  The possible causes of this error include the following:       
            Case 1:     The file was not found under the specified name in the specified location. 
            Case 2:     You lacked the necessary privileges to open the file. 
            Case 3:     A system error made it impossible to open the file. 
    Action:     You can take the following actions to correct this error:       
            If Case 1:     Make sure the file is stored in the specified directory under the specified name.  If it is not, change the directory and/or filename as appropriate. 
            If Case 2:     Make sure that you have the privileges necessary to open the file.  If you do not, change your privileges accordingly. 
            If Case 3:     Consult your operating system documentation or contact your system administrator.Hope this helps.
    -Marilyn

  • Srw.run_report problem with distribute=yes

    srw.run_report distribute=yes is not working for me. When running the report in rwbuilder or using command line rwrun, the distribution works fine.
    The problem is eg. a report on employee, with a group on Dept_no. Dept_no is used as distribution list &<dept_no> i the distriubution Dialog in the Report and repeat on G_dept.,
    The report wil generate a number of reports e.g. Dept_no_10.pdf, Dept_no_20.pdf and so on.
    BUT, the file name Dept_no_10.pdf is containing data from Dept 20, and the file name4d Dept_no_20.pdf contains data from Dept 20.
    So the question is, if the report can distinguish the number of files to generate and the correct name, how come the data is corrupt ?
    Any ideas is wellcome.
    Our installation is 11.2.0.2 and I'm using Reports 9.0.4.0.33.
    The use of srw.run_report distribute=no is working fine.
    The setup is to run from pl/sql calling srw.run_report
    claus
    try for a better example at this link : https://technology.amis.nl/wp-content/uploads/images/Reports%20Bursting.pdf
    This explains classic distribution/bursting of reports, and it works with rwbuilder/rwrun, bur not through srw.run_report

    Hello,
    If you copy the parameters displayed by srw.message and create a BAT file with these parameters
    and rwrun60 :
    rwrun60 <the paremeters displayed by srw.message>
    Does the report run correctly ?
    Regards

  • Srw.set_pdf_action( Calling Report)

    Hi Friends,
    I am successfully running this command to call report from another report in format trigger.
    I am using it:-
    srw.set_pdf_action(ACTION);
    but if ACTION is more char it doesn't take all and take only 259 and shows blank page.
    and when i correct that parameter in browser it work fine.
    Regards
    KarTiK PareeK.

    It looks like a problem in acrobat.
    I have an adobe acrobat, and I create a weblink URL for an area in a PDF file. I type in more than 300 characters for the URL, then re-edit the URL, I only see 259 characters.
    Thanks,
    -Shaun

  • How to Skip srw.run_report_failure

    Dear Sir,
    How to skip srw.run_report_failure from the loop of report execution.
    My problem is I have thousands of running report through the report by using the srw.run_report procedure.When ever any report fails my report server getting crash.So now i want to skip from this crash and run another report.My question is how to overcome the
    srw.run_report_failure error inside the for loop
    regards
    Mathew

    Dear All,
    Thanks for watching my Thread,problem got solved
    Regards
    mathew

  • ERROR:SRW Packages to call report from PL/SQL.

    Hi,
    I am facing the following problem while calling a report from PL/SQL Block.
    This is my code
    SRW.Start_Debugging;
         MYPLIST :=SRW_PARAMLIST(SRW_PARAMETER('',''));
         SRW.ADD_PARAMETER(myPlist,'GATEWAY'     ,'http:..............');
         SRW.ADD_PARAMETER(myPlist,'USERID'      ,'CGIA_AUTO/AUTO_DEV@ipaddress/ORCL');
         SRW.ADD_PARAMETER(myPlist,'SERVER'      ,'rep_cgian');
         SRW.ADD_PARAMETER(myPlist,'REPORT'     ,'PGIRCGIC047.rdf');
         SRW.ADD_PARAMETER(myPlist,'DESTYPE'     ,'file');
         SRW.ADD_PARAMETER(myPlist,'DESFORMAT'     ,'pdf');
         SRW.ADD_PARAMETER(myPlist,'DESNAME'     ,'\\ipaddress\CGIA_FormPrint\WatchFolder\OTHERS\'||Z.CS_REMARKS_BL||'_'||Z.CS_CHQ_NO||'_'||M_SEQ_NO||'-'||Z.CS_FLEX_07||'-'||Z.CS_FLEX_08||'.pdf');
         SRW.ADD_PARAMETER(myPlist,'PARAMFORM'     ,'NO');
         SRW.ADD_PARAMETER(myPlist,'P_1'     ,Z.CS_BANK_CODE);
         SRW.ADD_PARAMETER(myPlist,'P_2'     ,Z.CS_BAD_ACNT_NO);
         SRW.ADD_PARAMETER(myPlist,'P_3'     ,Z.CS_CHQ_BOOK_ID);
         SRW.ADD_PARAMETER(myPlist,'P_4'     ,Z.CS_CHQ_NO);
         SRW.ADD_PARAMETER(myPlist,'P_5'     ,Z.CS_CHQ_NO);
         MYIDENT:=SRW.RUN_REPORT(MYPLIST);
    MYSTATUS := SRW.REPORT_STATUS(MYIDENT);
         SRW.STOP_DEBUGGING;
    *** Length of Paramlist : 1
    OK : Parameter added : GATEWAY=http://...
    *** Length of Paramlist : 2
    OK : Parameter added : USERID=CGIA_AUTO/AUTO_DEV@ipaddress/ORCL
    *** Length of Paramlist : 3
    OK : Parameter added : SERVER=rep_cgian
    *** Length of Paramlist : 4
    OK : Parameter added : REPORT=PGIRCGIC047.rdf
    *** Length of Paramlist : 5
    OK : Parameter added : DESTYPE=file
    *** Length of Paramlist : 6
    OK : Parameter added : DESFORMAT=pdf
    *** Length of Paramlist : 7
    OK : Parameter added :
    DESNAME=\\ipaddress\CGIA_FormPrint\WatchFolder\OTHERS\CUST000115_102024_16--.pd
    f
    *** Length of Paramlist : 8
    OK : Parameter added : PARAMFORM=NO
    *** Length of Paramlist : 9
    OK : Parameter added : P_1=SDNB
    *** Length of Paramlist : 10
    OK : Parameter added : P_2=7000674257
    *** Length of Paramlist : 11
    OK : Parameter added : P_3=7000
    *** Length of Paramlist : 12
    OK : Parameter added : P_4=102024
    *** Length of Paramlist : 13
    OK : Parameter added : P_5=102024
    Starting run_report: building url
    *** Building URL (RUN_REPORT)
    OK : URL built :
    http://ipaddress/reports/rwservlet?&USERID=CGIA_AUTO%2FAUTO_DEV%40ipaddress%2FORCL&SERVER=rep_cgian&REPORT=PGIRCGIC047.rdf&DESTYPE=file&DESFORMAT=
    pdf&DESNAME=%5C%5Cipaddress%5CCGIA_FormPrint%5CWatchFolder%5COTHERS%5CCUST00
    *** Submitting HTTP Request
    *** using URL
    :http://ipaddress/reports/rwservlet?&USERID=CGIA_AUTO%2FAUTO_DEV%ORCL&SERVER=rep_cgian&REPORT=PGIRCGIC047.rdf&DESTYPE=file&DESFORMAT
    =pdf&DESNAME=%5C%5Cipaddress%5CCGIA_FormPrint%5CWatchFolder%5COTHERS%5CCUST0001
    OK : Request submitted - Return stream : <?xml version = '1.0' encoding =
    'ISO-8859-1' standalone = 'yes'?>
    <serverQueues>
    <error code="503"
    component="REP" message="You did not specify the name of a
    report."/>
    </serverQueues>
    Here in this case even though i specify the report id in the parameter,debugger message says that 'You did not specify the name'.
    The same code is working in some other server and giving the pdf output.
    Thanks in advance for any clarification.

    Hello Chirag,
    If you want to invoke and run a report from your PL/SQL code in the database, you can do so by installing and using the SRW package supplied with Reports. This package allows you to run parametrized report jobs on a specified Reports Server from your PL/SQL program and track the job status. Please take a look at the documentation for this package in the Publishing Reports manual on OTN at: http://download-west.oracle.com/docs/html/A92102_01/toc.htm.
    On the other hand, if you just need to invoke the Reports Builder program from your PL/SQL routine, you would need to use the default builtin for calling external applications from PL/SQL.
    Thanks,
    The Oracle Reports Team.

  • SRW server package error.

    Apps server 9i r2
    I am attempting to run reports using the SRW package which has bee installed in the database but I am getting an incompatibilty between the date format the SRW package is expecting and the date returned from invoking SRW.run_report when the package tries to convert the queued tag into its expected format. The code is;
    l_Paramlist := srw_paramlist(srw_parameter('','')) ;
    srw.clear_parameter_list(l_Paramlist);     
    srw.add_parameter(l_Paramlist, 'GATEWAY', 'http://app/reports/rwservlet') ;srw.add_parameter(l_Paramlist, 'SERVER', 'rep_app) ;
    srw.add_parameter(l_Paramlist, 'REPORT', 'd:/client/bin/REP0080.REP') ;
    srw.add_parameter(l_Paramlist, 'USERID', 'user/pwd') ;
    srw.add_parameter(l_Paramlist, 'DESTYPE', 'MAIL') ;
    srw.add_parameter(l_Paramlist, 'DESNAME', 'user, add) ;
    srw.add_parameter(l_Paramlist, 'DESFORMAT', 'HTML') ;
    l_Ident := srw.run_report(l_Paramlist) ;
    But I get the following error with trace turned on;
    Getting value for element: queued
    *** Requesting value for TAG queued [07/07/03 15:48]
    l_Paramlist SRW_PARAMLIST ;
    ERROR at line 2:
    ORA-01849: hour must be between 1 and 12
    ORA-06512: at "SYS.SRW", line 290
    ORA-06512: at "SYS.SRW", line 774
    ORA-06512: at line 19
    It appears that the SRW package only accepts dates in the format of MM/DD/YY HH:MI AM which is a problem because the XML is returning the date in the format of DD/MM/YY HH24:MI.
    If the problem is that the application server is not setup properly what should I do to rectify the problem.

    dassdhan wrote:
    Hi,
    We are using Form/Report 6i.
    I tried "SRW.RUN_REPORT in After Report Trigger" with DESTYPE=FILE and it run & created FILE successfully.
    But when I tried with DESTYPE=SCREEN,it show error.
    Actually, we have 02 reports. We want to use SRW.RUN_REPORT in After Report Trigger in 1st report, so that 2nd report run automatically.
    I didn't find any solution in my previous query, but  sending again this query with the hope of getting solution.
    Kindly guide me.
    Thanks.
    Dass.
    Call/Run Report from a Report! 
    Please check the restriction of
    SRW.RUN_REPORTS
    1    If you want parameter values that are entered on the Runtime Parameter Form to be passed in the RWRUN60 string, you must call SRW.RUN_REPORT after the before form trigger.
    2   The string that is specified for or passed to this procedure must follow the syntax and case-sensitivity rules for your operating system.
    3    No userid should be specified for the SRW.RUN_REPORT procedure.  The userid is inherited by the "calling" report.
    4    If the parent report that invokes SRW.RUN_REPORT is run in batch, then DESTYPE can only be File, Printer, Sysout, or Mail.  Otherwise, DESTYPE can be File, Printer, or Mail.
    5    If SRW.RUN_REPORT is used in the PL/SQL for a button, the Runtime Parameter Form will not appear by default when the button is selected.  If you want the Runtime Parameter Form to appear, you must specify PARAMFORM=YES in the call to SRW.RUN_REPORT.

  • Batch Updates Using Oracle

    Hi,
    We are currently having problems saving data using Weblogic 6.1 sp1 and Oracle
    8.1.6. we are using Weblogic JDBC Drivers for Oracle. The data we are saving is to
    the extent of 25-50,00 records. When we are trying to this we are getting transaction
    timeout errors since this saver process is taking more than 30 seconds which is out
    rimeout limit.
    Can we do this using Batch updates?? Any code snippets or pointers will be grealty
    appreciated.
    Thank YOu,
    Sanjeev

    Can you be more specific?
    - What do you want to do exactly?
    - What are your OS and Reports versions?
    At first, it sounds a bit strange to use Reports for batch updates. A pl/sql procedure may be more suitable.
    You can schedule a report in several ways, e.g. via CRON on Unix (see RWRUN command in the 9iDS Help)).
    You can do the same via the database using the SRW package (see http://download-west.oracle.com/docs/html/A92102_01/pbr_evnt.htm#1005558 )
    You can use the Reports Queue Manager.

  • SRW.GH_CREATE

    Hi ALL,
    can anyone please tell me how to use the SRW.GH_CREATE function, within the reports and where we can use them , as I have used them in the formula column and it gave me an error, saying it can't be used in formula columns and i tried the same code as a seperate local program unit and called it from the formula column which thrown the same error: can anyone please hint me where we can make use of this built in function .
    the code I wrote which already exists in the reports builder tool examples:
    FUNCTION group_cursor RETURN varchar2 IS
    gc_dept SRW.GROUP_HANDLE;
    gc_emp SRW.GROUP_HANDLE;
    l_check_char VARCHAR2(32676);
    l_val_char VARCHAR2(20);
    l_val_date DATE;
    l_val_number NUMBER(9);
    BEGIN
    --Create cursor on master group
    gc_dept := SRW.GH_CREATE('g_dept');
    --Create cursor on child group for each record of master group
    gc_emp := SRW.GH_CREATE(gc_dept,'g_emp');
    LOOP
    BEGIN
    SRW.GH_NEXT(gc_dept);
    SRW.GH_GET_VALUE(gc_dept,'deptno',l_val_number);
    --CHR(10) is the enter key to give line break for proper formatting
    l_check_char := l_check_char||'Department:'||TO_CHAR(l_val_number)||CHR(10);
    LOOP
    BEGIN
    SRW.GH_NEXT(gc_emp);
    SRW.GH_GET_VALUE(gc_emp,'ename',l_val_char);
    SRW.GH_GET_VALUE(gc_emp,'hiredate',l_val_date);
    --RPADing is done for proper formatting
    l_val_char := RPAD(l_val_char,15);
    l_check_char := l_check_char||l_val_char||l_val_date||CHR(10);
    EXCEPTION
    WHEN SRW.NO_DATA_FOUND THEN
    EXIT;
    END;
    END LOOP;
    EXCEPTION
    WHEN SRW.NO_DATA_FOUND THEN
    EXIT;
    END;
    END LOOP;
    RETURN l_check_char;
    END;
    Regards,
    IQ

    You can use summary columns. These are created in the group above the one that you are summarizing. So you won't get the error message about referencing at the wrong frequency

Maybe you are looking for

  • Steps for down payment to vendor

    Hi SAPians, Can anyone throw some light on the steps to configure downpayments to vendors with T.Codes. I have no idea about this. Thanks in advance. Vijay

  • Want to modify the Global Database Name in Oracle 10g R2

    Hi All, I have a global database name like GS77.UK.ORA.COM , I want it to be just GS77.What are the possible workarounds for modifying this. Thanks & Regards, Gaurav S.

  • All firefox components have disappeared. Has anyone seen this issue or have a solution?

    Since last few days, my firefox browser does not display any components like address bar, buttons, even the area where the webpage is displayed. I think there was a firefox update that took place before this happened but I am not sure. What have I tr

  • Down Load Flashplayer issue?

    I'm trying to download flashplayer 8 to watch my daughters soccer match at UNLV.  The UNLV site says I need to download flash 8 abd directs me to the adobe website.  I downloaded, it says successful but then when I return to gametracker it sends me b

  • How to Snap to a point to measure it and create a line.

    Hello, i'm new to Illustrator and would like to know how to snap to a point. i have a rectangle and would like to measure the exact distance between the edge of the rectangle to the edge of another rectangle. also, how do i create a line, starting wi