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.

Similar Messages

  • Web services for forms 10g

    Hi, Can anybody explain how to use web services in forms 10g. I have a wsdl url with me which I need to call. I also heard that I can use utl_http and utl_url package. Anbody knows what it is. So basically there are two ways to call web services into the form, either use Jdeveloper to create a stub and import it into the forms or I can use the utl_http and utl_url package. Is that right?
    Please advise in details. All this is confusing.
    Thanks.

    http://groundside.com/blog/GrantRonald?title=calling_a_web_service_from_oracle_forms__2&more=1&c=1&tb=1&pb=1 tells you exactly what to do.

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

  • 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

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

  • 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

  • Error while calling web service from Forms 10g

    Hi,
    I have defined a web service and deployed at OracleAS 10g 10.1.2.0.2. Web services is working fine as per standalone invocation URL and also using a Web Service source in Portal (OmniPortlet).
    I have created a web service proxy and imported the JAR file into Forms module via Java Importer. Created a button to invoke a web service and show results on message bar.
    Code for WHEN-BUTTON-PRESSED:
    declare
         v_javaObject ora_java.jobject;
         xo ora_java.jobject;
         v_name varchar2(30);
         javaException ORA_JAVA.JOBJECT;
         v_BigDecimalObject ORA_JAVA.JOBJECT;
    begin
         v_javaObject := EmpServicePortClient.new;
         v_BigDecimalObject := BigDecimal.new(101);
         v_name := EmpServicePortClient.getName(v_javaObject,v_BigDecimalObject);
         message(v_name);
    exception
         WHEN ORA_JAVA.JAVA_ERROR THEN
    -- In this case, the error would be
    -- Argument 1 can not be null
    message(ORA_JAVA.LAST_ERROR,acknowledge);
    --Clean up
    ORA_JAVA.CLEAR_ERROR;
    WHEN ORA_JAVA.EXCEPTION_THROWN THEN
    javaException := ORA_JAVA.LAST_EXCEPTION;
    -- Print out the Exception by using the toString()
    -- Method of the exception Object
    message(Exception_.toString(javaException),acknowledge);
    -- and clean up
    ORA_JAVA.CLEAR_EXCEPTION;
    END;
    Forms got compiled successfully.
    However, while invoking a service by pressing a button, getting following error at message bar:
    java.rmi.RemoteException:; nested exception is: HTTP transport error: javaxml.soap.SOAPException: java.security.PrivilegedAction
    Is there anything that I have missed in the configuration? or what else is causing it?
    Regards,
    Preet

    Hi,
    I have defined a web service and deployed at OracleAS 10g 10.1.2.0.2. Web services is working fine as per standalone invocation URL and also using a Web Service source in Portal (OmniPortlet).
    I have created a web service proxy and imported the JAR file into Forms module via Java Importer. Created a button to invoke a web service and show results on message bar.
    Code for WHEN-BUTTON-PRESSED:
    declare
         v_javaObject ora_java.jobject;
         xo ora_java.jobject;
         v_name varchar2(30);
         javaException ORA_JAVA.JOBJECT;
         v_BigDecimalObject ORA_JAVA.JOBJECT;
    begin
         v_javaObject := EmpServicePortClient.new;
         v_BigDecimalObject := BigDecimal.new(101);
         v_name := EmpServicePortClient.getName(v_javaObject,v_BigDecimalObject);
         message(v_name);
    exception
         WHEN ORA_JAVA.JAVA_ERROR THEN
    -- In this case, the error would be
    -- Argument 1 can not be null
    message(ORA_JAVA.LAST_ERROR,acknowledge);
    --Clean up
    ORA_JAVA.CLEAR_ERROR;
    WHEN ORA_JAVA.EXCEPTION_THROWN THEN
    javaException := ORA_JAVA.LAST_EXCEPTION;
    -- Print out the Exception by using the toString()
    -- Method of the exception Object
    message(Exception_.toString(javaException),acknowledge);
    -- and clean up
    ORA_JAVA.CLEAR_EXCEPTION;
    END;
    Forms got compiled successfully.
    However, while invoking a service by pressing a button, getting following error at message bar:
    java.rmi.RemoteException:; nested exception is: HTTP transport error: javaxml.soap.SOAPException: java.security.PrivilegedAction
    Is there anything that I have missed in the configuration? or what else is causing it?
    Regards,
    Preet

  • Export to excel in web with oracle forms 10g

    we have an application running on web with oracle 10g forms in windows server 2003. We use webutil to generate excel. But it is terribly slow when its is run on web. When run locally its fine...
    PLS suggest.....
    Thanks,
    Rekha

    CLIENt_OLE transfers lots of small packets over the network,that's what it makes slow. What you could do.... write your own javabean which uses jacob and "aggregates" the low-level OLE-commands to somehow logical commands like "writeValuetoCell"

  • (urgent) web cache for forms 10g

    Hi all,
    We have application running on oracle 10g Aps resently migrated and we got couple of freequently used forms by default my webcache is on but i dont know how can i specifialy say that thease forms to be cached like if i see my webcache page i could see some of the gifs had cached but no specific forms how can i do this.
    I shall be highly be obliged if one can clear my queries in the forum may wish to add to 2cents to my infinetly minimal knowledge of webcache.

    Not really true. You could setup a rule to cache the JAR files for Forms. Additionally, you could cache the GIF files accessed by the applet, though it would be better to move those image files into a JAR file. Why?...
    If you use a static HTML file to call your forms, that would be cached by default.
    Because the client JVM caches the files. You can view this in the Java Console of JInitiator or your Java Plug-in. Additionally, you can see when the image files are served from the JAR files by looking in the Java Console as well. Change to level 5 trace in the Java Console window and look for GIF files with a path that includes http://server/forms/jave/filename.jar!/filename.gif. Notice the ! symbol. That shows a client JAR cache hit for that GIF file. Served locally, doesn't even make it to Web Cache!
    The rest of the communication really isn't cacheable. Communication goes from the Applet (Client JVM) through Web Cache to the HTTP Server to the OC4J_BI_Forms container (OC4J JVM) that runs the Forms listener servlet which talks directly with the Forms Server runtime process running as a Unix process (C, not Java).
    So, the only communication that goes between the applet and the Appliction Server is just the messages between the applet and Forms Server process telling the applet how to refresh the display on the client's applet screen and telling the Forms Server process what to do with the data and code being run. This communication is optimized by using message diffs, so it is relatively efficient. But an application not optimized for the web might use chatty functionality that slows things down a bit.
    Anyway, xhomet is essentially right in that Web Cache doesn't do much of any significance besides load balancing. Caching JAR files might make sense for you though if you have a lot of users all getting this JAR or an updated JAR at the same time.
    Hopefully you foundthis interesting.
    Steve

  • Error when trying to access a secured web service from Forms 10g 10.1.2.3

    Hello,
    I'm trying to access a secured web service from Forms10g 10.1.2.3 but i'm getting the next error when pressing the button the first time:
    java.rmi.RemoteException: ; nested exception is: HTTP transport error: javax.xml.soap.SOAPException:
    java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 UnauthorizeWhen i press the button a second time i got this error:
    javax.xml.rpc.soap.SOAPFaultException: The SOAP request is invalid. The required node 'Envelope' is missingThis is the code i have in my button:
    DECLARE
    jo ora_java.jobject;
    pdfObject ora_java.jobject;
    pdf     varchar2(900);
    rv varchar2(100);
    ex ora_java.jobject;
    BEGIN
    JO := SEARCHSOAPCLIENT.new;
    SEARCHSOAPCLIENT.setUsername(JO,'weblogic');
    SEARCHSOAPCLIENT.setPassword(JO,'welcome1');
    pdfObject := SEARCHSOAPCLIENT.quicksearch(JO,'1234',NULL);
    pdf := SEARCHSOAPCLIENT.tostring(pdfObject);
    message(pdf);
    message(' ');
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    :error := Exception_.toString(ex);
    END;When i run it from JDeveloper it works, this is a portion of java code the proxy web service has:
    import oracle.webservices.transport.ClientTransport;
    import oracle.webservices.OracleStub;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Stub;
    public class SearchSoapClient {
        private webservicesproxywebcontent.proxy.SearchSoap _port;
        public SearchSoapClient() throws Exception {
            ServiceFactory factory = ServiceFactory.newInstance();
            _port = ((webservicesproxywebcontent.proxy.Search)factory.loadService(webservicesproxywebcontent.proxy.Search.class)).getSearchSoap();
            this.setUsername("weblogic");
            this.setPassword("welcome1");
            System.out.println("callling from _port "+ _port.quickSearch("1234234", null));
         * @param args
        public static void main(String[] args) {
            try {
                webservicesproxywebcontent.proxy.SearchSoapClient myPort = new webservicesproxywebcontent.proxy.SearchSoapClient();
                System.out.println("calling " + myPort.getEndpoint());
            } catch (Exception ex) {
                ex.printStackTrace();
         * delegate all operations to the underlying implementation class.
        public QuickSearchResult quickSearch(String queryText, IdcPropertyList extraProps) throws java.rmi.RemoteException {
            return _port.quickSearch(queryText, extraProps);
        }Also the secured web service was generated from Webcenter Content 11.1.1.6 that is why it's a secured web service.
    Kind Regards
    Carlos

    Without going into any technical discussion about the code, my first question is what JDK version was used to create this which was imported into the form? Understand that Forms 10 runs on JDK 1.4.2, so if you used any newer JDK version, likely there will be problems.

  • Calling Web SErvice from Forms 10g R2

    Hi All
    We are building a new form that calls out a web service. We used JDeveloper to build the stub and successfully import the same into Forms. We added the jar file names to class path, formsweb.cfg and default env files in the desktop. When we run the form using designer we get ORA-105100 error.
    Do we need app svr to test the web services call out or can we test it from the forms builder itself. any help is appreciated. I understand that the error is due to the java class not being loaded at run time. do not know what the reason is.
    I have read the how to document multiple times and have memorised the same, please do not point me to that. I have followed the instructions in that document step by step. the only difference is that the web service that I am calling is different.
    Any help is greatly appreciated.
    Rgds
    Arvind Balaraman

    This is what it says
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\abalaram
    Proxy Configuration: Browser Proxy Configuration
    JAR cache enabled
    Location: C:\Documents and Settings\abalaram\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://.../forms/java/frmall_jinit.jar from JAR cache
    Loading http://.../forms/java/memberWS.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0

  • 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

  • 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 working with abnormal parameter

    I was opening some web pages from forms 10g using:
         web.show_document(url, '_blank');
    in a button pressed trigger. That worked fine, except it continually opened new pages. If the button is pressed 10 time, 10 pages opened one after another. I was giving warning to the user about this quirk.
    Then while debugging I happened to edit the code and change it to:
         web.show_document(url, '_blank;');
    With the semicolon at the end of _blank parameter the pages now open in one browser window, replacing itself if the button is repeatedly pressed. This is exactly the functionality I want. However, I can't find any documentation that uses any parameter for web.show_document other then the standard ones without semicolons included.
    Does anyone know if this is safe to do?

    Hi,
    You can use below different parameters depends on your requirements. To view documentation press ctrl+h in forms builder,  use search feature to locate the topic.
    '_self' Causes the document to load into the same frame or window as the source document.
    '_parent' Causes the target document to load into the parent window or frameset containing the hypertext reference. If the reference is in a window or top-level frame, it is equivalent to the target _self.
    '_top' Causes the document to load into the window containing the hypertext link, replacing any frames currently displayed in the window.
    '_blank' (default) Causes the document to load into a new, unnamed top-level window. Note that these targets are lowercase and enclosed in single quotation marks.
    hope this help you.

  • Can't Import java class in form 10g

    Hi All,
    I have tried to call a web service from oracle form 10g
    so, I read your available document (How to call Web service from Form 10g)
    http://www.oracle.com/technology/obe/obe_as_10g/deploy/callws_fromforms/forms_webservice.htm#r1
    but when I've created a web service from WSDL file and I've deployed it to JAR file using Jdeveloper 10g (10.1.2.1.0).
    I tried to import it into form builder 10g but i have the error :
    java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub
    Please, can any body help me to solve this problem?

    Have you put the jar file in the classpaths??

Maybe you are looking for

  • Quickcam Web not working

    Hello together! Since qc-usb was replaced with gspca I have troubles with my Webcam. It's a Quickcam Web (more precisely: LEGO cam) 046d:0850 and it used to work with qc-usb. It's also listed as a supported one in the gspca files. It is correctly rec

  • Attachment with PO rejected

    Hi, Is there a task available such as task TS20000139 which allows you to add comments whenever a Travel reimbursement is rejected. I need to be able to enter comments whenever a PO is rejected by the authoriser, so that it can be sent back to the WF

  • I am received spam email in my inbox not Junk-mail

    Hello ,  i have exchange 2010 and outlook 2010 i am facing problem ,all users received spam email in inbox not Junk mail what to do to avoid this ? I want when the user receives a spam I want to go to junk-email not inbox. thanks

  • Screen enhancement for CV02N

    Hi experts . I have a requirement to add a new tab  for material group in object links (transaction CV02N) . Save and display data same as done for links by material / equipment master . How  it can be done ?     Helena .

  • Referencing other files from 'default' webauth on WLC4404

    Hi, I'm happy with how the inbuilt WLC webauth dynamically allows me to use webauth passthru with email on one WLAN and lobbyadmin user on another WLAN, and this doesn't work when you upload your own webauth pages (as you need to call each page login