Web.show_document in Forms 11g

Hi, I've migrating my application from forms 6i to forms 11g.
In my application I use web.show_document to open some document using the http alias defined in httpd.conf under Oracle iSuites Http Server
in httpd.conf I define
Alias /my_document_folder/ "c:/document/"
and in my application code
web.show_document('/my_document_folder/my_document.doc');
How can I define the alias http alias for Forms 11g
Thanks..

Hi All,
I am facing some issue while seeing the report using web.show_document as shown below:
https://ucrmskr.apac.nsroot.net:10301/forms/html/001725032_gca.rtf_
In this case the report opens directly without asking for me to save or open or cancel option
whereas if I hit
http://scrmskr.apac.nsroot.net:7801/forms/html/001725032_gca.rtf_
it asks for save or open or cancel option
so that I can save the report to my machine and open in wordpad format
The report generated in the first case is not coming in proper format
Below are my forms.conf mappings:
# Name
# forms.conf - Forms component Apache directives configuration file.
# Purpose
# It should include the weblogic managed server (routing) directives for
# the servers where Forms applications are deployed and other miscellaneous
# Forms component OHS directives.
# Remarks
# This file is included with the OHS configuration under
# $OI/config/OHS/<OHS Node Name>/moduleconf sub-directory.
# virtual mapping for the /forms/html mapping.
RewriteEngine on
RewriteRule ^/forms/html/(..*) /workaroundhtml/$1 [PT]
AliasMatch ^/workaroundhtml/(..*) "/ucrmap1/weblogic/bea/ucrms/config/FormsComponent/forms/html/$1"
RewriteRule ^/ucrms/icons/(..*) "/workaroundicons/$1" [PT]
AliasMatch ^/workaroundicons/(..*) "/ucrmap1/weblogic/bea/ORA_PFRD/forms/java/$1"
RewriteRule ^/forms/help/(..*) "/workaroundhelp/$1" [PT]
AliasMatch ^/workaroundhelp/(..*) "/ucrmap1/ucrrgbg2/help/$1"
<Location /forms>
SetHandler weblogic-handler
WebLogicCluster kauh0079:9001
DynamicServerList OFF
</Location>
Please let me know what needs to be done additionally if we are trying to hit https because in the second case we were hitting http with similar mapping in diff environment and it was generating report successfully.
Regards,
Harish

Similar Messages

  • Unable to create a reports server to test web.show_document in Forms 10.1.2

    Hi all,
    In Forms 10.1.2 DS, I'm trying to use the web.show_document built-in to 'generate' a report from a .jsp file. This JSP file was created by wizard through creating a report object in the Object Navigator. The code I'm using from a push button is as follows:
    web.show_document('http://<hostname>:8889/reports/rwservlet?report=<dirpath>\Sales.jsp&userid=<username/password@connectstring&server=<server_name>'
    As far as I am aware no 'reports server' has been created so I've tried the following command in a dos window:
    rwserver -install <server_name>
    but this just raises an 'alert' indicating that I should consult an installation guide to setup and install the server. So my questions are:
    (1) Is what I'm trying to do supported in DS?
    (2) What installation guide should I consult?
    Any information on this would be gratefully appreciated,
    Kevin.

    Hi Inol,
    Thanks for the response. I agree with the comment about exposing user details, I'm just doing a bit of experimenting at the moment! I tried to do what you suggest in terms of changing the URL but whether I reference the server or leave it out, the subsequent browser session seems to hang and then eventually I get a 'Page Not Found' response. On using the URL 'http://127.0.0.1:8889/reports/rwservlet/showenv?', I get an 'Access Denied' Error Page. Is there something additional I need to set up with regards to Reports to get this to work?
    regards,
    Kevin.

  • Abt web.show_document in forms 10g

    hi,
    i am trying to call the following code in forms 10g
    web.Show_document('javascript:alert("hello world")','_blank');
    but its not working ,plz help me !!!
    ThanX in Advace
    chandra

    This is a browser problem, not a Forms problem. First check your broswer to make sure it has JavaScript enabled. If it still doesn't work, and you are able access a html page using web.show_document(), then your browsers security setting is preventing the JavaScript operation from ocurring.
    It works for me and i'm using IE v6.0.2900 sp2.

  • Can I use web.show_document with forms name parameter ?

    Hi All,
    I need to pass URL to web.show_document but with form name too. Is it possible?
    I'd like to do something like web.show_document('url?report=myReport','_blank')
    Thanks in advance
    Edited by: _blackjack on Dec 13, 2012 2:17 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Yes, you can use any valid URL within web.show_document

  • Forms 11g - web.show_document

    Hi!
    How can i reach the reports server with web.show_document in Forms 11g?
    "opmnctl status" shows the running reportsserver but when i make a call e.g. to
    http://pc1:8888/reports/rwservlet?report= ... a.s.o.
    the error message: Failure of server apache bridge:
    no backend server available for connections ...
    is thrown.
    any ideas?
    thanks in advance!
    Magoo

    Can you please specify the OS you are using. Because in Windows XP and Vista, only Forms & Reports Builder and Runtime are supported, and the system components (OHS, WC) are not supported.
    If you have installed in a Windows 2003 Platform and install is done with the system components, then the issue is with the OHS.
    OHS seems to be down.
    You can bring up the OHS, Reports Server through OPMN or start menu. And WLS_REPORTS from the start menu.
    In the command prompt, cd $ORACLE_INSTANCE\bin (By default - C:\oracle\Middleware\asinst_1\bin) run the command:
    opmnctl.bat status -l :- Will give the status of the components. If System components are not installed, this will not work.
    opmnctl.bat restartproc ias-component=ohs1 :- Will restart the OHS.
    This can be done from the Start Menu also:
    StartMenu -> Oracle Classic Instance - <Instance Name> -> Stop Oracle Http Server - ohs1
    StartMenu -> Oracle Classic Instance - <Instance Name> -> Start Oracle Http Server - ohs1
    You can stop and start the WLS_FORMS from the start menu:
    StartMenu -> Oracle Classic Instance - <Instance Name> -> Forms Services -> Stop WebLogic Server - WLS_FORMS
    StartMenu -> Oracle Classic Instance - <Instance Name> -> Forms Services -> Start WebLogic Server - WLS_FORMS
    Status of the WLS_FORMS can be seen from the Admin Console:
    http:<hostname>:7001/console (use the pwd given during the Classic SH install).
    Under Environment section, click Server.
    Summary of Servers Page will show the status of the WLS_FORMS.
    If you want to stop and start, select Control tab. Check the check box and press the corresponding button.

  • Web.show_document gives FRM-92020 error unknown protocol

    Hi I am hoping someone can help.
    I am using web.show_document in forms 10g and get an FRM-92020 unknown protocol error. The URL I am passing starts fddl:// this is a legitimate call to an Electronic Document management system image search engine. The URL works 100% outside of Forms, i.e cut and paste into an internet Explorer address bar. The problem is with web.show_document parsing for 'known' protocols.
    Is there any way I can stop this validation from taking place. Incidentally I can HOST out and call iexplore with the URL and again that works (client Server), however we do not have webutil installed for me to do the webutil equivalent in our live environment!
    Any help will be great, thanks in advance.
    Trev.

    Hi Francois,
    thanks for replying.
    Yes I am using '_blank' as the second parameter.
    The URL I am passing is dynamically genreated and held in a variable. My call is:
    web.show_document(l_url,'_blank');
    the url evaluates to something like below:
    l_url := 'fddl://fmhsqlserv/filedirector/...........................'
    I am struggling to find any documentation on web.show_document that will help with this scenario. It is frustrating as the url is 100% OK, its just the evaluation of it by the function call.
    Any help or ideas are welcome.
    Trev

  • Ops$ and forms 11g

    Hi ,
    We are in a middel of a project to upgrade our Forms6i client-server to Forms11g (web).
    The Forms 11g application is up and running .
    In the database level (oracle 10gr2) our end users connecting to the database as an external user , e.g: OPS$XXXXXX
    The problem is that application is starting as the owner of the schema (say SCOTT for example) and not as OPS$ as it used to be in forms6i.
    Having so cause as several problems :
    1) All the users in v$session are getting SCOTT priviliges and not OPS$ , which mean that i cant identified which user is executiong a form or report
    2) Since the DBUSER is SCOTT and not OPS$ , means that the stored procedure in the DB are NOT running under the right user.
    Please advice how to solve this issue.
    Thanks

    Hello Carig,
    Its seems to be that i wasnt clear enough .
    In forms 11g , there is a file named : formsweb.cfg
    At this file i have the following entry :
    [devdb]
    userid=xxx/yyy@devdb
    envFile=devdb.env
    While devdb is the database name , xxx is the name of the schema owner , and yyy is the password of that user.
    All my end users do NOT own any database objects at all.
    All they have is a priviges that the owner of the schema (xxx) assigned to them.
    For example they have assigned insert and select on table A at schema XXX
    Problems:
    1) Since all my end users are externaly users (e.g OPS$ABCD....) , they cant connect to the forms11g application as external users.
        What should i do in order to allow them to connect to the forms application.
    2) If i will follow your first option , then user A for exmaple will became to be XXX , and have all its privileges - and its somthing that i dont what.
    Please advise how i can solve this problem .  

  • WEB.Show_Document(POP Up Window In 11g forms)

    Is it possible to open a Http inside the POP Up Window In 11g forms.
    This is what i tried to use:
    Created a Dummy Window,dummy Canvas and by clicking the push button i gave this message:
    web.show_document('http://www.google.com','Html_Window');
    WEB.Show_Document will open only in seperated window but i need to open in the Pop Window is it possible please help on this.

    As Denis mentioned, you cannot show html content natively in a form. You would need a bean to do that. However, if you are just trying to create something that looks like a standard browser pop-up window, there are several ways to do it. Be aware however, that in some cases, the following example will not work if you are using an older JRE. The latest JRE is 1.6.0_29 and runs the following code correctly assume the browser is not set to block pop-ups.
    EXAMPLE 1:
    web.show_document('javascript:window.open ("http://www.oracle.com","myPop","location=no,toolbar=no,menubar=no,status=no,resizable=yes,height=600,width=600");self.close();');
    EXAMPLE 2:
    Declare
         inJS      varchar2(32767);
    Begin
         -- More info about window.open here:
         -- http://www.w3schools.com/jsref/met_win_open.asp
         inJS := 'new_win=window.open("http://www.oracle.com","new_win1","menubar=0,location=0,toolbar=0,status=0,scrollbars=1,resizable=1,width=500,height=600");';
         web.javascript_eval_expr (inJS);
    End;

  • 11g report bug !!!!  web.show_document paramform=yes   arabic problem

    hello,
    my problem already mentioned here .
    Arabic parameters with web,show_document  using parameters form not working
    i'm using Fusion 11g form & report 11g.
    my report support arabic, database also support arabic.
    my problem happen when i run my report with parameter form from browser url directrly as :
    http://localhost:9002/reports/rwservlet?report=d:\mojform\report.jsp&destype=cache&desformat=htmlcss&userid=scott/tiger&paramform=yes
    report query is : select * from emp where ename = :P_ename;
    the report run fine and i'm able to query and employee name and retrive them correctly from database. but i have some employees thier names is in Arabic
    text like 'احمد' when i enter this word in the paramter html form in the browser it return null, in sqlplus it work good and return the row.
    to make sure i add the name add fixed list and also as LOV in report user paramter form , it works fine when i choose english name from the LOV and return the row
    but when i choose an arabic name it said Warning: The value of restricted LOV parameter P_Ename !!!!??????
    viwing arabic LOV in Html form is working fine but passing this name as aparameter to the report server return null when using fixed list and when using LOV returns the above message..
    any i dea
    Edited by: user9283292 on Oct 6, 2011 11:40 AM

    hello,
    Thank you for reply.
    Yep, i already set the appropriate charset for the report server as you mention.
    still when i use Arabic as input in the parameter form box it return null.
    and when i a force the parameter box to user LOV it said : REP-0788: The value of restricted LOV parameter P_ENAME is not among the selectable values.
    I'm using Windows-1256 characterset in both 10g Database and both system registry ( Database Home) & ( Fusion home) also in the
    rwservlet.properties i use windows1256 also i use UTF-8 , but nothing ...
    any suggestions ???
    any suggestion.

  • Reports 9i Printing from Forms with WEB.SHOW_DOCUMENT

    I want to print a Report from Forms via WEB.SHOW_DOCUMENT directly to the printer and it works fine.
    But every time i print it from my web application a new browser-windows opens and shows a message "Printed successfully" or something like that. If I start the printjob again nothing happens - if I press the Browser-Refresh-Button in the new Browser-Windows with the Message ("Printed Successfully") it prints.
    So now I have 2 questions:
    a) How can I disable the "Printed successfully"-Message
    b) What hava I to do that I not must press on the Refresh-Button to start the printing again
    I hope I hava explained my problem clearly. 4
    Here ist the complet WEB.SHOW_DOCUMENT-Command I fire in Forms when a Button is pressed:
    WEB.SHOW_DOCUMENT('http://mymachine:8888/reports/rwservlet?report=testreport.rdf&destype=printer&desname=\\NTS32\VZ_D3&desformat=html&userid='|| sUser ||'/'|| sPW ||'@'|| sDB,'_blank');      
    Many thanx for your help!
    Regards
    Marc

    Hello,
    for the problem:
    b) What hava I to do that I not must press on the Refresh-Button to start the printing again
    may be it just a setting in your Browser ?
    For Internet Explorer :
    go to I.E General Options screen. click on settings button and choose
    "Every visit to the page " option.
    Regards

  • Launching a new form using web.show_document

    Using 9iAS 9.0.2.1.1. and Forms9i I'm trying to get a form to launch a new browser window and open a new form in it. At present I'm using web.show_document to do this. However, I get an error message stating that 'Connection from new browser window is not supported'. From an earlier thread in this forum I found a possible solution which is to set the session.useCookies to false in the zone.properties, which I have done, but I'm still getting the same error. I've tried restarting the OC4J_BI_Forms OC4J and the HTTP server, but nothing makes any difference. Am I missing something?

    If you are attempting to print a report from a when-button-pressed trigger from within a form, you do not have to explicitly specify the server (hostname) nor the port. You can just use what I've found referred to as a virtual path to the server as I have done here:
    parm_string := '/reports/rwservlet?config=my_config&report=report_name'
         ||'&desformat=pdf&destype=cache'
         ||'&paramform=no&printjob=no'
         ||'&p_my_user_param1='||v_my_param1
         ||'&p_my_user_param2='||v_my_param2;
    web.show_document(parm_string,'_blank');
    You can specify a userid/password@connectstring within a named congifuration section of your formsweb.cfg file if necessary, e.g. my_config.
    Hope this helps.
    James K.

  • Form calling Report with web.show_document caught by SSO

    A 10g form button calls a 10g report via web.show_document.
    In the dev environment it works, but in the full app server SSO is enabled and stops & prompts for a login/password.
    I'm trying to include the SSOCONN parameter in the URL. I've tried the db userid & the sso userid without success.
    Any help is much appreciated.

    How are you calling the report with Web.Show_Document (what's the URL you're passing)? The application I'm working on uses SSO and I call Reports from Forms and don't have this issue. You should just have to pass the return value of RUN_REPORT_OBJECT() in the URL along with the server name - at least that is how we do it. For example (bare in mind this is an abbreviated example):
    DECLARE
         v_rep_rtn   VARCHAR2(4000);
         v_repsvrname      VARCHAR2 (100);  /* This is a CONSTANT and used here as an example */
         v_paramlist  paramlist;
    BEGIN
         v_rep_rtn := Run_Report_Object(v_report, v_paramlist);
         Web.Show_Document('/reports/rwservlet/getjobid'||substr(v_rep_rtn,Instr (v_rep_rtn, '_', -1) + 1)||
                          '?server=' || v_repsvrname);
         v_report    := Find_Report_Object('REP1');
         Set_Report_Object_Property(v_report, report_execution_mode, batch); 
         Set_Report_Object_Property(v_report, report_comm_mode,      synchronous);
         Set_Report_Object_Property(v_report, report_destype,        CACHE);
         Set_Report_Object_Property(v_report, report_desformat,      'pdf');
         Set_Report_Object_Property(v_report, report_server,         v_repsvrname);
         v_rep_rtn := Run_Report_Object(v_report, v_paramlist);
         rep_status := Report_Object_Status(v_rep_rtn);
         WHILE rep_status IN ('RUNNING', 'OPENING_REPORT', 'ENQUEUED')     LOOP           
              rep_status := Report_Object_Status(v_rep_rtn);        
         END LOOP;   
         IF rep_status <> 'FINISHED' THEN
              msg_box('Error when running report. Status = '||rep_status);  
         else
              Web.Show_Document('/reports/rwservlet/getjobid'||substr(v_rep_rtn,Instr (v_rep_rtn, '_', -1) + 1)||
                          '?server=' || v_repsvrname); -- || '&authid=orcladmin/admin999');
         END IF;
    END;Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks!

  • Web.show_document in calling parameter form of a report(solved)

    Hi,
    Can you please write which is the syntax of calling a report in Dev10g which has a parameter form.....????
    something like ....but i don't know how exactly....
    param_form_var:='yes';
    URL_VAR:='/reports/rwservlet?server='||rep_server_name_var||'&report=c:\erga\app\odoiporika_mono\sigk_katast_selected_months_.rdf'||'&desformat='||desformat_var||'&destype='||destype_var||'&userid='||username_var||'/'||password_var||'@'||tns_var||' param_form='||param_form_var;
    WEB.SHOW_DOCUMENT(URL_VAR,'_blank');
    NOT param_form='||param_form_var....
    but
    paramform='||param_form_var....
    Thanks ,
    Simon
    Message was edited by:
    sgalaxy

    Eventually , the report run... when the active thread got the value 1. How is it done...(i mean the value of 1 , instead of 2 when the report started...????) How to secure that the active thread would be 1 if this is the problem...????
    However , because the report is 2 page accross.... the report displays the first page and down the other page.... Is it possible to display both pages accross as i see them in report builder env....?????
    Thanks , a lot
    Simon

  • Calling a report from form using web.show_document

    Hi,
    Used the method as below, But , error reprot not found,
    Could anybody tell me how to get the server name from ny local machine as in the example servername ' Repsrv '
    /* WHEN-BUTTON-PRESSED */
    DECLARE
    vc_url varchar2(100);
    BEGIN
    vc_url:=‘http://<hostname><port>/reports/rwservlet?server='
    ||
    ‘Repsrv&report=reptest.rdf&desformat=htmlcss&destype=cache ’
    ||
    '&userid=user/pw@database&p_deptno='||:dept.deptno||'&paramform
    =no’;
    WEB.SHOW_DOCUMENT(vc_url,’_blank’);
    END;
    Thanks

    If you are attempting to print a report from a when-button-pressed trigger from within a form, you do not have to explicitly specify the server (hostname) nor the port. You can just use what I've found referred to as a virtual path to the server as I have done here:
    parm_string := '/reports/rwservlet?config=my_config&report=report_name'
         ||'&desformat=pdf&destype=cache'
         ||'&paramform=no&printjob=no'
         ||'&p_my_user_param1='||v_my_param1
         ||'&p_my_user_param2='||v_my_param2;
    web.show_document(parm_string,'_blank');
    You can specify a userid/password@connectstring within a named congifuration section of your formsweb.cfg file if necessary, e.g. my_config.
    Hope this helps.
    James K.

  • Passing parameter to Called form through Web.Show_document.

    i am calling a form say 'form2.fmx' from 'form1.fmx' using web.show_document. the parameter is concatenated with the URL string properly but this parameter is not accessible in the called form.
    Please Help
    thanks

    i am running forms Of 10G developer suit. i want to call and pass a parameter
    'emp_no'(employee no) to a form say 'form2.fmx' from the form say 'form1.fmx' on button
    click. so i have created a parameter named "emp_no" in the object navigator of "form2.fmx".
    in form1.fmx, i am using web.show_document(URL) function as given below.
    web.show_document('http://111.111.111.11:8889/forms90/f90servlet?form=form2.fmx&emp_no=7156&userid=scott/tiger@mysid','_blank');
    This function successfully call the "form2.fmx" but in this form the value of parameter
    "emp_no" is null even when i have passed it in the URL (as shown in the above code line)
    i.e; the value of emp_no is null.
    Note :
    7156 is the value of emp_no parameter.
    111.111.111.11 is the supposed ip address. etc.

Maybe you are looking for

  • Simple Button.Text not changing properly

    Hi all, The WPF learning curve is steep. I have pulled my hair over this simple Button.Text change and I can't get it to work. In WinForms this works: Public Class Form1 Private Sub BTN_1_Click(sender As Object, e As EventArgs) Handles BTN_1.Click BT

  • Ipad does not ring

    My ipad facetime does not ring when someone calls me.  I restarted the ipad2 checked the ringtone volume and sound settings everything is on and in general section the mute is off.  Why is it still not working I am missing my facetime calls.  Help. 

  • Error 1722 in Windows 7 LabVIEW Installation Application Deployment

    Hi, I am using Application Builder in version 8.5 of LabVIEW to deploy my stand-alone executable. I've never had an issue on Windows XP, and have had many successful installation on Windows 7. However now I have a customer who gets the following erro

  • HALB costs are not shown in Itemisation for Make to order

    Hi We are facing a problem in Make to order. When a production order is created with respect a sales order, semifinished costs are not appearing in Itemisation or cost component structure of Production order. In other cases like make to stock and pla

  • Hand Held Anti Virus

    Would someone please tell me how effective mobile anti virus for hand held are and which ones can be recommended for BB 9800 Torch? Seriously awaiting your answer. Solved! Go to Solution.