Calling Reports from bc4j Web Application

Hello:
I want to call a report from my bc4j web application, basically I want the user to hit a button that
will process a report, any examples of how this can be done or if it can be done.

Hi Sheena,
This really depends on what you want to do. Submitting a report to the Reports Server is simply running a url in some variant of the following format:
http://<server>:<port>/reports/rwservlet?report=<reportName>&destype=cache&desformat=pdf
(Take a look at the Reports documentation for all the options).
The above will run the report and return the result to the browser in PDF format. If you just want to mail the output the URL would change to something like:
http://<server>:<port>/reports/rwservlet?report=<reportName>&destype=mail&desformat=pdf&desname=<[email protected]>
Robin.

Similar Messages

  • How to call a report from a web application

    Hi,
    I have a web server in wich is installed Reports 6i. My question is how can I call reports 6i to generate a pdf using a .rep file from my web application (built with java)?

    Hi,
    The below link will be very useful for one who need idea on calling Oracle Report from Java Application,
    http://www.oracle.com/technology/products/reports/htdocs/getstart/examples/reportswebservice/index.html
    Thanks & Rgds,
    M T

  • Aski user information while trying to print a report from a web application

    Hi,
            I am trying to print a report from web application. When I click on the print button then the page is redirected to the below link and asking for user information. See the below given link for more help.
    _http://<server><port>PlatformServices/service/app/logon.do?appKind=InfoView&service=%2FOpenDocument%2FappService.do&backContext=%2FOpenDocument&backUrl=%2Fopendoc%2FopenDocument.jsp%3FSERVICE%3D%252FOpenDocument%252FappService.do%26OBJIDS%3D20016421%26backUrl%3D%252Fcontent%252Fview.do%26PREF%3DmaxOpageUt%253D200%253BmaxOpageC%253D10%253Btz%253DUS%252FPacific%253BmUnit%253Dinch%253BshowFilters%253Dtrue%253BsmtpFrom%253Dtrue%253BpromptForUnsavedData%253Dtrue%253B%26CONTAINERID%3D6424083%26backContext%3D%252FPlatformServices%26LOC%3Den%26APPKIND%3DInfoView%26PVL%3Den%26ACTID%3D280%26service%3Dtimeout&backUrlParents=1&appName=OpenDocument&prodName=BusinessObjects+Enterprise&cmsVisible=false&cms=<servername>%3A6600&authenticationVisible=false&authType=secEnterprise&sso=false&sm=true&smAuth=secLDAP&persistCookies=true&sessionCookie=true&useLogonToken=true
    The instance Id for the report is generated successfully and the staus of the report is showing as success on Business Objects server side ie. crystal server side.
    And we are using OpneDocumentURL for generating the report. And the in the URL we are passing the "Instatce ID" and the "Token" which Both are generated successfully.

    Hi,
    This is a crystal report link which i am trying to print.
    The actual URL to generate a report is,
    http://servername:port/OpenDocument/opendoc/openDocument.jsp?&iDocID=22874532&token=systemname%4022874531JOLS2B40fr7cuAE522874529JVB36Yr3PswjM7IP
    but it is redirected to below URL,
    http://servername:port/PlatformServices/service/app/logon.do?appKind=InfoView&service=%2FOpenDocument%2FappService.do&backContext=%2FOpenDocument&backUrl=%2Fopendoc%2FopenDocument.jsp%3FPREF%3DmaxOpageUt%253D200%253BmaxOpageC%253D10%253Btz%253DUS%252FPacific%253BmUnit%253Dinch%253BshowFilters%253Dtrue%253BsmtpFrom%253Dtrue%253BpromptForUnsavedData%253Dtrue%253B%26service%3Dtimeout%26CONTAINERID%3D21700595%26backContext%3D%252FPlatformServices%26ACTID%3D279%26OBJIDS%3D22874532%26SERVICE%3D%252FOpenDocument%252FappService.do%26APPKIND%3DInfoView%26LOC%3Den%26PVL%3Den%26backUrl%3D%252Fcontent%252Fview.do&backUrlParents=1&appName=OpenDocument&prodName=BusinessObjects+Enterprise&cmsVisible=false&cms=systemname&authenticationVisible=false&authType=secEnterprise&sso=false&sm=true&smAuth=secLDAP&persistCookies=true&sessionCookie=true&useLogonToken=true
    -VinodC

  • How to call reports from JSP/HTML application

    Hi,
    We have a web application developed in JSP, I'd like to use Oracle Reports writer to generate reports (Since our back office application is developed using Oracle forms and Reports - 6i).
    I don't know how to place a request to Oracle Reports server and view the output. Can someone please help me with this.
    Thanks in advance.
    Best Regards,
    Karthik

    Hello Karthik,
    You have a web application developed in JSP. In that you are calling Reports though URL through your JSP.
    User views the source of the HTML page, in browser which is the result of execution of JSP. So Client will see the
    HTML output, but not the real JSP.
    Still if you donot want to hard code the user/password in file, have a form and ask client to enter user/password.
    Or you can combine your JSP with other Java components , like Java bean or Servlets to get user/password at run time.
    With Regards
    Sachin

  • Can't print a report from within web application

    <p>I can run the report within Eclipse and it displays fine.  When I click the export button a modal window comes up and all works as expeced.  If I click the print button then a modal box comes up but it is blank except for a little white square up in the top left corner.</p><p>When I view the html source in the browser, the displayPrintDialog function makes reference to active X print control.</p><p>prm.codebase = "../ActiveXControls/PrintControl.cab";</p><p>but I don&#39;t have that within my web application. </p><p>Is there something that I need to install on this machine to get printing to work?</p><p>Any help would be greatly appreciated.</p><p>Marty Jones </p><p> </p>

    <p>Unfortunately the ActiveX print control was not validated with the CR4E version of the Java Reporting Component. Therefore users must implement the prininting via the PDF print option. The print option is determined by the printMode property of the viewer. The default should be PDF but if you want to ensure that it always uses PDF you can set the following code using our API:</p><p> crystalReportPageViewer.setPrintMode(CrPrintMode.PDF);</p><p>If you are using the Tag Libraries you should set the property printMode equal to PDF.</p><p>Hopefully, in a future release we can look at adding in a "pure" print option again. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>

  • Call rfc from Java Web application.

    Hi:
    I am new to SAP Java programming.
    I am developing a java web application on SAP NW SP16.
    I need to call a rfc and process the data to be displayed on a jsp page.
    I have few questions...
    1) Can I use the JCO destination created in thru wed dynpro content administrator, to connect to sap and execute the rfc/bapi?
    2) How would I create and access the model (rfc)?
    3) Are the required jar and dll(rfc32.dll ... ) files available on the server?
    Any help would be greatly appreciated.
    Thanks.

    Hi,
       See the follwoing links which contains sample code to ceate JCO and execute BAPI.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/frameset.htm
    Kind Regards,
    S.Saravanan.

  • Calling Reports from a Form - Application Server Forms and Reports Services

    Hi
    We currently are running App Server 10G Forms and Reports and Oracle DB 11G. Forms are running fine with the Apps Server but what I need to find out is how do I set the path for the .rdf files of the reports and how do I configure the Apps Server to present the Reports? I am sure we have to edit a .conf file and add the server name but not sure what to do or how to do it?
    ps. I am a newb but I managed to get both of Apps Server and Database configured on my lonesome so I am just missing the info on the Reports side of things.
    The Developer has asked the following questions :-
    We want to run a report created in report builder from forms by using the following command in forms;
    web.show_document(v_url,'_blank');
    what does v_url need to be - we need to find an example showing the v_web_address and v_rpt_server
    v_url := 'http://'||v_web_address||'/reports/rwservlet?server='||v_rpt_server||'+report=test_report.rdf &desformat=PDF&userid=user/pw@database'
    Do we need to make changes on the report server configuration and where should the rdf files reside?
    Regards

    Hiya
    Thanks for the message.
    I have started to look at the response you sent me. I have included an output of the rwservlet.properties file and the rep_s-lon-w-001_frhome1 file.
    rwservlet.properties
    SERVER_IN_PROCESS=YES
    RELOAD_KEYMAP=NO
    #DIAGNOSTIC=YES
    #TRACEOPTS=TRACE_ALL
    #TRACEFILE=rwservlet.trc
    #TRACEMODE=TRACE_REPLACE
    #SERVER=<reports_server_name>
    #IMAGEURL=http://<web_server_name>:<port_num>/reports/rwservlet
    #KEYMAPFILE=CGICMD.DAT
    #DBAUTH=RWDBAUTH.HTM
    #SYSAUTH=RWSYSAUTH.HTM
    #ERRORTEMPLATE=RWERROR.HTM
    #COOKIEEXPIRE=30
    #ENCRYPTIONKEY=reports9i
    #DIAGBODYTAGS=<reports_servlet_help_file_title>
    #DIAGHEADTAGS=<reports_servlet_help_file_body_tag>
    #HELPURL=<url_of_customized_help_file_for_reports_servlet>
    #SINGLESIGNON=YES
    OID_ENTITY=%REPORTS_OID_ENTITY%
    #ALLOWHTMLTAGS=NO
    #REPORTS_NETWORK_CONFIG=rwnetwork.conf
    #OIDCON_INIT=10
    #OIDCON_INCREMENT=10
    #OIDCON_TIMEOUT=0
    SERVER=rep_s-lon-w-001_FRHome1
    rep_s-lon-w-001_frhome1
    <?xml version = '1.0' encoding = 'ISO-8859-1'?>
    <!DOCTYPE server PUBLIC "-//Oracle Corp.//DTD Reports Server Configuration //EN" "file:C:\oracle\FRHome_1/reports/dtd/rwserverconf.dtd">
    <server version="10.1.2.0.2">
    <cache class="oracle.reports.cache.RWCache">
    <property name="cacheSize" value="50"/>
    <!--property name="cacheDir" value="your cache directory"/-->
    <!--property name="maxCacheFileNumber" value="max number of cache files"/-->
    <!--property name="ignoreParameters" value="parameter names to be ignored in constructing cache key, separated by comma ','"/-->
    </cache>
    <!--Please do not change the id for reports engine.-->
    <!--The class specifies below is subclass of _EngineClassImplBase and implements EngineInterface.-->
    <engine id="rwEng" class="oracle.reports.engine.EngineImpl" initEngine="1" maxEngine="1" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="90000">
    <!--property name="sourceDir" value=c:\reports/-->
    <!--property name="tempDir" value=c:\reports_temp/-->
    <!--property name="keepConnection" value="yes"/-->
    </engine>
    <engine id="rwURLEng" class="oracle.reports.urlengine.URLEngineImpl" initEngine="1" maxEngine="1" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="60000"/>
    <!--security id="rwSec" class="oracle.reports.server.RWSecurity">
    <property name="securityUserid" value="%PORTAL_DB_USERNAME%/%PORTAL_DB_PASSWORD%@%PORTAL_DB_TNSNAME%" confidential="yes" encrypted="no"/>
    <property name="oidEntity" value="%REPORTS_OID_ENTITY%"/>
    </security-->
    <!--destination destype="oraclePortal" class="oracle.reports.server.DesOraclePortal">
    <property name="portalUserid" value="%PORTAL_DB_USERNAME%/%PORTAL_DB_PASSWORD%@%PORTAL_DB_TNSNAME%" confidential="yes" encrypted="no"/>
    </destination-->
    <destination destype="ftp" class="oracle.reports.plugin.destination.ftp.DesFTP">
    <!--property name="proxy" value="proxyinfo.xml"/-->
    </destination>
    <destination destype="WebDav" class="oracle.reports.plugin.destination.webdav.DesWebDAV">
    <!--property name="proxy" value="proxyinfo.xml"/-->
    </destination>
    <!-- By default server will use rwnetwork.conf as network config file
    Use this element to override the same -->
    <!--networkConfig file="rwnetwork.conf"></networkConfig-->
    <job jobType="report" engineId="rwEng"/>
    <job jobType="rwurl" engineId="rwURLEng"/>
    <notification id="mailNotify" class="oracle.reports.server.MailNotify">
    <property name="succnotefile" value="succnote.txt"/>
    <property name="failnotefile" value="failnote.txt"/>
    </notification>
    <!--notification id="wfNotify" class="oracle.reports.server.WorkflowNotify">
    <property name="connStr" value="%WF_DB_USERNAME%/%WF_DB_PASSWORD%@%WF_DB_TNSNAME%" confidential="yes" encrypted="no"/>
    </notification-->
    <log option="noJob"/>
    <!--jobStatusRepository class="oracle.reports.server.JobRepositoryDB">
    <property name="repositoryConn" value="repo_db_username/repo_db_password@repo_db_tnsname" confidential="yes" encrypted="no"/>
    </jobStatusRepository-->
    <!--trace traceOpts="trace_all"/-->
    <connection maxConnect="20" idleTimeOut="15">
    <orbClient id="RWClient" publicKeyFile="clientpub.key"/>
    </connection>
    <queue maxQueueSize="1000"/>
    <!--jobRecovery auxDatFiles="yes"/-->
    <!--
    The value of the 'identifier' element is encrypted and is of the form SERVERACCESSKEY_USER/SERVERACCESSKEY_PASSWORD
    SERVERACCESSKEY_USER and SERVERACCESSKEY_PASSWORD in <server>.conf and targets.xml
    file should match for Reports EM pages to display data correctly.
    Corresponding entries of username and password in targets.xml:
    <Property NAME="Password" VALUE="SERVERACCESSKEY_PASSWORD" ENCRYPTED="FALSE"/>
    <Property NAME="UserName" VALUE="SERVERACCESSKEY_USER" ENCRYPTED="FALSE"/>
    -->
    <identifier confidential="yes" encrypted="yes">ZgZCDkywAUaHwMnb+A6YTg0UVX12puJiKZe8PYR1NHiooqnkbstGLcLqn5sWJCnWjREALf9UVz0N/P7HpgkTrPTCwgYirXmx1oZKCWkodsu06FNAJJ8ioXQCBWAG+SeHElcR5At9pTaiZZjXv8MtUP6cEUcH//E5eI4JnO/PLfS0u0OmElFdQn9lsDYF/ETYcK7QVswlN0LAE0yUqCC7bI+mVhhSkW80XXnh5oPISEiMwb+KcNW2T2zz+m1KLJAQFDk0S3cCIMaj6NBF7yXmoJOoGRNmfQBk8HHfx7Z6+l//BZP/hswX5NojatpWa46uDU8HNtNfcLSKxSUHH64g/FaEqzoXIXbIVWuGVwUA4gRUulJ0Ew0HVtyXC5wsnUW5zD0HnUFYoKXeNssDrT6HapRoEwSYE3n2ogux3vOefUXkPy5hsPCc9I3R5tmdljjuUGxmF1QXckIv12aMw0+JGIyevbv7X33vhJc=</identifier>
    <!--pluginParam name="mailServer">%MAILSERVER_NAME%</pluginParam-->
    <!--pluginParam name="proxy" type="file">proxyinfo.xml</pluginParam-->
    <pluginParam name="xmlpds" type="file">xmlpds.conf</pluginParam>
    <pluginParam name="jdbcpds" type="file">jdbcpds.conf</pluginParam>
    <pluginParam name="textpds" type="file">textpds.conf</pluginParam>
    </server>
    If our Apps server is s-lon-w-001.homes.local, where do I make the changes in these two files to make the reports to run. You can see I have defined the reports on the C: on the server.
    Many thanks in advance!

  • Invoking a Discoverer Report from a web page written in JSP

    Hi,
    We are using Discoverer 10.1.2 against a relational database. We are not using the OLAP option.
    I have a requirement wherein users would like link to a Discoverer Report from a web application which is not deployed in Oracle Portal. So Discoverer portlets are not the solution.
    I basically need to be able to provide the Report URL in the JSP page.
    Has anybody done this ? Can you please provide some pointers towards how to generate the Discoverer report URL to invoke the report from a JSP ?
    Thanks
    Manav

    Discoverer URL parameters can be found here in the Configuration Guide here:
    http://download.oracle.com/docs/html/B13918_03/urlstart.htm#sthref888
    Note, that you cannot pass the password in the URL (security restriction) so you will need to use Public or Private connections and pass the connection ID or use an HTML form to build the URL using the POST method.
    Or, you can fill in the desired fields and let the user enter their username/pwd.
    Hope that helps get you started.
    Regards,
    Steve.

  • How can i call a jasper report from a java Application

    Hi,
    i am chiranjit , currently i working in a web based ERP project, in this project as a report building tool we are using JasperReport wih eclipse plugin . in eclipse report's are generating very well but i am unable to call that report from a java application because i have no idea about the How to call a Jasper Report from a Java Application . so please send me the necessary class names, jar files names and programe code as early as possible.
    Chiranjit

    Ahh, kind of a duplicate thread:
    http://forums.java.sun.com/thread.jspa?threadID=631642
    @OP. You could have clarified your original post and the relationship of your question to java. You did not need a new thread.
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Getting rep-3002 when calling report from form on web

    i am getting rep-3002 when i call report from a form on web environment. Report is in character mode. It is coming proper if i change it to bitmap. but my requirement is of character mode. pl. give some solution.

    Hello,
    If you are running in WinNT/2000 environment, the NT/2000 user which runs the Report Server service must have a printer defined. In the control panel, look at the properties for the Report Server to see what user it runs as. Log in as that user and make sure a default printer is defined.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Calling report from form in Web environment

    Hi,
    We are in the process of migrating our C/S appication (developed in Developer2k) to intranet using OAS. My question :
    a) Is there any other way to call report from a form other than web.show_document?
    b) When a report is called from the report server(using web.show_document), a log-in screen comes up unless the login and password is passed as parameter. Only problem with this is the password shows in the URL. Is there any other way to make the call so that the login & password does not show and the user won't have to login a second time to run the report?
    Any reply would be appreciated..Thanks

    1. Yes you can use run_product package procedure to call reports on web, Oracle documentation says that run_product command will run in web env.
    2. Yes you can hide username & password from user, it depends on which method you are using to call reports, if you are using web cgi then add username & password in file "cgicmd.dat" and "oascmd.dat" for web catridge or in cartridge parameter setting you will find this files in directory "\orant\report60\server\".
    Darshan Desai
    [email protected]
    null

  • Calling a report from a web form & specifying PDF format

    Has anyone been able to call a report from Oracle Forms (6i or 9i) in a web browser (i.e. by pressing a button or any other link)? We are having problems generating the report in PDF format when we web deployed our forms. In client server mode it works fine with the report deferring to PDF. But in the web browser it reverts to a messy HTML format with the columns being distorted. Running a standalone report from the web is no problem but when it is linked with a form it goes back to HTML. In the old forms (5.0) we used a function like run_product but I am not sure what the problem is in the new environment.
    T.J.

    Hello,
    According to the way the reports is launched, the format of the reports output depends on the
    variables : FORMS60_REPFORMAT (for Forms 6.0 and 6i)
    Two others variables are used : FORMS60_OUTPUT and FORMS60_MAPPING.
    Can you check the variable FORMS60_REPFORMAT ?
    regards Dennis:
    Thanks for the info. Your suggestion of changing the windows registry setting FORMS60_REPFORMAT to 'PDF' worked! I did not have to make any other changes to the form. I left the run_product format as is in the form and it worked like a charm. When we eventually migrate to Oracle Reports/Forms 9i we will look into using run_report_object. But for now we will stick with Oracle Forms6i. There was no need to alter the other registry settings FORMS60_MAPPING and FORMS60_OUTPUT since I followed the instructions of setting the virtual directories (symbolic links) when I installed the forms and reports services.
    Thanks again for your help!
    T.J.

  • Webservice call to XI Interface through SOAP Adapter from a Web application

    I  am getting  the following error, when I try to call the XI Interface using soap adapter from a web application.
    ERROR  :
    SystemError:
              <context>XIAdapter</context>
              <code>ADAPTER.JAVA_EXCEPTION</code>
              <text><![CDATA[
    com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException
    at some time i am getting the following error.
    faultCode: HTTP
    faultSubcode:
    faultString: (500)Internal Server Error
    faultActor:
    faultNode:
    faultDetail:
         {}:return code:  500
    &lt;SAP:Error&gt;&lt;SAP:Category&gt;XIServer&lt;/SAP:Category&gt;&lt;SAP:Code&gt;RCVR_DETERMINATION.NO_RECEIVER_CASE_BE&lt;/SAP:Code&gt;&lt;SAP:Stack&gt;No receiver could be determined&lt;/SAP:Stack&gt;&lt;/SAP:Error&gt;
         HttpErrorCode:500
    (500)Internal Server Error
    can any of  one help to resolve this.
    Thanks  in advance

    Ganie
    You are getting the exception at very first point of Pipeline Service i.e Receiver Determination, do compare the namespace, Sender Interface Name & Sender Service name with the payload you are sending from web-application, they must be exactly same.
    The best way to get the test payload is suggested in above reply.

  • Call a method in VB dll from Java Web Application

    Hi,
    I'm trying to call a method of a VB dll, from a web application developing with J2EE. Is it possible without JNI? And, if it is not possible with a tool, can you help me with an example of JNI using?
    Thank you
    Mary

    maria_eg wrote:
    I'm trying to call a method of a VB dll, from a web application developing with J2EE. Is it possible without JNI? Maybe using Runtime#exec() and rundll32.exe. Depends on the DLL which you want to call.
    And, if it is not possible with a tool, can you help me with an example of JNI using?JNI tutorial: http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html
    JNI forum: http://forum.java.sun.com/forum.jspa?forumID=52

  • Call BW query from a Web application

    Hi,
    I am trying to call a BW query from a Web application. Could you please let me know how to pass the parameters to the query.
    Thanks,
    Rekha

    I don't know about db2 APIS, but you can use JDBC to connect to DB2 physical files/tables with the DB2 driver. You would need the jar file with the driver info though. I've done this with the webshpere appserver.
    import com.ibm.db2.jdbc.app.DB2Driver;
    Class.forName("com.ibm.db2.jdbc.app.DB2Driver");
    connectionVar = DriverManager.getConnection("jdbc:db2://SERVERNAME/LIBRARY", "user", "passwd");
    That's the basic info that will get you connected and then you can access any files or tables that are in that library with SQL. You would have to use the Java API though - statements, resulsets etc. Hope it helps.

Maybe you are looking for

  • Purchase order and goods receipt

    Hello to everyone, is there any way to view only the last purchase order and the last goods receipt for several materials? Regards

  • Coherence, OSB and SOA integration

    Hi, I have a WL domain, that consists on a SOA cluster and a OSB cluster. I want to have external cache servers, as it is the preferred option provided by Oracle, so I have external processes which starts a cache, loads data from database, and create

  • NEW SESSION - Firefox, IE and GLASSFISH

    Hi all, Here is my issue: I have One application on Glassfish using EJB3,JPA and JSF. Users can log to this application and have severals sessions opened simultanoulsy as each session is having a connection to its own database How do I force a new se

  • Hacer menú con 8 leds que en cada opción tenga una secuencia de encendido diferente

    Buenos días, Tengo la tarjeta NI myDAQ con labview 2010 quiero hacer un menú con 4 opciones. Primera opción todos prendidos. Segunda opción parpadeantes. Tercera opción en secuencia Cuarta opción apagados. soy nueva en labview esperando su pronta ayu

  • Equium A200-196: Cannot get all speakers to work with Creative T7900 home cinema system

    I run windows Vista home premium, on my Toshiba Equium A200-196, and i have a 7.1 Creative T7900 system. I cannot get all speakers to work. Only the woofer and two front speakers are currently playing sound. The sound option in the control panel does