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;

Similar Messages

  • Using Forms 10.1.2.3 and JRE1.6.0_10, web.show_document pops window behind

    Hello everyone, we are using Forms 10.1.2.3 and JRE1.6.0_10. We have separateFrame=true. We noticed when we open another browser using web.show_document('xxxx','_blank'), for example to our online help, the window pops behind the Forms MDI window. In previous versions of java it always popped in front of it like you would expect. We are using XP and IE7. It also acted the same way on Vista with IE7 as well. Has anyone else encountered this or found a workaround?

    As far as the dll goes, our dll is written in C and uses I guess windows api calls to start whatever task we need. (I didnt write it). As far as the forms code goes, we use the webutil_c_api calls. Here's a sample of the function I call from forms:
    FUNCTION StartTask ( pStartin varchar2, pCommandline varchar2, perrormessage in out varchar2) return number IS
              StartIn varchar2(255) := pStartIn;
              Commandline varchar2(1000) := pCommandline;
              Errmsg varchar2(2000):='$$';
         rc pls_integer;
              f_handle WEBUTIL_C_API.FUNCTIONHANDLE;
              args Webutil_c_api.parameterlist;
              param1 Webutil_c_api.ParameterHandle;
              param2 Webutil_c_api.ParameterHandle;
              param3 Webutil_c_api.ParameterHandle;
         begin
              --debuglog('calling StartTask local');
              f_handle := WEBUTIL_C_API.register_function('ClientUtils.dll','StartTask');
              args := WEBUTIL_C_API.create_parameter_list;
         param1 := WEBUTIL_C_API.add_parameter(args,WEBUTIL_C_API.C_CHAR_PTR
              ,WEBUTIL_C_API.PARAM_INOUT,StartIn, 255);
              param2 := WEBUTIL_C_API.add_parameter(args,WEBUTIL_C_API.C_CHAR_PTR
              ,WEBUTIL_C_API.PARAM_INOUT,Commandline, 1000);
              param3:= WEBUTIL_C_API.add_parameter(args,WEBUTIL_C_API.C_CHAR_PTR
              ,WEBUTIL_C_API.PARAM_INOUT,Errmsg, 2000);          
              rc := WEBUTIL_C_API.Invoke_Int(     'ClientUtils.dll','StartTask',args);     
              perrormessage := WEBUTIL_C_API.GET_PARAMETER_STRING(args,param3);
         WEBUTIL_C_API.Destroy_Parameter_List(args);
         WEBUTIL_C_API.Deregister_Function(f_handle);                                                                                
         return rc;
         END;

  • Can web.show_document use a Windows filesystem-style URL?

    Hi,
    I need to open Word documents from Forms9i.
    The docs are on a Win2k fileserver located on the same LAN with the user desktops, while the Forms 9iAS server (a Win2k box itself too) is remote, over a WAN link.
    The folder in the fileserver where the docs reside is mapped as a network share in the 9iAS server.
    The mechanism currently envisaged for viewing the Word docs is:
    - use the show_document built-in for launching a second Internet Explorer window, from the Forms JInitiator main window on the desktop.
    - the URL passed to show_document is http://9iAS_IP_address:port/path_to_fileserver_share/document_name.doc
    In this way, each Word document to be viewed on a desktop will have to go through a round-trip from the fileserver over the WAN to the 9iAS Forms server, then back over the WAN from the 9iAS webserver to the desktop running the main window of the application.
    Assuming that the same document folder in the fileserver is mapped as a network drive for all desktops (e.g. as N:), could we pass to show_document a Windows-style URL like "N:\document_name.doc" or "file://N:\document_name.doc"?
    Will the browser (which is MS IE) then open the document from the local LAN share, rather than through http and the WAN roundtrip?
    We cannot upgrade to 10g and adding any other add-in such as WebUtil to the forms triggering the viewing of Word docs is out of the question (at this time); this is a COTS packaged application.
    Note: I am not a Forms developer, have no experience and no access to a Forms development environment, so I can't try for myself.
    Thank you very much,
    Gabriel

    Gabriel,
    Francois has a good point! Try Frank's example. It will work. I use it quite often.
    web.show_document('file://h:\documents\ref\abcde123.doc','_BLANK');
    Regards,
    Martin Malmström

  • How To: create legaleze pop up window in pdf form?

    Hello all. I would like to incorporate a pop up window with my company's legaleze for authorization to use our images in our customers marketing materials. The purpose of the legaleze is to inform the customers our policy on using our images in their marketing materials. The pop up would obviously contain two radio buttons (1. I Agree AND 2. I Disagree) Where if they agree they can continue to fill out the form and request images. But if they disagree they will not be allowed to fill out the form and submit it.
    The form will be distributed via email, and be downloaded from our website.
    The most important aspect of this is that the pop up window with the legaleze function properly. The secondary aspect of the form not being able to be filled out if they disagree is not as  important. Obviously if I see that they disagree, I will not release the images.
    Thanks for your help!

    Adding layers to a PDF is a new feature in version 9 (you can work with layers in version 8, but have to add them in InDesign).
    In 9, add the layers Navigation Panel (View>Navigation Panels>...), then click the gear symbol and choose Import as Layer, and select your PDF with the legal agreement.
    You can control the layer visibility with a button action (one action is "set layer visibility"), and JavaScript can be used to show or hide buttons. So your accept button would have two actions, one layer visibility action and one execute JavaScript action that controls field visibility. A field called Name is controlled by changing that button's display property (hidden/visible):
    var a = this.getField("Name");
    a.display = a.hidden;
    etc.
    For more JavaScript info, check here.

  • Web.show_document suddenly stopped working in my forms 6i

    web.show_document was working fine up until an hour ago in my 'WHEN-BUTTON-PRESSED' code.
    Now, when I press the button - nothing happens.
    I can not figure the problem out.
    Help ASAP!
    Thanks.

    hi there, actually i m just here to know from u , that where should i start my application
    onto web. Or in other word, requirments for the web application in develope 2000
    plz email me at [email protected]

  • 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

  • Hide Explorer window called using WEB.SHOW_DOCUMENT()

    I've created a JSP which creates and saves a PDF into the database. I call this JSP using web.show_document as a result of which an explorer window is opened,which is not what I want. I want to use the JSP functionality in the background not making the user aware of this. I've tried the following :
    WEB.SHOW_DOCUMENT('javascript:void(window.open("'||URL||'","","location=no,toolbar=no,menubar=no,status=no,resizable=yes"))','_blank');
    But the PDF does not get saved into the database using this call.
    Help would be appreciated...

    Does the pdf gets saved when you paste the same url into a browser-window "by hand" ?
    If you don't want to show the url you could create a java-class which just opens a http-connection, import it using the Java-Importer and call it on the application-server

  • Web.show_document() with javascript

    Hi Guys,
    I'v been searched this forum about web.show_document() with javascript.
    I saw some threads said
    I can do like
    WEB.SHOW_DOCUMENT ('javascript:window.open("http://www.google.com","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=yes");self.close()','_blank');
    and someone said it worked, but it doesn't work in my machine.
    also some one said the javascript engine is not included in Form 10.1.2, so I can not use WEB.SHOW_DOCUMENT function like above.
    My form builder is 10.1.2.0.2 (Production), os is xp sq2 ,ie 6.(ie6 has some tighter security)
    I want to get clarification about this function, can i use the javascript on it or not ? I really want the pop up window without toolbar and customize size. I need do some configuration in formweb.cfg also?
    Thanks in advance. I appreciated every response.
    Appcat

    Hi Jan,
    Thanks for your reply. I check the metalink about it.
    The first solution is
    1. Make forms Developer URL a trusted site in IE to allow script executions.
    For that open Internet Explorer->Internet Option-> Security.
    Select the "Trusted Sites" Option.
    Click on the Sites Button.
    Add the Developer Suite URL in that.
    for example
    http://<Yourmachinename>:8889/
    It doesn't work in my machine ,still can not activate the javascript.
    The second solution is
    2. Place the script invocation code in a html file in Oracle_home/forms/server directory and call it.
    For example :
    Create a simple form.
    In Forms Trigger :
    web.show_document('http://<Yourmachinename>:8889/file.html');
    In the file.html you may enter the code, for example:
    <HTML>
    <HEAD>Heading</HEAD>
    <BODY>
    <SCRIPT LANGUAGE="Javascript">
    window.open("http://www.yahoo.com","_self");
    </SCRIPT>
    </BODY>
    </HTML>
    It also doesn't work in my machine, the problem is http://<Yourmachinename>:8889/file.html can not be found, even i put it under the Oracle_home/forms/server folder, but i click it directly ,the javascript works. that means the URL http://<Yourmachinename>:8889/file.html is incorrect or I should put the html file into other directory. And I also checked the default.env,FORMS_PATH=D:\DevSuiteHome\forms.
    anything wrong with my env?
    Do you have any idea about it?
    Thanks,
    Appcat
    Message was edited by:
    user577805
    Message was edited by:
    user577805

  • WEB.SHOW_DOCUMENT opens additiional IE browser.

    Hi All,
    I am using web.show_document (web.show_document('file:///file_name','_blank') ) to open pdf and msg files stored at a location. For PDF files, web.show_document works fine and pdf file gets open. However for msg (email) files, a new browser gets open along with msg file. User need to close this additional browser.
    Also the word files opens in IE browser. We need not to open MS office files in IE browser.
    Any suggestions to overcome this issue.
    Regards,
    Vinit
    Edited by: Vinit on Feb 21, 2011 2:37 AM

    Vinit,
    Your code explicetly opens a new "Blank" browser window. The reason the new browser window goes away with the .pdf files is because you have an OS MIME association for .pdf's which controls how the file is opened on the OS. Clearly, there is no MIME association for the other file types.
    web.show_document (web.show_document('file:///file_name','_blank') )Try '_self' or '_parent' in place of '_blank'. For more information on the Web.Show_Document built-in please check the Forms Help system.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Feb 22, 2011 1:11 PM

  • IE7 and web.show_document

    We run a forms application using 9.0.4 on IAS10gR1, JInitiator is 1.3.1.13. We often use web.show_document to display files (usually pdfs, but also other types) that are stored as blobs in the db or as files on the app server. From time to time users complain that this feature doesn't work anymore. In most cases this is caused by a popup blocker, either IE, or they use Firefox, or have installed Google's or Yahoo's toolbar with their popup blockers enabled.
    But now we are facing problems with users that have installed IE7. When they try to show a file which should be displayed using web.show_document, a new window flickers shortly and then disappears, even with the popup blocker disabled.
    Anybody out there with the same experience and (hopefully) a solution/workaround?
    And yes, I know that IE7 is not yet certified.
    Thanks in advance.
    Gerald

    We had the same problem opening files through web.show_document with IE7. It has to do with the Download settings in your Internet or LocalIntranet zones under Tools > Internet Options > Security > Select the zone > Custom level > Downloads group > Automatic prompting for file downloads setting.
    These prohibit IE7 to ask the user about downloading a file. That's why the new browser window closes right away. You could either change the settings for Internet and lower the security for all sites, or add your Forms server to Local intranet or even TrustedSites and set these up properly.

  • WEB.SHOW_DOCUMENT doesn't work on XP SP2

    I have come to realise that the command WEB.SHOW_DOCUMENT works on Windows 2000, but not on Windows XP SP2. I have just finished reading a lengthy document by Oracle about running reports from a form, but they don't say what to do about this problem, or even acknowledge that there is a problem. I have found a way around it, but it's a real pain in the butt.... Can anyone advise me on how to get WEB.SHOW_DOCUMENT to work properly on XP? When I run the command, I get no error, but nothing happens. It's the same at home and at college, and we all use XP SP2.
    thx
    adam

    The problems you are experiencing have little to do with the Oracle product. They are the result of security changes put in place by Microsoft. In short, only common net protocols can be assured to work with Forms WEB.SHOW calls. For example: HTTP, HTTPS, FTP, etc. You can no longer use JAVASCRIPT, FILE, etc. If you want to gain access to resources on the client machine you will need to add a signed Java Bean to your form. If you don't know how to write Java code, you can use WebUtil (downloadable from OTN):
    http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm
    References
    Oracle Bug 3813722
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=BSS&p_id=3813722
    Microsoft Bug
    http://support.microsoft.com/default.aspx?scid=kb;en-us;884763

  • Creating pop up window for data display in ALV

    Friends,
    I need to display my data in alv popup window from there I have to select a row and display the data in new popup window. For this purpose I had written this fuction. It's working fine But I don't know how to select row from this and display data in new popup window.  when I am displaying data in alv grid ,then I am  able to display data in POPUP window after selecting a row from grid  but dont know how to jump from one pop up window to another.
    form output_alv.
    CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
      EXPORTING
        I_TITLE                       = 'SALES ORDER INFO'
        I_ZEBRA                       = 'X'
        I_TABNAME                     = 1
        I_STRUCTURE_NAME              = 'VBAK'
      TABLES
        T_OUTTAB                      = it_vbak
       EXCEPTIONS
         PROGRAM_ERROR                 = 1
         OTHERS                        = 2.
    endform.

    The following code may be of some help:
    DATA: BEGIN OF it_prmhlp OCCURS 0.
            INCLUDE STRUCTURE zaltab_param.
    DATA: flg(1) TYPE c,
          END OF it_prmhlp.
      DATA: wreturn LIKE ddshretval OCCURS 0 WITH HEADER LINE,
        wstep LIKE sy-stepl.
      DATA wsel1 VALUE 'X'. wsel1 = 'X'.
      TYPE-POOLS : slis.
      DATA : listtitle(30),
             l_lines     LIKE sy-tabix,
             ls_fldcat   TYPE slis_fieldcat_alv,
             lt_fldcat   TYPE slis_t_fieldcat_alv,
             ls_selfield TYPE slis_selfield.
      progname = sy-repid.
      dynnum   = sy-dynnr.
      DEFINE fldcat_add1.
        ls_fldcat-fieldname     = &1.
        ls_fldcat-ref_tabname   = &2.
        ls_fldcat-ref_fieldname = &3.
        ls_fldcat-reptext_ddic  = &4.
        ls_fldcat-outputlen     = &5.
        append ls_fldcat to lt_fldcat.
      END-OF-DEFINITION.
      REFRESH : lt_fldcat.
      fldcat_add1 'AUREL' 'ZALTAB_PARAM' 'AUREL' 'Alloc Table Relevancy' '25'.
      fldcat_add1 'PDESC' 'ZALTAB_PARAM' 'PDESC' 'Process Description' '40'.
      REFRESH it_prmhlp. CLEAR it_prmhlp.
      SELECT * FROM zaltab_param
        INTO TABLE it_prmhlp
        WHERE tcode = sy-tcode.
      SORT it_prmhlp BY aurel pdesc.
      listtitle = 'Allocaction Table Relvancy Selection'.
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
           EXPORTING
                i_title                 = listtitle
                i_selection             = wsel1
                i_zebra                 = ' '
                i_checkbox_fieldname    = 'FLG'
                i_tabname               = 'IT_PRMHLP'
                it_fieldcat             = lt_fldcat
           TABLES
                t_outtab                = it_prmhlp
           EXCEPTIONS
                program_error           = 1
                OTHERS                  = 2
      DATA wfl1. CLEAR wfl1.
      LOOP AT it_prmhlp.
        IF it_prmhlp-flg = 'X'.
          IF wfl1 = 'X'.
            CLEAR it_prmhlp. REFRESH it_prmhlp.
            MESSAGE i000(yw) WITH 'Only 1 entry can be selected...'.
            EXIT.
          ENDIF.
          wfl1 = 'X'.
        ENDIF.
      ENDLOOP.
      IF wsel1 = 'X'.
        READ TABLE it_prmhlp WITH KEY flg = 'X'.
        IF sy-subrc EQ 0.
          paurel = it_prmhlp-aurel.
          paureltx = it_prmhlp-pdesc.
          wvariant = it_prmhlp-zvariant.
          PERFORM update_screen.
        ELSE.
          CLEAR it_prmhlp. REFRESH it_prmhlp.
        ENDIF.
      ENDIF.
    The trick lies in using the box fieldname which is 'FLG' in this case and the wsel1 param passed to the fm to know whether any row is selected or not.

  • Web.show_document using javascript in Forms6i

    Dear all,
    I wnat to know in forms6i , is it workable calling web.show_document with javascript?
    As I face a problem that calling a url by web.show_document, but the requirement should not display the menu bar ... how can I do?
    Thanks in advance.
    JY

    jennisy wrote:
    Hi,
    Actually, there is a button to trigger the web.show_document.
    I've tried this code, but it doesn't work. There is no any feedback and no error popup.
    WEB.SHOW_DOCUMENT ('javascript:void(window.open("http://www.yahoo.com"))','_blank');
    Hi JY,
    what happens if you actually try this
    Web.Show_Document(‘http://www.yahoo.com’, ‘_blank’);

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

Maybe you are looking for