Open Page in new window using action link

How do I open a page in a new window, using action link ?
If I put javascript window.open in OnClick event, the action event ins�t called.

Hi,
The window.open method can be used with the hyperlink component. So please try it with a hyperlink component.
Cheers
Giri :-)
Creator Team

Similar Messages

  • Open Page in new window using hyper link

    I put the window.open method on OnClick event of outputlink to open a page in new window, but the page is started in a old window.
    How do I start the page in a new window.
    My sintaxe of outputlink:
    <h:outputLink binding="#{P0110.hyperlink1}" id="hyperlink1"
    onclick="WindowObjectReference = window.open('about:blank', '','menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes');" value="http://www.sun.com/jscreator">
    </h:outputLink>

    Hi,
    Following are the steps to open a new window using the window.open method for the hyperlink component:
    1. Drag and drop a hyperlink component onto the page
    2. In the properties sheet go to the Value property and delete the value present there
    3. Click on the ... button next to the onclick property
    4. Enter the line of code given below:
    window.open("http://www.yahoo.com","New window");
    5. Save and run the project
    On clicking on the hyperlink a new window will open with the www.yahoo.com page.
    Hope this helps
    Cheers
    Giri :-)
    Creator Team

  • Opening page in new window on click of link in Global button bar section

    Hi,
    I have created a custom global link to appear alongside Home, Logout links. The requirement is to open a page in a new window when i click on the custom global link. Please let me know how to achieve this functionality.
    Thanks,
    VG

    VG,
    I think you should be able to open in a new window using the javascript in the function defn,
    please check the blog http://mukx.blogspot.com/2007/07/javascript-in-oa-framework.html and try it out.
    Let me know if you are not able to achieve the same.
    With regards,
    Kali.
    OSSi.

  • Open Page in new window

    ..................... I use JDeveloper 11g TP4 ......................
    How Can I Open Page In New Window when I press In Command button or link??
    Thank You.

    Hi,
    You have to set the "useWindow" property on the button to "true", and the action must start with "dialog:", like "dialog:action". And, in adfc-config.xml you have to have navigation defined also with "dialog:action".
    <af:commandButton text="Button"
             action="dialog:action"
             useWindow="true">
    {code}
    Pedja                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to open page in new window while handling event on link.

    Hi all
    I have a requirement where page should be opened in new window when I click on link.My item style is 'link'.Despite of mentioning target frame _blank, I m not able to open it in new window.I m handling event by setting Action Type as fireAction.I hope this might be the reason because of that this happened. Can somebody suggest some solution so that I can open it in new window.
    Thanks,
    Bhupendra

    Hi ,
    though i am not able to answer, i can get some answer for my question.
    How the link item is handled thru the ActionType and event in the Client Action..?
    The reason for this question is that we are trying to extend the customer search page in AR - EBSR12. there the search result page has the Account Name as a link and the Action event says viewAccountName and the action type says firePartialAction. I am trying to understand this so that i can add more parameters to the link so that i can use them in the target page of the link..
    Any help is appreciated..
    Thanks
    Chidam

  • Open that jspx page in new window using commandLink

    Hi All,
    I'm working on adf application.I'm using jdeveloper 11.1.1.5 version.I want to get the attribute value of current row and pass it to jspx page.And i want to open that jspx page in new window.I tried like following:
    <af:column id="resId1c7" align="center" width="50">
    <af:commandLink actionListener="#{bindings.setCurrentRowWithKeyValue.execute}"
    text="MSG-ID"
    disabled="#{!bindings.setCurrentRowWithKeyValue.enabled}"
    id="cl1"
    action="dialog:Confirm" windowHeight="600"
    windowWidth="800" useWindow="true"
    partialSubmit="true"/>
    </af:column>
    And in my faces-config.xml i add the navigation rule like this.
    <navigation-rule>
    <navigation-case>
    <from-outcome>dialog:Confirm</from-outcome>
    <to-view-id>/AuditLogInfo.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    Here my problem is i want to get the result jspx page in new window.But im not able to do it.Please help me how can i do this?
    Thanks in advance!

    Thq very much.It is working fine.
    I added the command link in my home page.When i'm clicking on that link im able to get my child.jspx page in new window.But I have added the login page to my adf application.If i run the login page im able to get my home page.But now i'm not able to get my child.jspx page when i'm clicking on command link.How can i resolve this.Please give me your suggestions.
    Thnks in advance.

  • Show prompts before opening a new report using action links

    Hi,
    I have a report that's grouped on a particular GROUP_ID and the current month. On clicking the GROUP_ID on the report, I need to open a new report that displays data for that month but on date level. Since we have a lot of data at date level (>100,000), I wanted a drop down on the top of the report that has all dates in that month and clicking on a particular date, the data in the pivot table is fetched.
    I tried using the pivot table prompt but that seems to fetch all the data first and then creates a drop down prompt. Is there a way where we could fire the query only on choosing a particular date.
    Is there any other way we could do this?
    Regards.

    You're saying to add a dashboard prompt for Month and Date? When opening reports using Action links, I am not able to see the prompts.
    I am using Go URLs in Action links and that data for a month is >100,000. So, I want to show the data for the month and the first date of that month.
    I really don't know whether such thing is possible or not. I just want to restrict the data to the first day of the month. Rest of the data is queried when user selects a different date from the drop down.

  • Open page in new window when click on HELP TAB

    Hi
    I have a number of tabs which work on my pages. My very last Tab is a Help Tab.
    What I'm trying to achieve is that when a person clicks on the Help tab, the page should open in a new window.
    The rest of the tabs should function normally, ie just switch pages in the same window.
    Message was edited by:
    Keith Jamieson
    Made it more readable

    Hi all
    is there any other property along with the target frame what we need to set to get this working?
    i have tried it again and still the new page when clicked on the link opens in the same window
    I am using a link item which has a fire action set to yes
    In the fire action i am calling a new page using
    pageContext.setForwardURL
    thanks
    abc
    Edited by: abcdxyz on May 18, 2011 1:56 PM

  • IWeb - cant adjust hyperlinks to open page in new window

    Anyone know of a work around to this obvious shortcoming? ...other then hacking the html code? the website is: www.apexjiujitsu.com
    My Links page is the one that I'd like to set parent=_ or whatever the value is for new window instead of same window

    Hi all.
    New to iWeb as well and am enjoying creating my website.
    Having played with HTML in the past and dreamweaver for creating pages, remembered there is a way to do this in a non-iweb way.
    The extra code that needs to be added at the end of your link is:
    target="_blank"
    Now how to get that in your iWeb page.
    What I did (worked for me each time) - copy the page you want to edit from your iDisk in the Finder window to a folder on your mac. Make sure to make a copy of this file in case you want to go back to the original.
    - Next open the page in Netscape (using ver 7.2). Pics did not show as I did not copy those.
    - In Netscape click File, Open File. Just navigate to your page location and click Open.
    One really neat feature I like about Netscape is that it comes with a built in web page editing tool.
    - Click File, Edit Page. Editing window appears.
    - Find the link you want to change and double-click it. It may try to open the link in new window, if it doesn't, don't worry about it. Or give you an error - close the error window.
    - Go back to the editing window and double-click on the link again. You should see a drop-down menu appear.
    - Click Advanced edit. There are two columns here - Attribute and Value.
    Attribute is what you want - ie open in a new window (target) and the Value is what happens next ie. opens the link in a new window.
    - Click on the Attribute drop-down at the bottom and choose "target".
    - Click on the Value drop-down and choose "_blank" (usually defaults to this).
    - Click OK and then OK again.
    Close the file and make sure to save.
    All I did then was copy the edited page to the iDisk folder wence it came from and overwrote the original (did you save a copy of the original in a safe location?).
    Opened the page in Safari or any other browser and voila' - link now opens in a new window/tab.
    Sorry for the long winded reply explanation. Wanted to be sure I didn't miss anything. ***Just be sure to save a copy of the original page your working on in a safe place in case you need to revert to the original.***
    Hope this helps.
    ps. Agree, adding an option to open links in new window should be put into the enhancements to come for iWeb.
    Stewy
    G5 Dual 2.3 ghz   Mac OS X (10.4.2)  

  • ADF 11G: opening PDF into new Window using Jasper Report

    Hello, I am using JDev 11.1.1.5.0
    I have a page into a bound Task FLow containing a table and a "print "button".
    I am using Jasper Report to create a PDF document.
    I want this document to be opened into a new Window when the user click on the button.
    I've been reading several threads/blogs to do this but it is not working.
    please help me out with the sample or some link where I can refer.
    Thanks
    Sanjeev

    Hi All,
    Today I checked and got the Reason why Server is getting shut down while closing the Report window.... this is just because of JasperViewer.
    so while opening the JasperViewer to show the Report we need to pass the second parameter as False.
    JasperViewer.viewReport(jasperPrint,false);k thanks for your update....
    but still my actual problem exist....
    I don't want to use JasperViewer to view the Report.
    Like when I'm clicking on Button PDF Report is opening in the same Winodw.
                    response.setHeader("Content-Disposition",
                                       "inline; filename=\"ReportFile.pdf\"");it will open as attachment if I'll use the below code and my ShowReport Button is getting disabled....
                    response.setHeader("Content-Disposition",
                                       "attachement; filename=\"ReportFile.pdf\"");As in Page ShowReport Button is getting disabled so after exporting the Report I want to redirect to the page but getting Error like Illegal State Exception: Response Already Commiteed
    Error Log:
    java.lang.IllegalStateException: Response already committed
         at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1608)
         at weblogic.servlet.internal.ServletResponseImpl.sendRedirect(ServletResponseImpl.java:834)
         at javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:136)
         at view.org.webcenter.sample.view.servlet.JasperServlet.doPost(JasperServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
         at org.webcenter.sample.view.bean.JasperReport.callServlet(JasperReport.java:46)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:788)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:306)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)please help me out with the sample or some link where I can refer, its very important.
    Thanks
    Sanjeev
    Edited by: Sanjeev on Jun 5, 2013 10:50 PM

  • Open Page in new window from button

    I have a button that need to open up a page in new window when clicked. The page it needs to open is dynamic and stored in an item called 'P0_STUDENT_RECORD_LIST'.
    I added this to item pre-element text:
    <button onclick="javascript:PopupSTUDENT()">
    How can I get the function to open the page name stored in the item?
    Is there a different method I should use?
    function PopupSTUDENT(){  popUp('f?p=&APP_ID.:DYNAMIC_PAGE_NAME:&SESSION.::NO:::');}

    how about this:
    function PopupStudent()
    javascript:window.open('f?p=&APP_ID.:&DYNAMIC_PAGE_NAME.:&SESSION.::NO.:::','Popup','width=800,height=500,scrollbars=1,resizable=1');

  • Opening OA page in new window using Image Bean

    Hi All,
    We have a requirement to open a new window in one of our application. It is working when I use a link but I am not able to achieve the same functionality with an image bean. Is it possible to achieve this using an image bean?
    Thanks in advance,
    Sundeep

    Sundeep,
    If you wanna use imagebean, you would have to attach action using bound values API and open secondary window in OAF.Here is the same ple code:
    OAImageBean btn= (OAImageBean)webBean.findChildRecursive("<item id of image icon bean>");
    //page url
    String page1 = "/xx/oracle/apps/XX/webui/XXPg&retainAM=Y";
    String destURL = APPS_HTML_DIRECTORY + OAWebBeanConstants.APPLICATION_JSP + "?"+ OAWebBeanConstants.JRAD_PAGE_URL_CONSTANT+ "=" + page1;
    OABoundValueEmbedURL jsBound = new OABoundValueEmbedURL(btn,"openWindow(self, '", destURL, "' , 'longTipWin', {width:"+900+", height:"+500+"}, true); return false;");
    btn.setAttributeValue(oracle.cabo.ui.UIConstants.ON_CLICK_ATTR, jsBound);
    I received your mail, and replied the same in the mail too.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How do I open a page in new window using af:commandLink?

    Hi,
    I have a requirement where I need to open the page in a new window on clicking the af:commandLink.
    I could use af:goLink, but I cannot as I have to invoke the URL using http POST method. If I use af:goLink, all the parameters will be displayed in the URL. I do not want that.
    I have the below code for the commandLink:
    <af:commandLink text="Open new window" id="cl199bk"
    styleClass="AFRighColLinkText"
    action="dialog:openNewWindow"
    useWindow="true" windowHeight="400"
    windowWidth="800" immediate="true"/>
    When I click the commandLink, the page gets opened but in the same window. I have the below controlflow-case in my taskflow:
    <control-flow-case id="__71">
    <from-outcome id="__133">dialog:openNewWindow</from-outcome>
    <to-activity-id id="__72">openNewWindow</to-activity-id>
    </control-flow-case>
    Please let me know what to do to have the page opened in new window/tab.
    Thanks in advance!

    Hi Frank,
    I tried that too and the page always opened in the same page even with dialog:action set and useWindow set to true. I had the navigation rule in adfc-config as well.
    I got it done using the url-view activity.
    I have created a new bounded task flow with the url-view activity as the default activity. I called this new task flow from the actionListener bean method on commandLink. Set the new task flow to url-invoke-allowed.
    I have my parameters set in the url-view activity. With this the parameters are not shown in the URL.
    That did the trick for me.
    Thanks.

  • Problem with opening page in new window in firefox 5

    When I open a page in a new window in firefox 5, it doesn't copy the URL into the address bar (it is blank), so I can't refresh the page. The address bar of the new window is blank, with default 'Go to a web site' text in it.

    When I open a page in a new window in firefox 5, it doesn't copy the URL into the address bar (it is blank), so I can't refresh the page. The address bar of the new window is blank, with default 'Go to a web site' text in it.

  • Open in a new window using Firefox

    Howdy, my site is
    http://www.makelikeanoctopusandeatyourselfmusic.com/
    and if you click on the last 'button 2' and then the 'Stigma' link
    you'll notice if you're using Internet Explorer that the when
    clicked the link opens up in a window as intended but if you are
    using Firefox the link does nothing when clicked.
    Any idea how I can fix it so it opens up for Firefox users?
    Thanks

    Ah, yeah, that was the problem. Thanks for taking the time to
    reply Joris.
    Lyle

Maybe you are looking for

  • HTTP post from ABAP using Object Oriented method

    Hi , I want to call HTTP from ABAP. I came to know that using classes & objects is the best way to fulfill it. Interface: xml_document type ref to cl_xml_document method post_xml_document. data: client type ref to if_http_client, xml_response type re

  • Upgrading to iTunes 8

    so a few days ago i tired to open iTunes and it said "iTunes cannot open because of a weird audio configuration" so i clicked help and it was because of QuickTime so i reinstalled the newest version so now i tried to open iTunes again and it says "th

  • Artists with one album + non-album tracks, non-album tracks vanish

    usually, the menu structure is artist > all/albums > songs. but when there is only one album for an artist, ipod goes artist > songs directly. this would be a handy timesaver, but it's problematic if you have one album and a bunch of non-album tracks

  • Seach all application code

    What is the best way to search through all of the screens in my application for a particular query or code within a procedure for function, etc? Should I export the application and search through the text or can I query the database within the flows

  • ADOBE AUDITION 3 AUTHORISATION CODE

    MY P.C. CRASHED AND  LEFT ME WITH THE ADOBE 3 ICON ON MY SCREEN. WHEN I TRY TO ACTIVATE THE SCREEN GAVES ME A BOX WITH A SERIAL NUMBER AND THEN BELOW THAT I NEED TO PUT THE AUTHORISATION IN THE FIVE BOXES PROVIDED ON SCREEN COULD YOU PLEASE GIVE ME T