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’);

Similar Messages

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

  • How to show modal window without popup in a web page using javascript

    Hi,
    How to show modal window without popup in a web page using javascript, means when the modalwindow is opened it should not ask for popup blocker alert......
    pls help me.....

    Thanx for ur reply,
    Actually the senario is when i click on a button, another jsp page should be displayed in a modal window without popup, but the functions alert() and confirm() will not accept the url path of the another jsp page...

  • How can I call a web service using JAVAscript in LCD

    hi guys,
         I know it can call a WSDL in LCD, but I have not any WSDL web service , and I have a REST web service ,how can I call this REST web service in LCD? I checked some documents and found nothing...if it's possible that it can call a REST web service using JAVAScript code, I mean I can program some code to call this web service ?
    thanks,
    Jesse

    Hi Jesse,
    You can do GET, PUT and POST using FormCalc, so you should be able to access a REST web service. 
    There is a example of accessing a RSS feed in this thread, http://forums.adobe.com/message/5695433#5695433
    Regards
    Bruce

  • How to Hide some Rows in a List view Web Part using JavaScript ?

    How to Hide some Rows in a List view Web Part using JavaScript ?

     Here is the code that worked for me:
    var Elements = document.querySelectorAll('div[id=WebPartWPQ3] table[class=ms-listviewtable]>tbody tr .ms-vb-lastCell.ms-cellstyle.ms-vb2')
    for(var i=0, n = Elements.length; i < n; i++)
     if(Elements[i].innerHTML=="India")
    Elements[i].parentNode.setAttribute("style","display:none")
    WebPartWPQ3 -> ID of webpart Div
    ms-listviewtable -> class name of table in Div
    ms-vb-lastCell.ms-cellstyle.ms-vb2 -> classname of td to get text

  • Controlling shockwave content (dcr) from a web page using javascript

    Hi,
    Is it possible to control shockwave content (dcr; object="application/x-director") from a web page using javascript?
    I believe this is possible using 'FSCommand' in Flash...
    I'd like to use HTML to do something like:
    - html_object[1].go(10);
    to send playback to frame 10.
    Thanks.
    Mark

    Sean,
    Thanks - this is exactly what I was looking for.
    'Shockingly' difficult ( pun intended :-)
    Someone really put in some effort on this.
    Very creative solution, putting a flash ( swf ) component in a director project and communicating indirectly through the flash element.
    Apparently, Javascript can communicate with the SWF file & the SWF file can communicate with the DCR file, but it is not possible to have Javascript communicate directly with the DCR. Too bad.
    After looking over this example I think I'll rethink my project.
    Thanks again.
    Mark

  • 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

  • Fetch table value in BEX Web report using Javascripts, and assign condition

    Hi Gurus,
    I am currently using WAD 3.5. I need to change the web report to behave like below :-
    1. Default layout (Field A B C) with condition A & B activated.
    2. If the drilldown Field B and C is removed, leaving only field B alone in the report drilldown, deactivate condition A & B, Activate condition C & D.
    3. the above can be reversed where user drilldown field B & C into the layout, the condition A & B need to then be activated back.
    So I believe this can be done using Javascript. So my questions are below
    1.) How do i fetch table value for the navigationblock ? with navigationblock i am able to know what are the columns are in the drilldown (i will not display free characteristics, so ignore this part). how do i read the content of NAVIGATIONBLOCK_1 as shown in following code? using javascript.
    <P><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="NAVIGATIONBLOCK_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_NAV_BLOCK"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="SHOW_FREE_CHARACTERISTICS" value=""/>
             <param name="SHOW_NAVIGATION_ICONS" value=""/>
             <param name="SHOW_FILTER_ICONS" value=""/>
             ITEM:            NAVIGATIONBLOCK_1
    </object></P>
    2.) After question 1.) is done, please advice how do i activate/deactivate the conditions? based on the fields found in above. Maybe I can use IF navigationblock_1 contain field A only, then set condition A & B , etc.
    <p><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="CONDITIONLIST_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_CONDITION"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             ITEM:            CONDITIONLIST_1
    </object>
    I would appreciate if we can solve Question 1 first before proceed to 2.)
    Please advise. Thanks

    Hi JTi,
    what i have understood from your requirement is that you want to access the web item table_1 in javascript, you can get that as below:
    Add
    <span> 
    tag before your web item and set its id to table.
    <span id = "table">
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="GET_ITEM"/>
    <param name="NAME" value="TABLE_1"/>
    <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
    <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
    <param name="GENERATE_CAPTION" value=""/>
    <param name="CAPTION" value="jezel"/>
    <param name="ONLY_HIERARCHY_NAVIGATION" value="X"/>
    <param name="BLOCK_SIZE" value="0"/>
    <param name="SHOW_PAGING_AREA_BOTTOM" value=""/>
    ITEM: TABLE_1
    </span>
    In javascript access it as :
    var mytable = document.getElementsById("table");
    Hope this helps
    Thanks
    Dipika

  • Passing table to web service - using javascript

    Hi All,
    I need to pass table structure to web service using data connection.
    I dont know how to accesss the request node and create table and pass data to it.
    Request you all to help me to achievev this functionality.
    A long needs to split of 50 characters each. Then create a new instance for request node table structure assign the values.
    All this needs to be done using CODE i.e javasript
    how to do this ???
    Regards,
    Aditya Deshpande

    HIi,
    Let me explain the scenario once more:
    Scenario:
    Pdf has two Text edit field and one button. Where the end user would enter the values.
    The PDF is integrated with Web service for Offline scneario.
    Field 1 is a notification number.
    Field 2 is description - unlimited entry into PDF.
    Button: is used to execute the web service.
    It is done using the blog:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID0394564950DB01118597046218481719End?blog=/pub/wlg/7588
    Field1 is mapped to corresponding field in web service by IMPORT/EXPORT bindings.
    Problem:
    Field 2 is a text field. But this data has to be passed to web service as table. The web service has a table structure.
    Hence the text in the Field 2 has to be split into 100 characters each and set into table rows.
    The Strucutre definition in the data connection is:
    - Item
            - TDFORMAT
            - TDLINE
    Since I need to split the text and load.I felt this needs to be done using code ( script ).
    I do NOT know how to do it using CODE. Please help ME!!!!!!!!
    If there any other way please let me know. I am also not sure which would be best way of doing it.
    PLEASE HELP ME!!!
    Regards,
    Aditya Deshpande.

  • Problems Securing Web.show_document  using the java bean

    Friends,
    I know this is a hot topic, but after reading through a lot of the previous posts I can not find any reference to the problem I am encountering.
    I am using Forms 10g Release 2 (10.1.2.0.2)
    Basically I have implemented the bean as the white paper instructs but when the report is first run I am presented with a Oracle Reports screen that has the title
    Database User Authentication, followed by fields to enter the username, password and database
    Below the submit and cancel buttons there is the following message "REP-51018: Need database user authentication"
    Once these details are entered the report runs ok and if the report is run again then this logon screen is NOT shown.
    Thanks in advance for any help you can provide.
    Regards

    Hi,
    you describe the problem, but you don't provide any help for this forum to help you. What is the debug output of the Jinitiator console? Note that the bean uses JSObject class that doesn't work with newer versions of Netscape, so are you using Netscape? What is the machine address ? Is the machine with a domain name, or is it local host or IP in which case setting the cookie can be failed
    Frank

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

  • Reading web items in javascript.

    In a 7.0 template, how can I read the value of a web item using javascript? I want to read a filter value from the info field item, manipulate it and assign the resulting value to an input item. How do I access the value?

    Hello Bharath,
    There is a webitem called Navigation pane in the Standard list, i hope this is what you need.
    Kindly reply again is your problem is not resolved and please assign points if it is :).
    Regards,
    Dennis

  • Report Status using web.show_document

    Hi all.
    I am using the web.show_document for running my report - using distribution xml file and mail.
    I want to insert a record in a table if the report generation succeeds.
    From Oracle Documentation I can see that I cannot get the report status in the form when it is run using web.show_document.
    And for distribution I cannot use run_report_object.
    Any workaround for this?
    Thanks in advance
    Anu.

    Dear Mr. hisham,
    Thanks For your Post,
    Actually i have the same issue, but it want to kill a running report in the report server by clicking such a button that have already the jobID.
    whithout opening the reportserver page so that no body see any other reports running.
    like in this example:
    Declare
    L_URL Varchar2(1000);
    Begin
    L_URL := :apps_server||'/reports/rwservlet/Killjobid'||:JOB_ID||'?'||'server='||:report_server;
    WEB.SHOW_DOCUMENT ('javascript:window.open('||l_URL||');self.close()','_blank') ;
    End;
    Is it posible to do that, If so how can do it. and do i have to do any settin someware on the server like formsweb.cfg or reportserver.cnf.
    thanks in advance.

  • Javascript not working with web.show_document.

    Hi,
    I executed the below command from forms 10g and it is not working.
    web.show_document('javascript:var win=showModalDialog("http://otn.oracle.com/products/forms");','_self');
    But if I execute javascript:var win=showModalDialog("http://otn.oracle.com/products/forms"); directly in IE, then it is working.
    Frank, can you help me in this or any other people having any idea ?
    Very urgent.
    Thanks & Regds,
    Nandakumar

    Hi Mark,
    Thanks for your quick reply. Your question is right. I think let me explain clearly my requirement. I have an application accessed in the web. A internet user is trying to a report through the application by giving a parameter as "A". Now using the window.open method, the report is displayed in the IE browser. Now the user can go to history and can see the complete URL with parameters.
    If he just copies and pastes that url from history in the browser, the reports runs successfully. If he changes any of the parameter to "B", there is a chance that report will show the report for parameter "B". This should not happen.
    Hope this is clear. Let me know if you are not still clear. Moreover, in the IE it is possible to clear history, but for internet based applications, how can we set them.
    Thanks & Regds,
    Nandakumar

Maybe you are looking for