WEB.SHOW_DOCUMENT , FRM-92020 Prevention

Hi, I have a forms module where the user can specify a URL and then press a button to launch it using the WEB.SHOW_DOCUMENT procedure. If the user doesn't enter a valid URL, they get a message something like:
"frm-92020 Invalid URL C:\temp\test.htm
sent to browser with target _top
Full Details: unkown proctocol: c "
Does anyone know what the complete list of valid protocols would be that WEB.SHOW_DOCUMENT accepts? I would like to write some code using this detail to ensure that the user cannot enter a value with an invalid protocol. Obviously http:, file: and ftp: will be the most common, but are there others that WEB.SHOW_DOCUMENT will allow?
Thanks,
Michael.

Hi,
its http:// , file:/// and javascript:
Frank

Similar Messages

  • 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

  • Web.show_document and File Save As

    Hello,
    I have a Perl CGI scrfipt on the server that I can call from a web brwoser. Its purpose is do save a file passed in to any locatgion on the PC.
    In the borowser I can use:
    http://devpong/cgi-bin/cap/savefile.cgi?dirpath=/capexp/to_SGP&fname=ZU060920.C78
    and I get a Save As dialog and it is written to that directory. Works very well.
    This is the Perl CGI code:
    use CGI ':standard';
    use CGI::Carp qw(fatalsToBrowser);
    my @fileholder;
    my ($web_keys)= ["dirpath", "fname", "mode"];
    my ($Param) = get_params($Param, $web_keys);
    # print_head($Param);
    # redirectwindow($Param);
    open(DLFILE, "$Param->{dirpath}/$Param->{fname}") || Error('open', 'file');
    @fileholder = <DLFILE>;
    close (DLFILE) || Error ('close', 'file');
    print "Content-Type:application/x-download\n";
    print "Content-Disposition:attachment;filename=$Param->{fname}\n\n";
    print @fileholder;
    I want to do the same thing from the Forms 6i application. In web.show_document I put in the exact same URL that works stand alone in the browser and have tried all of the seceond argument setting (_BLANK, etc.). Just for a millisecond a window opens then immidately closes. I have included a raise FORM_TRIGGER_FAILURE in the trigger to make it wait, but to no avail.
    I found a document that said if a URL works in the browser, it will work in web.show_document. That is not true for me.
    Do I need to build an html page first to open in the borwser from web.show_document?
    Does webutil_file have the ability to let the user choose the destination directory?
    What we did in the past was to make sure the file extension was not in the registry of the PC. Then the browser would force a Save As dialog. With XP SP2 this does not work without making several changes to the file types.
    That is why I would like a solution that does not rely on file type set up.
    Any suggestions will be appreciated.

    Well, it sounds like you want the server to tell the client that this content shouldn't be read from cache...
    Among the posible solutions:
    Apache can be configurated with modules like 'mod_expires' and 'mod_headers'.
    Or, you could write a JSP file that sets the appropriate http headers and streams your file accordingly. The http headers I think you're interested in:
    - cache-control (to prevent client caching)
    - content-disposition (to set the filename of the download)
    You might want to read this thread:
    http://p2p.wrox.com/topic.asp?TOPIC_ID=29405
    Cheers,
    Mel.

  • IE Security Setting for web.show_document

    Hi,
    I've run a report on the report server and generated it as a pdf, now I want to open the PDF using web.show_document.
    As it starts to open I get an error message saying that the security settings of IE are preventing the opening of the file.
    I've not seen this before over a number of different installations. I've disabled the pop-up blocker for this site.
    After searching I've not found anything here.
    Is there any documentation on what to set the security configuration to?
    IAS v 10gR2
    IE v 6.0
    many thanks
    Tony

    Make sure that the URL you are opening, the OAS host server domain name in this case, is within the trusted sites of the browser.
    It happened with us when opening our application online from the internet.
    Tony

  • 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.

  • When run report from form(6i) on the web,error FRM-921000

    While I was trying to run report from form (6i)on the web,it will give me this error
    message FRM-921000 and hang.
    But when I try to call form using form,I do
    not have the problem.
    May I know ehat is the cause?
    Anybody encounter this before?
    Thanks
    null

    I am running Forms 6i on the web and attempting to call me report via RUN_REPORT_OBJECT. I am getting the same error as Jenny FRM-92100. I need to pass a parameter list so I don't think I can use WEB.SHOW_DOCUMENT. Any ideas???
    Thanks,
    Jenny N.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Joseph Schwertner ([email protected]):
    Dear Jenny,
    I am running reports from Forms 6i on the WEB. I did not encounter your problem. Nevertheless I would like to share the following with you.
    RUN_PRODUCT doesn't work for calling reports ON THE WEB. Instead using RUN_PRODUCT do the following:
    1. Install Oracle Reports Server
    2. For WEB calls of reports use WEB.SHOW_DOCUMENT
    3. Learn how to pass parameters to the reports. It is a litlle bit strange, but it is explaint excellent in the documentation to the Reports Server.
    I hope this will help you.
    Joseph Schwertner
    <HR></BLOCKQUOTE>
    null

  • Calling a report with web.show_document and put pdf in temp directory

    Hi,
    I need to call a report 10g with web.show_document in order to generate a .pfd file (not viewed by the user) as soon as the user press a button in a form.
    I have two problems. Firstly, after generate .pdf, it's opened a undesirable windows "process succefully" (I don't want that window). Secondly, in url parameter, I put:
    (...)DESTYPE=File&DESFORMAT=pdf&DESNAME=' || client_win_api.get_temp_directory
    the target directory to .pdf file might be the user temporary directory, and not c:\temp, because in Windows XP the user haven't some writing privileges.
    How there is spaces in temporary directory, like:
    C:\Documents and Settings\<user>\Local Configurations\Temp
    I supose that Get_temp_directory returns something that:
    C:\Documen~1\<user>\Local~1\Temp
    And web.show_document don't understand.
    Can anyone help me?
    Thanks a lot,
    medina.

    Hi Maahjoor,
    i have install windows xp on vmware having loop back adapter configure with ip 192.168.10.1.i am using oracle developer 10g suite and oracle 10g r2 database.
    i want to call a report using the following code on a button.i have attached the report to the form.
    i have started the report server by issuing rwserver server=repsrv.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status varchar2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('ALL_EXPENSES');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := RUN_REPORT_OBJECT(v_rep);
    WHILE rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    WEB.SHOW_DOCUMENT('http://192.168.10.1:8889/reports/rwservlet'||substr(v_rep,'_',-1)+1||'?'||'server=repsrv','_blank');
    ELSE
    Message('Error when running report');
    END IF;
    end;now when i run the command, i get this error
    frm-41214: unable to run the report
    frm-41219: cannot find the report.invalid id.
    argument 1 to builtin run_report_object acnnot be null.
    i thin the problem is with this line. WEB.SHOW_DOCUMENT('http://192.168.10.1:8889/reports/rwservlet'||substr(v_rep,'_',-1)+1||'?'||'server=repsrv','_blank');
    can anyone help? or a better piece of code?>
    I think you are mixing up the web.show_document usage for URL and with RUN_REPORT_OBJECT.
    I hope you have studied this document http://www.oracle.com/technetwork/products/migration/frm10gsrw10g-132606.pdf . It has the required examples and code.
    Cheers,

  • Firefox + web.show_document()

    Hi guys
    I'm developing an application in 10gR2, testing on firefox 1.5.0.7.
    The issue I am having is that web.show_document(<url>,'_blank') only works once in firefox. The next time it is called, no browser window pops up. I literally have to shut Firefox down completely and restart it in order for another call to show_document to work. I have tried closing just the form and the tab in firefox (but keeping firefox open), then restarting the form. The next call to show_document in this case does nothing... so I truly have to completely exit the firefox application for the next show_document call to work.
    The same form is able to launch multiple separate windows in IE 6 without problem.
    Anyone has a similar experience or ideas?
    Is there any way to detect which browser the client is running without a custom bean?
    Thanks

    I have just tested this with Firefox 1.5.0.7 and Jinit 1.3.1.22 and Sun 1.4.2_12 and Sun 1.5.0_09. I cannot reproduce the problem.
    Be sure that you do not have any popup blockers or other Internet Security applications preventing the new page from being launched. Consider applications like Norton Internet Security and McAfee Internet Security.

  • Abt web.show_document

    hi,.
    i am trying to call the builtin in forms 10g
    web.Show_document('javascript:alert("hello world")','_blank');
    but its not working!!!!
    can anybody help!!!!!!
    thanX in advance
    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.

  • Alternative of WEB.SHOW_DOCUMENT ?????

    Hi,
    Please tell me what is alternative of web.show_document ????
    I dont want to open browser while report running .....
    Thanks

    Hi Alex,
    Thanks for such brief reply.I really appriciate that. I have used your code but when I tried to run report by click button a message arise "FRM-41214 Unable to run report" . I create report object named "report6" and then set its properties
    Filename=c:\cust_print.rdf
    Destination Type=screen
    Destination Formate=pdf
    Report Server=reptest
    and used following code in the when button pressed trigger
    DECLARE
      repid REPORT_OBJECT;
      v_rep VARCHAR2(100); 
    rep_status varchar2(20);
    BEGIN 
    repid := find_report_object('report6');
    v_rep := RUN_REPORT_OBJECT(repid); 
    rep_status := report_object_status(v_rep);
      if rep_status = 'FINISHED' then   message('Report
    Completed');   copy_report_object_output(v_rep,'c:\cust_print.rdf');
    --  host('netscape d:/temp/local.pdf');  else
      message('Error when running report.'); 
    end if;
    END; When I click Button then unable to run report message arise and this report is running in report builder.
    Where is the problem any idea?
    I am using 9.0.4 dev suit.
    Best Regards
    Message was edited by:
    53637

  • Web.show_document-i dont want to open report in browser just save in folder

    Hi all,
    I m using the following code for pdf file generation using a loop. The problem is every report is open in browser and then save a pdf file in a specific folder. I want that report is not open into browser just save pdf files in a specific folder. Any body knows how i do this. I am using 10g developer 9.0.4.
    DECLARE
         v_SAM_CUST_ID     NUMBER(22);
         CURSOR C1 IS  SELECT
         SAM_CUST_ID
         FROM SAM ,DE_ADDR
         WHERE SAM.SAM_CUST_ID=DE_ADDR.DE_CUST_ID
         AND SAM.SAM_FREQUENCY IN ('DAILY','MONTHLY','Quarterly','Half yearly','Yearly');
    BEGIN
           if :TEXT_BOX1='S' then
           OPEN C1;
           LOOP
           FETCH C1 INTO v_SAM_CUST_ID;
           EXIT WHEN C1%NOTFOUND;
           --message('You have enter S'||v_SAM_CUST_ID);
           WEB.SHOW_DOCUMENT('http://plato:8889/reports/rwservlet?report=C:\CUST_PRINT1.rdf&P_1='||v_SAM_CUST_ID||'&cust_id&desformat=pdf&destype=cache&userid=wh1/wh1@dwh');
           END LOOP;
           CLOSE C1;
       END IF;
    END;
         

    This configuration file is present in the /reports/conf/ directory.
    It contains a few examples, very usefull if you want to hide some informaztion, like the connection string for instance.
    you can call it by setting the entry name in the url:
    http://machine.fr:7778/reports/rwservlet?my_entry&report=report.rdf&destype=...
    Francois

  • To access pdf files from application server using web.show_document

    Hello!
    If my pdf file is copied in Oracle_home/forms90/java directory.Then using web.show_document i can access the pdf file.But I can't copy all the pdf files in /forms90/java directory.We have lacs of pdf files which I want to keep in my own directory.But my requirement is if my pdf file is in /home2/docs directory in (Linux application server) ie in my own directory where I store all the pdf files.Then web.show_document does not open the pdf file.It says page cannot be displayed.For that I think we have to configure the directory /home2/docs directory as a webserver.From otn I got something like forms90.conf file in application server where we have to set virtual directory mapping etc.If the pdf is in local machine then in orion-web.xml file we have to mention real path and save the file and shutdown oc4j instance and restart it again.I tried it.But it is not working.Can u give me step by step instructions to solve this problem.I found a few links in discussion forum.But is doesn't work out.My pdf file is in /home2/docs directory in Linux application server.Please treat it as urgent.
    Regards
    Jayashree

    Hi Sandeepmsandy,
    There is no available code sample for this scenario. You may write your own.
    Step 1: Get pdf URL from sqlite database. Please refer to the following MSDN blog and see a code sample.
    http://blogs.msdn.com/b/robertgreen/archive/2012/11/13/using-sqlite-in-windows-store-apps.aspx. Note, you need to retarget the project to 8.1 and then get two sqlite packages from NuGet before building this sample.
    Step 2: Use some special classes to get file from serer.
    HttpWebRequest can help download small pdf files. For more information to see
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/de96a61c-e089-4595-8349-612be5d23ee6/download-file-with-httpwebrequest?forum=winappswithcsharp. It’s easy for use, but if you want to download the larger or many files, it’s recommend to use
    BackgroundTransfer namespace. The classes in this namespace provide a power way to transfer files in the background. See a code sample from MSND.
    https://code.msdn.microsoft.com/windowsapps/Background-Transfer-Sample-d7833f61.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Closing the browser windows created by web.show_document and javascript

    From Forms I am issuing a http request using web.show_document and javascript:window.open(). The http request makes a remote procedure call to a coldfusion component on a JRun appserver. I want this rpc to fire in the background so that the current forms browser window remains as is.
    The logic is as follows
    l_rpcURL := 'http://....just a standard URL.....'; -- edited for this thread
    l_jsURL := 'javascript:window.open("' || l_rpcURL || '","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=no");self.close();';
    WEB.SHOW_DOCUMENT (l_jsURL,'_blank');
    The http request works fine but leaves a browser window behind. It's the one created by the javascript.window.open(). If I remove the self.close() from the javascript then I have two browser windows open, one from web.show_document and the other, as described previously, from the window.open().
    Any idea how I can force closure of the window opened by the window.open() ?
    Thanks

    Hi,
    did this occured afer installing service pack 2?
    A work around is The only solution that is to create a close.html file and calling this file in the code: Web.show_document('http://server:port/close.html','_self');
    <html>
    <body onload="closeit()">
    <script>
    window.close();
    </script>
    </body>
    </html>
    Monica

  • Web.Show_Document does not work with long running reports

    I am using Web.Show_Document() to call reports from Forms. Everything works fine for smaller reports. However for long running reports I do not get the output instead get the page "This page cannot be displayed.". On checking the job status on the report server I find that report is still running and completes after some time but by that time my http request has already timed out. What configuration do I have to change to make my long running reports work.
    Thanks

    So, looks like this is an IE issue. I need to add the form server site to my list of Trusted Sites. Once I did that, everything started to work fine. Thought I'd share in case anyone is really interested.....

  • Web.show_document not working on 10.1.2.0.2 AS

    Hey guys. I just recently installed the stand alone AS forms and reports server 10.1.2.0.2.. the reporting functionality is not working...
    basically the application uses the reports engine to create a PDF file which is then read by the web.show_document built in. It works on the developer AS, but doesnt work for the forms and reports AS...
    the link I am reading the file from looks like this..
    http://<IP ADDRESS>:7777/forms/reports_output/116_rec_jan.PDF
    where the "IP ADDRESS" is the IP of the sever, and "/reports_output" is a virtual directory. Do I have the wrong port or something? The file "116_rec_jan.PDF" does exist on the server so I can't see the problem...
    Could it be that I dont have adobe reader on my server? Does the AS use the server's adobe reader to read the file or the client side adobe reader? Anyone know whats going on? Thanks for your thoughts.
    Mo

    The /forms part doesn't look right to me. Both /forms and /reports_output are virtual directories. I doubt that they resolve stacked on top of each other. Try taking out the /forms part.

Maybe you are looking for

  • Partners in partners tab in CHARM

    Hi Everybody , I copied standard partner function procedure SDCR0001 to ZDCR0001 and added few new partners. It is working fine . But my issue is in partners tab in CRMD_ORDER i am getting all partner functions in system . I need to have only partner

  • Touch down event on a UIImageView

    Hi, Is there a way to catch the Touch Down event on an UIImageView?

  • Problems with Tomcat 4.0 and jdk 1.3.1 (jsp:include) Help Gurus...

    Im running examples of the include: <jsp:include page="xxx.jsp" flush="true"> and received error: org.apache.jasper.JasperException: No se puede compilar la clase para JSP An error occurred at line: 17 in the jsp file: /jsp/include/include.jsp Genera

  • Reposting this If your having problems with new Windows 8.1 do a full uninstall of all Apple

    Reposting this If your having problems with new Windows 8.1 do a full uninstall of all Apple iTunes programs but uninstall them in right order and then do restart of computer then reinstall newest iTunes and it will all be fixed up syncing problems o

  • ReadtimeoutException while calling Webservice

    Hi all, when i am calling webservice from the webdynpro applicaion i got an Exception java.rmi.RemoteException: Service call Exception; nested Exception is: java.net.SocketTimeoutException: ReadTimeout please any one can tell me why this exception oc