Opening a url in new window using a button after running a process

I need the folowing to happen:
When a button is clicked, a process runs - updates a table in the DB. then a URL opens in a new window.
I created the process and related it to the button - click of the button makes it work.
If I write in the button properties the URL - optional URL redirect:
javascript:popupURL( 'http://www.mysite.com');
the process does not run. url opens in new window.
If I create a branch - writing there javascript:popupURL( 'http://www.mysite.com'); the process works but URL does not open. only writing http://www.mysite.com works - but it does not open a new window.
The question is: how can I click on a button, make a process run and URL opens in a new window?

If you post your page, then the browser must go some place. You can post your page (say page 1), you can then branch to page 2, then the js on page 2 can open a new window. Once you post your page you must goto another page before you can open a new window.
Perhaps what you want is to press a button on a page and have it do work without posting the page, e.g. make an AJAX request, and then based on that work popup some corresponding page.

Similar Messages

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

  • Open URL in new window

    Hi folks,
    I am working on WAD3.5 where in I have created several links to open either WEBGUI i.e to open various customized TCODES in SAP-Bi or other queries. BAsicaly its a work bench sort of thing from where we can access various tools developed for client. I am using below mentioned HTML code:
    <TD class=SAPBEXBtnStd vAlign=top>
          <DIV style="HEIGHT: 20px"><A
          href="/sap/bc/gui/sap/its/webgui?~transaction=ZBI_AUTOMATION_TOOL"><B><FONT
          face=Verdana color=#000080>BI Automation Tool</B></FONT>
        </A></FONT></DIV></TD>
    where ZBI_AUTOMATION_TOOL is a customized TCODE. Issue is whenever i click on the link it opens the WEBGUI in same screen and when i click back the page expires. I want to open the URL in new window.
    Please help me by providing the exact syntax. It would help to resolve my issue. I have tried couple of things but they are not working.
    Thanks
    Rahul Mahajan

    There is a parameter on the web template that should be set..
    it is
    Open dialogs in new window - set this to either automatic or "Open Window  X"
    or add this to your template properties list:
    <param name="ENABLE_OPEN_WINDOW" value="X"/>

  • Open a new url in new window

    Hi all,
    I have implemented an application & integrated in EP. In my view i have provided a link on click of which i should be able to open a separate url in a new window.
    Again, I need to pass some url parameters which should not be visible in the url string when i am opening that url in new window.
    Any suggestions...
    Thanks,
    Arch

    Hi,
    First u have to create outbound plug in interfaceview
    1)Open the node WebDynpro -
    > Web Dynpro Components -
    > <ComponentName> -
    > Component Interface -
    > Interface Views in that click <interfacename> interface view .
    2) Select the Plugs tab in the Plugs area.
    3)Choose New next to the outbound plug table.create new outbound plug.for example,Name GotoUrl, and choose Type Exit Plug.
    4)Select the new outbound plug GotoUrl and choose New next to the parameter table.taEnter the name Url datatype as STRING.
    5)Open the view in the View Designer and select the Properties tab. Choose Add next to the Required Controllers table and add the <interface name>InterfaceView
    Place 1 button and check,
    onActionButton write this code
    wdThis.wdGetSampleInterfaceViewController().wdFirePlugGotoUrl(
    "http://www.google.com");
    Regards,
    Suresh.T

  • Open and style a new window

    Hello,
    Following this thread Re: Apply CSS to help window I'm trying to open and style a new window, using JavaScript. I'm using the following script:
    <script language="JavaScript" type="text/javascript">
    function newwin(targetURL) {
    var swin = window.open(targetURL,null);
    swin.focus();
    swin.document.getElementsByTagName("body")[0].dir = "rtl";
    </script>In a pure HTML environment, it works just fine. In ApEx I'm receiving an error message http://i2.tinypic.com/vfl7qc.png, which relate to the first window. For some reason, the reference to the new window (swin) does not work properly.
    An example page can be seen at http://htmldb.oracle.com/pls/otn/f?p=22814:30
    Can anyone please help me understand where the problem is?
    Thanks,
    Arie.

    I've just tried your supplied code in Firefox and Internet Explorer in an Apex environment and they both worked fine.
    FYI I tested with the following links on my host page:
    < A href=javascript:newwin('http://www.leeds.ac.uk');>Click here!< /a >
    < A href=javascript:newwin('f?p=103:1:&SESSION.');>Click here!< /a >
    And the Javascript code in the header section of the same page.
    A few questions:
    - Which browser are you using?
    - What will be in your popup? Another Apex page or something else?
    - If an APEX page, what does the URL look like? Different to mine above?
    - Is the popup Apex page a 'normal' page - or have you customised the template significantly?
    I would guess that your error message is referring to the fact that getElementsByTagName is returning null - rather than the reference to the window. Thus, I'd check for the existance of a body tag and a generally well formed destination page. Test with leeds.ac.uk as I used above to confirm.
    Hope this helps
    Ben

  • Transaction launcher: open URL in new window

    Dear all,
    I know many threads have already been posted about "stateful URL" created with transaction launcher, that open a new browser window AND navigate to an empty screen with the following text (which is more than useless):
    "The requested page has been opened in a new window, please press back button to go back to the last page."
    Carsteen gave some useful hints already in the following thread:
    Transaction Launcher in a new window
    But maybe someone found something new since then... At the moment I'm thinking about "simulating" a clic on the BACK button (like mentioned in this useless message), with something like :
      DATA:
      history TYPE REF TO if_bsp_wd_history_manager_disp.
      history = view_manager->get_history_manager_display( ).
      history->go_back( ).
    Any better idea ?
    Thanks & regards,
    Nicolas Busson.

    Hi Nicolas !
    How are you? :-)
    I assume that since then you have found a way to fix your issue, but as the post is not answered I can tell you that SAP has taken into account this point in SAP 702 EHP1, with a new attribute in the customizing of the transaction launcher called "Keep Work area" :
    Keep Work Area When Opening Launch Transaction in New Window
    This indicator defines whether the work area content is kept when you open a launch transaction in a new window.
    Use
    If this indicator is not set and a launch transaction opens in a new window, then the main window loads the base page of the transaction launcher into the work area.
    If this indicator is set and a launch transaction opens in a new window, then the main window keeps its current content in the work area.
    Dependencies
    This indicator is only evaluated if you have also set the indicator for using a new window.
    Imed.

  • Using Firefox 5 in Windows 7, once I have Firefox open, I can no longer open a new window using the start button. How do I fix?

    As I stated, I have Windows 7 on my laptop and have installed Firefox 5. I sometimes like to have multiple windows of the browser open. But, unlike any previous version of Firefox, now when I have the browser open, when I try to open a new window using the Start menu, it will not open one. I have to use Ctrl+N. Why did this change?
    This may seem insignificant but it really hampers my work flow. For one, with other applications, Shift+N is what opens a new window. For two, I've been doing with with my browsers for years now and it's like second nature for me - having to remember that in Firefox it's Ctrl+N is a pain in my tuccus.
    Firefox is my go to browser and I would like it to stay that way. Please find the solution for me! I have tried looking using Tools, Options, as well as looking at my start menu and taskbar options, and no dice.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • 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

  • 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

  • How to open a entity form in a new window using openEntityForm() method.

     How to open a entity form in a new window using openEntityForm() method.

    As far as I'm aware, there isn't a supported way to do this in the client-side API. You could use window.open instead
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

  • Since the latest update of 3.5.11, firefox opens links in a new window. it used to open links in a new tab. how can i fix that?

    since the latest update of 3.5.11, firefox opens links in a new window. it used to open links in a new tab. how can i fix that?

    The setting in "Tools > Options > Tabs" only works for links that would open in a new window.<br />
    That option allow you to divert such calls to a new tab.<br />
    For other links you either have to use a middle click or a Ctrl + left click or use the context menu.
    Tabberwocky: https://addons.mozilla.org/firefox/addon/14439

  • Open Sub Report in New Window

    Hi,
    We have an application which is integrated with crystal reports.
    So when you open a report from the application it opens up in a new window. (Ours is a web based application and crystal reports opens up in IE browser)
    We have some reports which have subreports (on demand ), is there any crystal report configuration through which these subreports can be opened in a new window, as of now they open in the same main report window.
    Thanks in advance

    hello,
    you may wish to look into saving the subreport as a separate report and then:
    1) calling the report via opendocument (if your app sits on top of businessobjects enterprise or crystal reports server)
    2) calling the report via URL reporting if your app does not utilize the above platforms
    i can't guarantee the above will work as it may depend on your environment that you are hosting the reports in.
    see the help guide [here |http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf]for more information on linking
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf
    as per using a subreport and opening in a new window, this doesn't really work.
    if you want though, you can use a Report Part link to go from the open subreport back to the main report. please see more on Report Part linking in your crystal report's online help.
    jw

  • Launch URL in new window?

    Is it possible to launch a URL to open a webpage from within captivate and have it open in a completely new window with a predefined window size. If I select the - Open URL or file with the New option- it will launch the webpage in a new tab which is the same size as the currently open browser.

    Hi there
    Captivate is like any other application that allows opening web pages. Sure, it can be done but Captivate offers nothing to help you define that window size. What you will have to do is use JavaScript to make it happen. Configure the button or click box or advanced action so it executes JavaScript, then insert the script you want to run.
    Cheers... Rick

  • Problem with changing URL within Safari window using AppleScript

    hey everyone,
    I'm currently trying to write a script that will open Safari, then change the URL within that same Safari window, and then quit Safari. However, I'm currently having a few problems:
    1) Sometimes two Safari windows will open. One will go to what I'm guessing is the default homepage, and the other will go to Google.
    2) I cannot figure out or find a way to change the URL within that window using AppleScript.
    Does anyone have any ideas as to how to go about doing these things? I'm pretty new to AppleScript, so if what code I already have is poorly written, please let me know. Thanks!
    --Open Finder and tell it to open Safari
    tell application "Finder"
    set site1 to "http://www.google.com"
    set site2 to "http://www.yahoo.com"
    launch application "Safari"
    tell process "Safari"
    open location site1
    delay 10
    open location site2
    delay 10
    end tell
    end tell
    --After waiting the allotted time, tell Safari to quit.
    tell application "Safari"
    quit
    end tell
    --Jonathan

    Welcome to Apple Discussions!
    You don't need to tell the Finder to open Safari - you can address it directly.
    This should be self-explanatory, but do ask away if you have any questions.
    (If there's only one window open - as per your description - it will take the first URL. Otherwise - if there are zero or many windows open - a new window will be opened for each URL.)
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;">
    tell application "Safari"
    activate
    if (count of windows) is not 1 then
    set theFirstWindow to make new document at end of documents
    else
    set theFirstWindow to document of front window
    end if
    set URL of theFirstWindow to "http://www.yahoo.com"
    set theSecondWindow to make new document at end of documents
    set URL of theSecondWindow to "http://www.google.com"
    end tell </pre>

Maybe you are looking for