RUN_REPORT_OBJECT on a webserver

I am a bit confused with the settings regarding the webserver. I have 3 clients and a server (running under Windows 2000). Two of the clients, I have installed form and report servers but the other client, nothing related to oracle is installed. On the 2 clients, their respective form and report servers are closed, but when I access the program (form call report), among the 2 clients, one can display the report on the browser (this is running under Windows2000) but the other cannot(under Windows NT). Then the client with nothing installed on it (Windows NT) sometimes can and cannot display the report.
The following is how i wrote the code:
declare
list_id paramlist;
v_where varchar2(20);
v_where1 varchar2(5000):='';
v_sdate date;
v_edate date;
v_sdate1 varchar2(10);
v_edate1 varchar2(10);
v_wh varchar2(5000):='';
v_report_id report_object;
v_reportmessage varchar2(100);
begin
list_id := create_parameter_list('input_list');
add_parameter(list_id,'USERNAME',text_parameter,USER);
add_parameter(list_id,'Mode',text_parameter,:mode);
add_parameter(list_id,'paramform',text_parameter,'NO');
add_parameter(list_id,'COMP_CODE',text_parameter,:global.company_CODE);
add_parameter(list_id,'CUS_DAT',text_parameter,TO_CHAR(:PARAM.CUSDATE,'YYYYMMDD'));
add_parameter(list_id,'P_COMPANY_CODE',text_parameter,:global.company_id);
add_parameter (list_id, 'P_SHIP_DATE_B', text_parameter,TO_CHAR(:PARAM.SHIP_DATE_B,'YYYYMMDD'));
add_parameter (list_id, 'P_SHIP_DATE_E', text_parameter,TO_CHAR(:PARAM.SHIP_DATE_E,'YYYYMMDD'));
v_report_id:=FIND_REPORT_OBJECT('REP_OBJ');
Set_report_object_property(v_report_id,REPORT_FILENAME,get_current_form_path| |'SM_REP2_P');
set_report_object_property(v_report_id,REPORT_OTHER,'report_server='| |:rep_ser);
v_reportmessage:=RUN_REPORT_OBJECT(v_report_id,list_id);
destroy_parameter_list(list_id);
end;
Thank you.

Hello,
There is a good whitepaper here on OTN called "Oracle9iAS Forms Services and Reports Services Integration", which has alot of helpful tips on how to integrate Forms and Reports on the web. It should give you some helpful hints.
Regards,
The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Run_report_object is not working

    Hi everyone
    I am trying to convert my 6i reports into 9i.
    I have added into a report object node in my form all necessary objects. In procedure i call run_report_object and got error 'REP-0503 You did not specify the name of the report' .
    Here is my code(obviousely i am missing something)
    report_id Report_Object;
    report_job_id VARCHAR2(100);
    BEGIN
    v_report_module := v_report_path || v_report_file_name;
    report_id := find_report_object(v_report_file_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE,RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,PREVIEW);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,v_report_file_name);
    set_report_object_property(report_id, report_other, 'paramform=no');
    report_job_id := RUN_REPORT_OBJECT
    (report_id, pl_id) ;
    END;
    Thanks everyone in advance

    You have to specify a report object name in your Forms module and you pass in that name as a parameter to find_report_object function call.
    HTH,
    Tamas Szecsy

  • Error in Starting WebServer (Ver 7) Admin Server

    Hi,
    I am getting the error shown below when starting the Webserver 7 admin
    server. The Web server starts and I can administer the server but when deploying Access Manager getting agan the same java.lang.NoClassDefFoundError and can't AM complete configuration.
    Please help me. After attending Access Manager 7.1 training
    wanted to practice on this env.
    My Env is:
    uname -a:
    SunOS sun1 5.10 Generic_120012-14 i86pc i386 i86pc
    /etc/release:
    Solaris 10 8/07 s10x_u4wos_12b X86
    Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 16 August 2007
    cat release_info :
    Product=Java Enterprise System 5U1
    Date=Mon Aug 20 18:05:55 PDT 2007
    Build=08b
    PatchLevel=000
    [25/Dec/2007:19:06:54] info ( 8308): CORE1116: Sun Java System Web
    Server 7.0U1 B07/18/2007 14:21
    [25/Dec/2007:19:06:55] info ( 8309): CORE5076: Using [Java HotSpot(TM)
    Server VM, Version 1.5.0_12] from [Sun Microsystems Inc.]
    [25/Dec/2007:19:06:59] info ( 8309): WEB0100: Loading web module in
    virtual server [admin-server] at [admingui]
    [25/Dec/2007:19:07:00] info ( 8309): WEB0100: Loading web module in
    virtual server [admin-server] at [jmxconnector]
    [25/Dec/2007:19:07:06] info ( 8309): PWC1412: WebModule[jmxconnector]
    ServletContext.log():PWC1409: Marking servlet remotejmx as unavailable
    [25/Dec/2007:19:07:06] failure ( 8309): WebModule[jmxconnector]PWC1396:
    Servlet /jmxconnector threw load() exception
    java.lang.NoClassDefFoundError: javax/management/remote/message/Message
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
    at java.lang.Class.getConstructor0(Class.java:2671)
    at java.lang.Class.newInstance0(Class.java:321)
    at java.lang.Class.newInstance(Class.java:303)
    at
    org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1119)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:994)
    at
    org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4731)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5123)
    at com.sun.webserver.connector.nsapi.WebModule.start(WebModule.java:182)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1224)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:924)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1224)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:520)
    at org.apache.catalina.startup.Embedded.start(Embedded.java:917)
    at com.sun.enterprise.web.PwcWebContainer.onStartup(PwcWebContainer.java:70)
    at
    com.sun.webserver.connector.nsapi.WebContainer.start(WebContainer.java:472)
    at com.sun.webserver.init.J2EERunner.confPostInit(J2EERunner.java:304)
    [25/Dec/2007:19:07:06] info ( 8309): HTTP3072: admin-ssl-port:
    https://sun1.mysite.com:8989 ready to accept requests
    [25/Dec/2007:19:07:06] info ( 8309): HTTP3072: admin-http-port:
    http://sun1.mysite.com:8800 ready to accept requests
    [25/Dec/2007:19:07:06] info ( 8309): CORE3274: successful server startup

    jmxremote_optional.jar has
    javax/management/remote/message/Message.class
    <server-class-path> in admin-server/config/server.xml contains path to this jar file. You may want to check if this jar file exists and has correct permissions.

  • HTTPS connection from portal to external webserver

    Hi,
    I am looking for a way to open a HTTPS connection from portal server to an external webserver. According to <a href="http://help.sap.com/saphelp_nw04/helpdata/en/e2/71c83edf72e16be10000000a114084/content.htm">SAP</a> the code should look like
    KeyStore keystoreCAs = ...
    SecureConnectionFactory factory = new SecureConnectionFactory(keystoreCAs, null);
    HttpURLConnection con = factory.createURLConnection("https://www.mycompany.com");
    Does not look difficult, <b>but how do I create the keystore object</b>? The keystore object should somehow be connected to the portal server's keystore which manages the certificates of trusted Certificate Authorities.
    Any ideas?
    Regards,
    Martin

    Hi,
    meanwhile I solved the problem by my own. The solution slightly simplified is given below.
    javax.naming.InitialContext ctx = new javax.naming.InitialContext();
    java.lang.Object o = ctx.lookup("keystore");          
    com.sap.engine.services.keystore.interfaces.KeystoreManagerWrapper_Stub manager = (com.sap.engine.services.keystore.interfaces.KeystoreManagerWrapper_Stub) o;
    java.security.KeyStore keystoreCAs = manager.getKeystore("TrustedCAs");     
    com.sap.security.core.server.https.SecureConnectionFactory factory = new SecureConnectionFactory(keystoreCAs, null);
    java.net.HttpURLConnection con = factory.createURLConnection("https://www.mycompany.com");
    For connecting via a proxy the host name and port number of the proxy have to be set as System properties using "https.proxyHost" and "https.proxyPort".
    java.util.Properties systemSettings = System.getProperties();
              systemSettings.put("proxySet", "true");
              systemSettings.put("https.proxyHost","192.168.0.1") ;
              systemSettings.put("https.proxyPort", "80") ;
    Additionally you have to make sure that the server's certificate is issued by a trusted Certification Authority (Must have an entry in your Keystore "TrustedCAs"). To verify this use the Visual Administrator and view service "Key Storage".
    Regards,
    Martin

  • WebServer 6.1 SP3 SSL reverse proxy to Sun One Application Server 7

    I have an application in the appserver7 that requires SSL authentication. I have already installed a self cert in the appserver7, and the authentication works fine when I browse directly to the appserver.
    The appserver7 has both listener for port 80 and 443 enabled.
    I'm currently setting up a webserver (WebServer 6.1 SP3) to act as a reverse proxy to the appserver7. The reverse proxy for the basic jsp pages found in the appserver worked fine.
    When I try to access the login page, in the appserver, in ssl mode, I am unable to do so. I then try changing the obj.conf to the following, from http to https:
    <Object name="passthrough">
    ObjectType fn="force-type" type="magnus-internal/passthrough"
    Service fn="service-passthrough" method="(GET|HEAD|POST)" servers="https://172.2
    8.48.53"
    However, it still doesn't work.
    Do I need to install a self cert in the webserver and enable the ssl listener as well?
    Do I need to install any reverse proxy addon for the appserver? Any
    setup for the obj.conf in the appserver?
    Any ideas how to get this done?
    Thanks.
    Mac.

    The Web Server 6.1 SP3 Reverse Proxy Plugin is supported, but it sounds like you're trying to do something that simply isn't possible.
    If you want the Reverse Proxy Plugin to perform SSL mutual authentication with the Application Server using the client's certificate, that's impossible due to the nature of SSL mutual authentication. If the plugin could impersonate the client, then SSL would be vulnerable to MITM (Man In The Middle Attacks). Fortunately, SSL isn't vulnerable to such attacks because the plugin doesn't know the client's private key.
    If you simply want the Reverse Proxy Plugin to pass information about the client's certificate along to the Application Server, that hapens automatically. There's nothing special to configure. Note that the plugin will not authenticate to the Application Server in this case. Rather, it will simply copy the X.509 certificate into the proprietary Proxy-auth-cert: HTTP request header.
    The application running on the Application Server can inspect the Proxy-auth-cert: header using standard Servlet APIs. Alternatively, you can use Application Server 7's auth-passthrough AuthTrans SAF to cause the contents of the Proxy-auth-cert: header to be copied to the javax.servlet.request.X509Certificate Servlet attribute.

  • ASA 5505 -Can I use outside dynamic IP for webserver DMZ?

    SETUP
    ASA 5505
    ASA Version 9.1(2)
    ASDM Version 7.1(3)
    I have basic license, using only three vlans (outside, inside, DMZ).
    QUESTION:
    I want to find a way (if possible) to use the single DYNAMIC IP (dhcp'd from ISP) on the "outside" interface, as a means to setup a web-server on the DMZ? I just want to allow my WHS-2011 (server) to talk to microsoft's free DDNS service where my domain name is hosted (ports 80,443,4125).
    So far, every setup option I have tried does not make it past the implicit deny acl's (on the outside interface) to the web-server (DMZ).
    I understand that the VLAN1 (inside) had to be disabled. I understand that objects now replace some of the older NAT'd components.
    CONFIG:
    object network webserver-external-ip
    host <X.X.X.X>
    ! I had set this to match my ISP DHCP address
    object network webserver
    host 172.16.0.2
    nat (DMZ,outside) static webserver-external-ip service tcp www www
    nat (DMZ,outside) static webserver-external-ip service tcp 443 443
    nat (DMZ,outside) static webserver-external-ip service tcp 4125 4125
    access-list outside_acl extended permit tcp any object webserver eq www
    access-list outside_acl_https extended permit tcp any object webserver eq 443
    access-list outside_acl_rww extended permit tcp any object webserver eq 4125
    access-group outside_acl in interface outside
    access-group outside_acl_https in interface outside
    access-group outside_acl_rww in interface outside
    ! added the dns statements below because the cisco doc (below) says it's required or dmz traffic can't get out despite default rule allowing it to do so.
    ! (ctrl-F) ... "all traffic would be blocked from the dmz to hosts on the internet"
    ! http://www.cisco.com/en/US/products/ps6120/products_configuration_example09186a0080bf150c.shtml
    object network dns-server
    host 8.8.8.8
    exit
    access-list dmz_acl extended permit udp any object dns-server eq domain
    access-list dmz_acl extended permit ip any any
    access-group dmz_acl in interface DMZ
    SUMMARY:
    I just want to allow my WHS-2011 (server) to talk to microsoft's free DDNS service where my domain name is hosted (ports 80,443,4125).
    I want to find a way (if possible) to use the single DYNAMIC IP (dhcp'd from ISP) on the "outside" interface, as a means to setup a web-server on the DMZ?
    Other:
    As an interim alternative, I have been able to setup & connect to the ASA using clientless vpn (web-ssl), and from there getting over to my WHS2011 server...-but the problem is, I have no way of knowing, or updating my DDNS once that IP changes since the ASA keeps blocking the return traffic to theh outside interface. My only assumption is that becasue I am using a single dynamic IP (outside interface) that it has nothing to re-direct the traffic to....???
    Thank You for any help you can provide!!
    k/r

    Hi,
    I cant really help with the DDNS portion but I would imagine you already have that sorted out.
    The ASA configurations however seem a bit off to me.
    Here is what you should configure
    STATIC PAT TO HOST SERVICES
    There are some changes that need to be done to both ACL and NAT configurations. First of the NAT configurations for each port require their own "object network" to be configured.
    Also since you are using a DHCP address from the ISP to act as the NAT address then you can use the keyword/parameter "interface" in the actual "nat" command. This basically tells the ASA that it should use whatever IP address is currently on the "outside" interface of the ASA. So you wont have to configure any separate "object network" for the public IP address every time it changes.
    Also, with regards to the ACL configurations. You should only configure one ACL per interface in the "in" direction. So all the rules you need to configure for traffic inbound from the Internet need to be in the same ACL that you then attach to the "outside" interface with the command "access-group"
    object network WEBSERVER-TCP80
    host 172.16.0.2
    nat (DMZ,outside) static interface service tcp www www
    object network WEBSERVER-TCP443
    host 172.16.0.2
    nat (DMZ,outside) static interface service tcp 443 443
    object network WEBSERVER-TCP4125
    host 172.16.0.2
    nat (DMZ,outside) static interface service tcp 4125 4125
    access-list outside_acl extended permit tcp any object WEBSERVER-TCP80 eq www
    access-list outside_acl extended permit tcp any object WEBSERVER-TCP443 eq https
    access-list outside_acl extended permit tcp any object WEBSERVER-TCP4125 eq 4125
    access-group outside_acl in interface outside
    DYNAMIC PAT FOR LANs and DMZs
    The above NAT configurations only handles the NAT for situations where the remote hosts on the Internet contact your DMZ server.
    If you want to configure Dynamic PAT for all your LAN and DMZ users which basically enable them to use the "outside" interface public IP address for Internet traffic, then you could configure this single "nat" configuration
    nat (any,outside) after-auto source dynamic any interface
    This would enable Dynamic PAT for all users behind the ASA
    I am not sure if you will run into problems since you are using a single public IP address and trying to forward TCP/443. This port is both used for SSL VPN and ASDM management of the ASA.
    If you want to change the default port of the ASDM management you can use this command
    http server enable
    If you want to change the default port of SSL VPN you can use these commands
    webvpn
    port
    Naturally before doing either of the above changes, make sure that you are not relying to them for management purposes if something was to go wrong. If you have SSH management access to the ASA then it should naturally be ok.
    I am not sure if all of the above are enough to get your setup working but it should be the basics. Naturally if there is still problems after the above suggestions it might be helpfull to see the current ASA configurations. For example NAT might not work if the ordering of NAT rules is wrong even though the actual configurations are otherwise valid.
    Hope this helps
    Please do remember to mark a reply as the correct answer if it answered your question.
    Feel free to ask more if needed
    - Jouni

  • Problem with nat / access rule for webserver in inside network asa 5505 7.2

    Hello,
    i have trouble setting up nat and access rule for webserver located in inside network.
    I have asa 5505 version 7.2 and it has to active interfaces, inside 192.168.123.0 and outside x.x.x.213
    Webserver has ip 192.168.123.11 and it needs to be accessed from outside, ip x.x.x.213.
    I have created an static nat rule with pat (as an appendix) and access rules from outside network to inside interface ip 192.168.123.11 (tcp 80) but no luck.
    What am i doing wrong?

    Command:
    packet-tracer input outside tcp 188.x.x.213 www 192.168.123.11 www detailed
    Phase: 1
    Type: FLOW-LOOKUP
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    Found no matching flow, creating a new flow
    Phase: 2
    Type: ROUTE-LOOKUP
    Subtype: input
    Result: ALLOW
    Config:
    Additional Information:
    in   192.168.123.0   255.255.255.0   inside
    Phase: 3
    Type: ACCESS-LIST
    Subtype:
    Result: DROP
    Config:
    Implicit Rule
    Additional Information:
    Forward Flow based lookup yields rule:
    in  id=0x35418d8, priority=500, domain=permit, deny=true
        hits=1, user_data=0x6, cs_id=0x0, reverse, flags=0x0, protocol=0
        src ip=188.x.x.213, mask=255.255.255.255, port=0
        dst ip=0.0.0.0, mask=0.0.0.0, port=0
    Result:
    input-interface: outside
    input-status: up
    input-line-status: up
    output-interface: inside
    output-status: up
    output-line-status: up
    Action: drop
    Drop-reason: (acl-drop) Flow is denied by configured rule

  • How can i create link between ipad(xcode) and webserver?

    Hi, I'm a new to iPad development and i need help,
    i'm not good with english but i try to explain my question:
    how can i create link between ipad(xcode) and webserver?
    (the webserver ".NET" with driver odbc is connected with DB Oracle)
    so, how can my ipad application access to the Oracle DB?
    Create a webservice (.NET) to be place between iPad and DB, is this correct?
    how can i do it?
    which are libraries to include in the xcode's framework?
    thx

    I think the following URL will be your best answer:
    http://stackoverflow.com/questions/3510468/connecting-iphone-to-an-odbc-database

  • A Short Recipe for Creating a secure Java Webserver

    This is a short note describing how I was able to implement a Java server on a secure website. I am writing this because I hope the rest of you will be able to navigate the SSL minefield more easily than I was able to do.
    I want to thank Brad Wetmore and Sean Mullan in the Sun Microsystems Java Security group. Without their help, I would never have been successful.
    For more detailed reading, see http://java.sun.com/javase/6/docs/technotes/tools/solaris/keytool.html#EXAMPLES
    1. Generate a public/private keypair and certificate for a webserver using keytool. The name of my product is FIRMS (Fully Integrated Resort Management System). You will see "firms" a lot in what follows. Fill in your own data under the "-dname" parameter. Note that if you run keytool so that it prompts you for this information, the first thing keytool will ask you to provide is your First Name and Last Name, although this field is also referred to as the Common Name. In SSL/TLS, the Common Name is the hostname of the website you'll be setting up. It probably would have been better if keytool had prompted for "Common Name" instead of First Name and Last Name. Just keep this in mind if you go through the keytool prompts. If you use the "-dname" parameter, as I have done here, you will not have to go through keytool's prompts. Also, note that the "-dname" information I provided is for a very small business, not a larger corporation.
    keytool -genkeypair -alias firms -keyalg RSA -dname "cn=www.firmsglobal.com, ou=FIRMSGlobal, o=James Morris, l=Scottsdale, st=Arizona, c=US" -keystore foo
    2. Generate a CSR (Certificate Signing Request).
    keytool -certreq -alias firms -file firmsglobal.csr -keystore foo
    3. Send the CSR to a trusted Certificate Authority (CA). I used GoDaddy. When the CA website asks you to provide a key, open the ".csr" file, copy it, and paste it into the website text area. Be sure to copy and paste the entire ".csr" file. Depending on the CA you are using, they will ask you what kind of server you are using. In most cases, choose "other". It really doesn't matter. Be absolutely sure you save the keystore file "foo". Back it up. Whatever you do, do not modify it or delete it. Save it. Got that?
    4. Eventually the CA will provide you with one or more "reply" files ending (most likely) in ".cer" or ".crt". You might have to go into a repository to get the right "cross" files and "intermediate" files.
    5. You must import the files provided by the CA back into your original keystore file. Remember that file? That is the one you saved. Above, I called it "foo".
    6. Use the following keytool commands to import the files back into your original keystore file "foo". My CA provided me with 1 root file, 1 cross file, and 1 intermediate file, as well as my "real" certification file, which is called "www.firmsglobal.com.crt". Look again in step 1 above. Note that I used the alias "firms" to generate the public/private keypairs. You must use the same alias when you import the "real" certification reply file from the CA into the keystore file "foo". Note that I can use any alias name I wish on the first three lines below, but the fourth line is the command that will replace the self-signed certificate I generated in step 1 with the "real" certification reply file from the CA. The alias used in the fourth line must always match the alias used in step 1. Note that it might not always be necessary to perform lines one through three.
    keytool -importcert -alias root -trustcacerts -keystore foo -file valicert_class2_root.cer"
    keytool -importcert -alias cross -trustcacerts -keystore foo �file gd_cross_intermediate.cer"
    keytool -importcert -alias intermed -trustcacerts -keystore foo -file gd_intermediate.cer"
    keytool -importcert -alias firms -trustcacerts -keystore foo -file "www.firmsglobal.com.crt"
    7. Here is the Java code I use to read the keystore. The string "keystore" holds the name of the keystore file. The string "keystorepass" is a char[] that holds the keystore password. The string "keypassword" is a char[] that holds the private key password. I might have these two passwords reversed. I used the same password for the keystore and the private key, but this is not recommended.
    try {
          KeyStore ks = KeyStore.getInstance("JKS");
          ks.load(new FileInputStream(keystore), keystorepass);
          KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
          kmf.init(ks, keypassword);
          SSLContext sslcontext = SSLContext.getInstance("SSLv3");
          sslcontext.init(kmf.getKeyManagers(), null, null);
          SSLServerSocketFactory ssf = sslcontext.getServerSocketFactory();
          sslServerSocket = (SSLServerSocket) ssf.createServerSocket(securePortNumber);
    } catch (Exception e) {
          handleSocketException(e,"Server cannot listen on port ",securePortNumber);
    };

    Whenever the user selects a file, you can call the setCurrentDirectory method on the JFileChooser, with the getParentFile() method to return the directory of the selected file.
    For example :
    JFileChooser chooser = new JFileChooser();
    if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
       File f = chooser.getSelectedFile();
       if (f.isFile()) {
           chooser.setCurrentDirectory(f.getParentFile());

  • How to create the trace file using run_report_object at runtime

    Dear All
    using :
    Oracel Application Server 10g
    Oracle Database 11g
    Windows XP/sp3
    I'm using run_report_object to call a report inside the form. THis report is running OK from reports builder, however it's too slow when run from Application server.
    How Can I create a trace file (at runtime) that contains the time spent in sql and formating the layout of the report ??
    Here is My code :
    repid := find_report_object('report5');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'INVOICE.REP');
    v_url :='paramform=no';
    v_url := v_url||' FROM_NO=' || :PRINT_BLOCK.FROM_NO ;
    v_url := v_url ||' TO_NO=' || :PRINT_BLOCK.TO_NO ||' FROM_DATE=' || v_from_date ||' TO_DATE='|| v_to_date ||' NO_DATE=' ;
    v_url := v_url ||:PRINT_BLOCK.NO_DATE||' IDENT=' ||:PRINT_BLOCK.IDENT_NO||' REPORT_HEADING='''||V_REPORT_HEADING||'''' ;
    v_url := v_url||' COMPANY_NO='||:global.company_no;
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,v_url);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,:GLOBAL.INV_REPORT_SERVER_NAME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
    v_rep := RUN_REPORT_OBJECT(repid);
    IF rep_status = 'FINISHED' THEN
    V1:='/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1);
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?server='||REPORT_SERVER_NAME,'_blank');
    END IF;
    Thanks a lot

    Slow running reports often are not the result of a flawed report, but rather a flawed configuration. For example:
    1. If you call your reports (from Forms) via the default or inProcess Reports Server, often because startup time is slow, it will appear that it took too long for the report to be delievered. Using a stand-alone Rep Server is the preferred way to do this.
    2. If your Forms application makes numerous calls to RRO (RUN_REPORT_OBJECT), this can tend to result in what might appear as a memory leak (although it is not). The result is delayed processing because of the excessive memory use. This problem has been overcome in Forms/Reports 11 by the use of JVM pooling. However in v10 enabling "6i compatibility" mode is the way to overcome the issue. See Note 266073.1
    3. If the report runs fine from the Builder and it is connecting to the same db as when you run it from App Server, the issue is unlikely a db problem. However, if you want to look anyway, enable sqlnet tracing.
    4. To enable Reports tracing and investigate other tuning options, refer to the Reports 10 documentation:
    http://docs.oracle.com/cd/B14099_11/bi.1012/b14048/pbr_tune.htm
    Almost forgot to mentioned this one....
    If you are using a v11 db with App Server 10, you will probably want to consider reviewing Note 1099035.1 as it discusses an issue related to performance with such a configuration.
    Edited by: Michael Ferrante on Apr 10, 2012 8:49 AM

  • How to view RUN_REPORT_OBJECT buil-in package source code

    Ps help.
    I'm creating a batch report that will execute from PL/SQL not forms - so I can't use this built-in directly on my PL/SQL procedure. How do I view RUN_REPORT_OBJECT source code and that of the functions that it calls.
    Thanks
    Khombi

    You can't see source code of this package.
    You can use srw package. Please see the following link.
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_evnt.htm

  • How to view RUN_REPORT_OBJECT built-in source code

    Ps help.
    I'm creating a batch report that will execute from PL/SQL not forms - so I can't use this built-in directly on my PL/SQL procedure. How do I view RUN_REPORT_OBJECT source code and that of the functions that it calls.
    Thanks
    Khombi

    good question for the report forum :
    Reports

  • Find_Report_Object and Run_Report_Object does not work

    I am using Win 2000. Running forms 6i version 6.0.8.11.3
    When I use Run_Report_Object with the report_name I get
    FRM-41219 : Cannot find report. invalid ID.
    I get the same error if I use Find_Report_Object also.
    Run_Product works fine.
    regards
    krish

    I hope this will help you, I have found it on Metalink:
    "FRM-41219 Cannot Find Report: Invalid ID"
    This message essentially means that the report cannot be found.
    Specifying the correct name of a report object found in the
    forms object navigator (not the actual name of the rdf file)
    usually resolves the problem.
    Helena

  • Next statement of RUN_REPORT_OBJECT is getting executed before it finishes

    Hi
    I am generating a report using RUN_REPORT_OBJECT(repid, List_id)
    And after this statement I am sending this report as an attachment (with some subject and message).
    Sometimes before generating the report the email is going with no attachement.
    Could you please tell me how can I avoid this?
    regards

    Try something like the following after the RUN_REPOR_OBJECT
    -- Get the Report Status
    vcStatus := Report_Object_Status(vcJob);
    WHILE (vcStatus IN ('RUNNING','OPENING_REPORT','ENQUEUED')) LOOP
      vcStatus := Report_Object_Status(vcJob);
    END LOOP;where vcjob is the retrunvalue of RUN_REPORT_OBJECT
    Edited by: Andreas Weiden on 31.05.2010 20:09

  • RUN_REPORT_OBJECT does not return  a value

    I am using Reports 6i (via web browser) on an Oracle 8 database.
    We have just recreated our entire development database. When running a report from a form, the web browser pops up with a blank screen. No changes has been done to the code. None of the reports now work on our dev environment.
    However, I have now found that RUN_REPORT_OBJECT is not retirning a value. What would cause RUN_REPORT_OBJECT not to return a value?
    My code behind the button on the form that calls the report is as follows:
              report_id := find_report_object('nl4689');
              f_file_name := :illprint.report_number||'.lis';
              html_file_name := :illprint.report_number||'.html';
              set_report_object_property(report_id,report_execution_mode,batch);
              set_report_object_property(report_id,report_comm_mode,synchronous);
              set_report_object_property(report_id,report_destype,file);
              set_report_object_property(report_id,report_desname,:global.user_home_dir||f_file_name);
              set_report_object_property(report_id, report_other,
              'p_branch='||:b1.branch_code||
              ' p_class='||:b1.p_class);
         report_job_id := RUN_REPORT_OBJECT(report_id);
              host('txt2htmlhpux '||:global.user_home_dir||f_file_name||' > '||:global.user_home_dir||html_file_name);
              web.show_document(:global.user_home_dir||html_file_name,'_BLANK');
    Thanks

    That is set correctly. All these applications were working fine. We only have this issue after re-building our development environment.
    I have personally run the application and noticed that there are error messages as well.
    When getting the report id from RUN_REPORT_OBJECT, the following error appears
    REP-0004: Warning: Unable to open user preference file.
    Immeditely followed by:
    REP-3002: Error initializing printer. Please make sure a printer is installed.
    Edited by: Rick777 on 20-Jan-2010 03:34
    Edited by: Rick777 on 20-Jan-2010 03:39

Maybe you are looking for

  • How do I transfer photos from one library to another?

    how do I transfer photos from one library to another?

  • Using table component,not binding

    Hi all, I've been searching info about using the table component , adding,deleting,etc programatically, not binding to a Database how the JSC tutorial works. The idea is simply: - add and remove rows when the user fills a textbox and push a button to

  • PSE12 download keeps failing with error codes DF006 and DF016. [was:Question]

    I have purchased elements 12 for my Macbook pro but the download keeps failing with error codes DF006 and DF016. What can I do?

  • Unable to install with Windows 7 and IE9 x64bit,

    I got a new PC to day , and I want to download Itunes. When I download it looks ok, but when the computer is trying to install I got this warning message: "Can not open this installasionpakkage,Control that the package excists and the axcess to it, o

  • Flash keeps lagging

    I'm having an issue with severe frame rate drops and video lag (Usually the video will stop for a second but audio and everything stays fine) and this is happening with just about any video site except YouTube. It's not my Internet connection, as my