Hide username and password while calling Oracle reports from  forms11g

Is there any other methods to hide the username and password other than define keymapping in CGICMD.DAT file in oracle forms 11g.

Hope fully following code of procedure will eliminate the username and password.
PROCEDURE RUN_REPORT_OBJECT_PROC(
report_format                VARCHAR2,
report_destype_name     NUMBER,
report_file_name           VARCHAR2,
report_otherparam          VARCHAR2) IS
report_message           VARCHAR2(1000):='';     
rep_status           VARCHAR2(1000):='';
vjob_id                               VARCHAR2(4000):='';
hidden_action               VARCHAR2(7000):='';
v_report_other               VARCHAR2(4000):='';
i                                                  number;
c                                                  char;
c_old                                        char;
c_new char;
report_id REPORT_OBJECT;
report_server_name      VARCHAR2(100); --Report Server Name
report_dest                         VARCHAR2(100); --Report Destination
reports_servlet               VARCHAR2(100); --Report URL
report_path                         varchar2(100);
v_port                                   varchar2(10);
BEGIN
     reports_servlet := 'http://localhost:7778'/reports/rwservlet';
     report_path := report_dest||report_file_name;
     report_id:= find_report_object('rep_obj');
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,report_path);
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,report_server_name);
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,report_destype_name);
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,report_format);
     hidden_action := hidden_action ||'&report=' ||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
     hidden_action     := hidden_action ||'&destype=' ||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
     hidden_action     := hidden_action ||'&desformat='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT);
     hidden_action     := hidden_action ||'&userid='     ||GET_APPLICATION_PROPERTY(username)||'/'||
                                   GET_APPLICATION_PROPERTY(password)||'@'||
                                   GET_APPLICATION_PROPERTY(connect_string);
     c_old :='@';
     FOR i IN 1..LENGTH(report_otherparam) LOOP
          c_new:= substr(report_otherparam,i,1);
          IF (c_new =' ') THEN
               c:='&';
          ELSE
               c:= c_new;
          END IF;
          -- eliminate multiple blanks
          IF (c_old =' ' and c_new = ' ') THEN
               null;
          ELSE
               v_report_other     := v_report_other||c;
          END IF;
          -- save current value as old value
          c_old := c_new;
     END LOOP;
     hidden_action := hidden_action ||'&'||v_report_other;
     hidden_action := reports_servlet||'?_server='||report_server_name||hidden_action;
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction='||hidden_action||' '||report_otherparam);
     report_message     := run_report_object(report_id);
rep_status      := report_object_status(report_message);               
     IF rep_status='FINISHED' THEN
          vjob_id :=substr(report_message,length(report_server_name)+2,length(report_message));           
          WEB.SHOW_DOCUMENT(reports_servlet||'/getjobid'||vjob_id||'?server='||report_server_name,' _blank');
     ELSE
          null;
     END IF;
END;

Similar Messages

  • Passing username and password while calling the simple HTTP API

    Hi,
    I want to execute a graph by calling the http api from a java code. However, this gives me a 401 unauthorized http error as I am not passing the username and password to the clover http url.
    The following is the format of the constructed url. - http://<host>:<port>/clover/simpleHttpApi/graph_run?sandbox=<sandboxname>&graphID=graph/Baseline.grf&verbose=FULL
    Can anyone suggest how to pass user credentials to this url.
    Thanks

    Brett,
    Thanks for the response.
    The idea is to run the baseline graph using the simple http api and get the run id of the job. Then I plan to call
    this url - http://<host>:<port>/clover/simpleHttpApi/graph_status?runID=1310924&returnType=STATUS_TEXT&waitForStatus=FINISHED_OK by passing the obtained run ID of the previous job dynamically to this url. This status has to be read and printed on the screen. Now all this is easy to write using java and executing the java class using the JAVA EXECUTE component of Integrator ETL 3.1. My only problem is how do I pass the user credentials.
    Thanks

  • Error while calling oracle reports from another report

    Hello everyone,
    I have a problem running oracle reports. In one report I have a button
    that calls another report. There is a button for each row of the result
    in the first report , and i have used Srw.run_report to call the second
    report.
    My problem is, when I run the report, at the first time i can push the
    button and the second report opens and works correctly. But if i close
    the second report and come back to the first one, when i push the
    button for a different row ,the second report starts to run but then I
    get some oracle errors like table does not exist or... while the first
    time the report worked correctly.
    It seems that when i close the second report and go back to the first
    one, sth happens that changes my session or connection. I don't know
    what can be the problem.
    By the way, when I log in with the user that owns the tables and has
    all the privileges, I don't get this problem. It only occurs when I
    use other users ( which have all privileges on all of the tables
    needed in the report )
    I am using Report Builder 6.0.5 and the DB is Oracle Database 10g.
    Can anyone please help me with this problem?
    Thanx in Advance.
    Maryam.

    6.0.5 is not certified against 10g database, so I suggest to upgrade to 6.0.8.26 (6i patch 17) first to see if the problem is gone.

  • Call Oracle Reports from  Forms ver 9i or 10g

    Hi,
    Can somebody guide me, how to call Oracle Reports from the Oracle form 9i,
    Run_product is no more available into 9i & 10g, Run_report_object is not working with out put type "Screen" or "preview".
    What is the best way to call the reports from the form ??? pls help...
    Thanks in avdance.
    Jitesh ([email protected])

    You can use RUN_REPORT_OBJECT with CACHE type, and WEB.SHOW_DOCUMENT to view the document on the screen.
    In the Forms help you should find examples.
    If you have access to Metalink, have a look at Note:207396.1.

  • Call oracle reports from MENU in oracle ebs

    is it possible in oracle ERP EBS R12
    how to call oracle reports from menu [any screen] in oracle ebs erp r12??
    please help

    you may do a few things from menus and by adding buttons, but this is not really standard.
    You may add button on the form or web page that after a certain action or event. You'll have to do personalization / extension and everything is present in oracle for normal report submission.
    Why this is not done thru normal submission ?

  • Regarding tutorial of how to call Oracle Reports from APEX

    Hi,
    I'm trying to call Oracle Reports from APEX using this tutorial.
    http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
    But in the step of 'Create the Oracle HTML DB Application', 'OE' doesn't appear in the LOV of Existing Schema, even though the sample schema exists in the schema and they are unlocked. And when I type 'OE' directly without using LOV, and press Next, the message 'Schema is reserved or restricted' appears.
    How can I create the workspace based on OE schema?

    Hello Shohei,
    I know your following the tutorial, but if you want to call oracle reports from apex it is quite easy though if your working with oracle reports 9i or higher. Just create an html region and put in the source the html code for referencing an url like to_report
    Or reference the same url from a button placed on the HTML region
    (you can create a package that would create the whole URL and returns it as a string, easier for scalability)
    Hope this can help you to (tutorial is good but try and learn from scratch is also good ;-) )
    Erwin

  • How to call Oracle Reports from APEX

    Dear All,
    I am new to APEX. My first job assignment is "calling oracle reports from apex".
    Can any one help me on this? Is there any online examples / tutorials from OTN site?
    TIA.

    Hi Joe,
    the how-to is still valid for APEX 3.0. Calling an Oracle Report from APEX is still the same, it's basically the URL you build for the report call and Oracle Reports hasn't changed that format.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • How to call oracle reports from ADF application.

    Hi
    I am migrating oracle 11g application to ADF. I would like to call oracle reports from ADF application.

    There is nothing similar to forms-reports integration, but you can invoke rwservlet url.
    Here is sample and utility class: Sameh Nassar: Call Oracle Reports From Your ADF Application
    Dario

  • Hide username and password

    Dear all ,
    I am using 10g Application server .
    How can i hide username , password and connect strig while running report on web by web show document ?

    one alternative solution for hiding username and password is
    u can use frames.
    all u hav to do is the connection code should be written in the frame.
    cal this frame from where u hav to cal the report.

  • How to give Username and password when calling HTTP page?

    I have this code when i run this I get credentials error. How to give credentials .The authentication is set to windows in the https page. Means pop up will appear to get the credentials
    declare
    req UTL_HTTP.REQ;
    resp UTL_HTTP.RESP;
    value varchar2(1024);
    p_url varchar2(4000);
    OPT varchar2(1000);
    BEGIN
    dbms_output.put_line('');
    p_url:='http://www.xyz.com/';
    dbms_output.put_line(p_url);
    req := UTL_HTTP.begin_REQUEST(p_url);
    utl_http.set_header(req, 'User-Agent', 'Mozilla/4.0');
    resp := utl_http.get_response(req);
    loop
    utl_http.read_line(resp, value, true);
    dbms_output.put_line(value);
    end loop;
    exception
    when utl_http.end_of_body then
    utl_http.end_response(resp);
    END;
    When i run this i get
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>401 - Unauthorized: Access is denied due to invalid credentials.</title>
    <style type="text/css">

    Basic authentication is set using the UTL_HTTP.Set_Authentication() call.
    If you are using a proxy and need procy authentication, you can set the username and password for proxy access, as part of the proxy URL. E.g.
    utl_http.set_proxy( 'http://proxyuser:[email protected]', null );NTLM (Windows NT LAN Manager) authentication is proprietary and not part of the HTTP specifications. If that is needed, try and use the username and password as part of the URL - or do some research on how to manually perform NTLM authentication.
    If you are using HTTPS, you need an Oracle Wallet with that server's certificate (making it a trusted certificate), and then set/use the wallet using the UTL_HTTP.Set_Wallet() call. See sample code in {message:id=10820182}.

  • Error - while calling Oracle report

    X Error
    REP-771: 'afterpform': Fatal PL/SQL error occurred.
    ORA-01403: no data found
    Hi,
    I have Oracle reports integrated into HTML DB. When I run this application, I get above error. I have tried purging user preferences. But, I still get the same error. This report works correct when I try running this on Oracle reports.
    This application used to work until two days ago. Right now, it is giving this error for some reason. Could some one let me know if I am missing something. Thanks,
    Lakshmi

    Hi SriLakshmi,
    How are you calling the Oracle Report. Because the error you are seeing is from Oracle Reports and not from HTMLDB.
    Please let me know how you are calling Oracle reports maybe I can help you .
    Vivek Ananda
    [email protected]

  • Prompting for UserName and Password when I click Report Server Web Service URLs in ssrs 2008 R2

    Hi All,
                 I am using SQL Server Reporting services 2008 R2 . When I tried to open report server webservice URL in SSRS 2008 R2 It is prompting username and password. I tried to resolve the issue by deleting the <!--
    <RSWindowsNegotiate/> --> line in rsreportserver.config but still I am getting the same prompt
    and i tried by putting the server URL in trusted sites in IE also still no luck. I referred the below link 'http://blogs.msdn.com/b/lukaszp/archive/2008/03/26/solving-the-reporting-services-login-issue-in-the-february-ctp-of-sql-server-2008.aspx'
    I am getting the same error.
    Can anyone help me out to resolve this issue easily.
    Thanks
    Dathy

    Hi Dathy,
    Generally, this is a very common issue in Reporting Services 2008 R2, the blog you post is a good blog that summary the common solutions. If it doesn’t help, could you please try the following:
    Open Internet Explorer, go to Tools and click on Internet Options.
    Under the Security tab, click on Trusted sites and click the Sites button and Add Report Manager/Report Server URL to the trusted sites.
    Then click Custom Level, and check the option Automatic logon with current user name and password.
    Repeat step 3 and step 4 for Local Intranet.
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Ask for Username and Password while Opening an Applet

    Can we code such a way that , While we open an Applet , It should ask for User and password and upon sucessful validation , the Main applet must be loaded !
    Any Suggestions Please !
    Thanks .....

    public class FirstApplet extends Applet {
         private boolean authentified = false;
         private SecondApplet applet = null;
         public void init() {
              System.out.println("FirstApplet: init()");
              authentified=authentificate();
         public void start() {
              System.out.println("FirstApplet: start() "+authentified);
              if (authentified==true) {
                   applet=new SecondApplet();
                   applet.init();
                   applet.start();
         public void stop() {
              System.out.println("FirstApplet: stop()");
              if (applet!=null) applet.stop();
         public void destroy() {
              System.out.println("FirstApplet: destroy()");
              if (applet!=null) applet.destroy();
         private boolean authentificate() {
              System.out.println("FirstApplet: authentificate()");
              // ask the user for username and password
              // check the password, if it's ok, return true
              // if it's not okay, return false
              // how to do a login window, see
              // http://www.codeguru.com/java/articles/510.shtml
              return true;
    }

  • Username and Password while starting the weblogic

    Hi All,
    Whenever I call the start script to start weblogic the script asks for the username and password I tried changing the script many times with and without the values but it always requests for the username and password.Is there anything which needs to be set in the admin cosole.
    Let me know.
    Thanks
    sandhya

    Hello Sandhya,
    You need to specify boot up credentials in boot.properties files ,so at startup server doesn't prompts for them. Refer this link for more informaition. Once you bring the server up, these credential will get encrypted and thus seucured also.
    http://e-docs.bea.com/wls/docs81/ConsoleHelp/startstop.html#BootIdentityFiles
    Regards,
    Kuldeep Singh.

  • Xdb username and password while accessing servlets

    Hi all,
    I just installed application server 8.2. I wrote a simple login.html and a servlet program. The deployment went fine but when I access from browser and click sunbit in login page, it asks for a xdb username and password. I don't remember giving it during installation. What is this?
    Thanks

    Hint: "Search Forums" feature can be your friend :-)
    http://forum.sun.com/jive/thread.jspa?forumID=129&threadID=52586

Maybe you are looking for

  • How to make a sign-in Board

    Can I use photoshop elements to create a sign-in board?  I want to make a 24x36 page that will be mounted on Foam Core for my daughter's friends to sign using a sharpie.  I want to make the background BLUE, add my child's name in TEXT at the top and

  • N96 ON OPTUS! FIRMWARE VERSION 11.101 UPDATE AVAIL...

    Ye Gods!!! I tried updating this morning and was still told by NSU that 10.065 was still the current version. I phoned Optus to find out how the ticket I lodged three weeks ago about 'approving the release' was going, only to be told there was no res

  • HT3275 What does "The backup disk image "/Volumes/Data/apple's iMac.sparsebundle" is already in use.

    My back up is no longer working.  The errors that come up are "The backup disk image "/Volumes/Data/apple's iMac.sparsebundle" is already in use."  Does anyone know what this means?

  • Update vendor master Classification Data

    Hello Folks, I am using Cremas message type to distribute the idocs from one system other system(SAP systems).. However i also need to update the Classfciation data.... In the basic type CREMAS05  there is no option for this.. I know couple of messag

  • Problems with recovery m

    I finally figured out how to get recovery mode, turns out i was doing it wrong. But I got it and i'm trying to connect it to my pc. Here's the problem, I plug in my USB cable for my MuVo^2 and my LCD screen switches to the transferring screen as if i