Opening a URL in a new browser window

Hello Experts,
I am trying to open a dynamic url in a new browser window from a Portal application (travel and expenses). Basically, when a user clicks on the submit button, Badi IF_EX_TRIP_WEB_CHECK~USER_CHECK_CHANGES is called. In the BaDI, we have added code to concatenate a parameter to a url and then open a new browser window with that url. This works perfectly in r/3 using a tcode (pr_web_1200) but when I use the portal application under ESS, the window does not open and no error message is issued. We are using METHOD cl_gui_html_viewer->detach_url_in_browser. Any idea why this is not working through ESS in Portal? Is there some other method that we need to use? Any help is appreciated.
Regards,
Sal

check....
Re: Open Portal Transaction iView in new window *without* Browser window
for iView (page) you probably set the property 'Launch in New Window' to value Display in Separate Window. To tune up the other otions you have the possibility to set the property Window Features, value should contain toolbar=no. These features will be used when Javascript opens up your window - you can apply any option coomonly documented. IMHO for your demands the best option is fullscreen=yes,toolbar=no - you get really the maximum possible size.

Similar Messages

  • Open another website in a new browser window

    I can't seem to create links to external websites that open
    as intended in a new browser window while leaving the main browser
    window unchanged. Except in Safari on a Mac. See sample code.
    In Safari on a Mac this opens the new window and behaves as I
    want. In Safari on a PC it opens a new window, but in back. In
    Firefox on Mac I get an error message in which, when the "OK"
    button is cliked on, a new window opens in back of the main window.
    Same thing on a PC. Internet Explorer on a PC opens a new window
    but displays an error message forcing you to clik the back button
    to return to the main page.
    If I specify the main page url in the link field, then the
    main page gets reset to the top, which I don't want.
    How can I get FireFox and IE to accomplish this gracefully?
    To observe behavior go to
    http://www.digifon.com/framesetal_id.htm

    Don't use Frames. However, the issue of opening a new window
    is still
    hotly debated. My own approach is to mark the link with an
    icon and
    then to open a new window (or tab if the user prefers). If
    done
    properly with javascript, this will not spawn a myriad of
    windows and
    Standards-compliant. (And further, if javascript is off, the
    new page
    will simply open in the current window.)
    Based on this philosophy, I offer a DW Extension that makes
    adding this
    behavior dead simple. Here is an example of a page that uses
    it to good
    advantage. Despite all the external links and pdf links on
    the page,
    the Extension only needed to be added once to the page,
    rather than
    adding it to each and every link. Links added to the page
    AFTER the
    Extension is applied are ALSO acted on, a great time saver in
    my
    opinion, and easy on the user:
    http://squamscott.org/scc_green.asp
    The DW Extension is available here:
    http://divahtml.com/products/divaPOPgold/open_popup_windows.php
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Dreamweaver - Chrome open a video in a new browser window not working

    Hi guys, i'm pretty novice to dreamweaver and i've putting a site together recently...
    One thing i am trying to do is open a video in a new browser window when the button is clicked upon.
    I have done what i thought i needed to do this, and in safari and other browsers this works fine. In Google Chrome however this doesn't seem to want to work and rather then opening and playing the video it just automatically starts to download it.
    I'm sure it is a simple fix and i apologise for the thread all about it but any help would be appreciated.
    http://hauntingskateboards.co.uk/media.html
    if you click on Joe or Dean button you should see what I mean... anyway thanks in advance!

    Create Pop-Up Window in DW Behaviors Panel
    http://alt-web.blogspot.com/2012/03/create-pop-up-window-in-dreamweaver.html
    Nancy O.

  • Open URL Link in new browser window

    Can someone please help me? I've tried to use code as if I were using Dreamweaver without any luck(i.e. blank target).
    Is there a way to make the url in the PDF open a new browser windows once clicked? Hopefully this is an easy fix! Thanks in advance!

    Jono, if you are still out there.  I am also having trouble with this function.  The button works just fine, but it does not open another browser window.  I am trying to keep my pdf open, and send them to a url.  That way they can come back to the form. Like you would with the target="_blank" function in javascript.
    What am i doing wrong?  I have tried opening the script editor, but I am not sure what to do there. So I put the same as you did on your form, no effect.  I put target="_blank" and set it to javascript on just about every option.  I have tried to go into the code on the xml source tab, no luck anywhere.  I have tried to just use a text field, no luck.
    Seems like everything I have tried has no effect.
    Hopefully you can tell me it is something simple...
    Thanks in advance.
    Jodi

  • Open sso enabled app in new browser window

    I have a java app deployed to OAS and secured with Single Sign on. I would like my app to open a report and display it in a new browser window. When the new window opens I am getting an error stating that user is not authorized to access the report. This is due to the session information (successful login) being stored with the cookie in the original browser window (where the session started and where the user originally logged in). Is there a way to pass that cookie information to the 2nd browser window...or some way to re-authenticate without having the user log on again...possibly some mod_osso set-up...or some additional code? TIA.

    Hi Durairaj,
    The thing is that I did not get the desired answer to my query and the thread was posted in a wrong forum thus I have the query again inthe correct forum.
    Regards,
    Sweta.

  • Open pdf's, documents in new browser window SharePoint 2010

    Hi all,
    when a user clicks on pdf's, documents, html pages etc in a document library I need them to open in a new browser window. I've found lots of articles on how to do it in 2007 but none work in 2010. I know its not an out of the box function but people
    have done it with Java script or adding code to the document library allitems.aspx web part, I just can't replicate those steps in 2010.
    I'm not a developer or anything but can put code in the right place using SharePoint designer 2010.
    Pulling my hair out at the mo,
    please help
    thanks in advance

    Create a Document Library called ScriptLibrary.
    Download the Jquery library here: http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.4.min.js
    Create a new file called: OpenPDF.js
    Paste the following Code in the file:
    $("A[href$=.pdf]").click(function() {
          window.open(this.href);
    Upload both files to your newly created ScriptLibrary.
    The ScriptLibrary should have 2 files: jquery-1.4.4.min.js and OpenPDF.js
    Navigate to the List Page that has the PDF's that you need opened in a new window.
    Click Site Actions: Edit Page,
    Insert > Content Editor WebPart
    Click to Edit the HTML Source of the HTML WebPart, then paste in the following to reference the two files you uploaded to your Script Library:
    <script type="text/javascript" src="/ScriptLibrary/jquery-1.4.4.min.js" ></script>
    <script type="text/javascript" src="/ScriptLibrary/OpenPDF.js" ></script>
    *The src needs to point to the files you uploaded
    Save the page then click on a PDF, it should open in a new window.
    You can then export that ContentEditorWebPart to your webpart gallery, and just insert the webpart on any page that needs the same functionality.

  • Opening a state in a new browser window?

    How to open a link button..(the link button actually changes the state of the page) but i want to open that in a new browser window....
    Any help....

    check....
    Re: Open Portal Transaction iView in new window *without* Browser window
    for iView (page) you probably set the property 'Launch in New Window' to value Display in Separate Window. To tune up the other otions you have the possibility to set the property Window Features, value should contain toolbar=no. These features will be used when Javascript opens up your window - you can apply any option coomonly documented. IMHO for your demands the best option is fullscreen=yes,toolbar=no - you get really the maximum possible size.

  • Open a view in a new browser window

    Hi Experts,
    Can you pls guide me to open a new window ( Browser) on clicking a Button, Currently I could open a window but it looks like popup.
    In my case I want a separate browser to be opened.
    Please advice.
    Regards,
    Bala

    There are actually only 2 options:
    -- external browser window via URL (separate WD application is started)
    -- internal (non-movable non-resizable) modal window inside main application window.
    first at the html page, add the code:
    <script language="javascript">
    function openwindow(){
    window.open("view");
    </script>
    in the page_load event,add the code:
    private void Page_Load(object sender, System.EventArgs e)
    this.ImageButton1.Attributes.Add("onclick","openwindow()");
    Message was edited by:
            Kanwalpreet

  • Strange Error while opening Web UI in a new browser window

    Dear Experts
    My requirement is to launch one of my custom Web UI screens in a new window upon clicking a button.
    I am successfull in lauching it in new window.
    How did I do it:
    Step 1) Created a custom object type (ZOBJ) for my z component in SPRO->UI Framework Definition->Define UI Object Types.
    Step 2) Created a logical link (ZLL) for my Z component in SPRO->UI Framework->Technical Role Definition->Define Navigation Bar Profile.
    After that, In the same path, select Define Profile->Define Generic OP mapping->(Here Assign Object type ZOBJ(step 1) and Logical link ZLL(step 2) )
    Then created a dynamic URL and passed this URL to the "on_client_click" parameter of my button.
    Sample code is below.
    I put the below in the .htm of the view where my button was declared.
    data: lv_url_string TYPE string.
    lv_url_string = 'http://server name:port number/sap/bc/bsp/sap/crm_ui_frame/default.htm?sap-syscmd=nocookie&
    crm-object-type=ZOBJ&crm-object-action=B'.
    Note: Here ZOBJ is my custom object type that I created for my Z component.
    <thtmlb:button id            = "NW"
                         onClientClick = "javascript:window.open('<%= lv_url_string %>');"              
                         tooltip       = "New Window"
                         text          = "New Window" />
    Problem I am facing:
    The above code is successfully opening my custom screen in a new window.
    But on the toolbar (where we usually see error messages in Web UI),
    I am getting an error message with the below description.
    Type= SYSTEM_ERROR, ID= ERROR_SESSION_INIT, description= 16AA9A3937A9BB56E10000000A11447B
    I am not able to understand what this error is.  The message is appearing only for the first time I am displaying my Z component in a new screen. Interestingly, when I do some action on my screen (expand the assignment block for example), this message is gone.  This message doesn't seem to be effecting any functionality, but the users certainly don't want to see an error messsage like this.
    I did some research on this and this error looks to be coming from the class CX_WS_MESSAGE_SYSTEM.
    This class has an attribute (CX_ROOT) with initial value "16AA9A3937A9BB56E10000000A11447B" (same one I am getting in my error message). I am not sure though because this attribute (CX_ROOT) is present in several other classes also.
    I would really appreciate if somebody can throw some light on this issue.
    Thanks
    Raj

    Hi Arun
    Thanks for your reply.
    I tried the way you suggested. But unfortunately I am still getting the same old error.
    Forget to mention something...actually I am seeing this error in the new session (window) only. My original window is not showing any error.
    And also just FYI...This is inside the Interaction Center Web UI profile ->Account Identification -> Identify Account->Enter Account ID->Click on Confirm button.
    At this point, I am first showing a popup window with text "Do you want to open Partner details in new window".
    This popup has 2 buttons 'Yes' and 'No'.. If the user clicks on 'Yes', then I am opening my custom screen (Partner Details) in a new window.
    This is the point I am seeing the error  (only in the new window).
    Type= SYSTEM_ERROR, ID= ERROR_SESSION_INIT, description= 16AA9A3937A9BB56E10000000A11447B
    This custom screen contains several (only) assignment blocks (all lazy initially). When the user expands on any assigment block, the error is gone and everything looks good.
    Please suggest.
    Thanks and Regards
    Raj

  • When "Use Google Instant", "Open search results in a new browser window." does not function.

    In the "Google Search Setting", if select "Do not use Google Instant", then the selected search result of Google Search will be displayed in a new window, but if "Use Google Instant", the selected result will replace Google Search window. This problem does not exist when using Chrome Browser.

    That does what it says - even if Google tells the browser to open the page in a new window, you have told Firefox to ignore that and open it in a new tab. Uncheck the box and you should get the result you want.

  • Open the HTML attachment in new browser window

    Hi all,
    There is a Bsp application in which the table view has list of all attachmnets.
    When I click on a cell a popup opens asking whether the file is to be opened , saved or cancel.
    When I click on open then if it is a TXT attachment it opens in a notepad but if it is an HTML attachmnet it gets opened in the same browser window instaed of a new one.
    What do i do to open the HTML attachment in a new Beowser window.
    Regards,
    Sweta.

    Hi Durairaj,
    The thing is that I did not get the desired answer to my query and the thread was posted in a wrong forum thus I have the query again inthe correct forum.
    Regards,
    Sweta.

  • Opening external link in a new browser window

    Some of the external links in my web page need to open in
    their own window, leaving my site still open in the background. Can
    anyone tell me how to do this? I don't see an option anywhere when
    I am creating these links.
    The links are to, for example, "The City of ......", and
    could be quite long to traverse. I don't want my visitors to have
    to click their browser's back button who knows how many times to
    get back to my site.
    I would appreciate any suggestions, thanks

    It's not valid in a Strict doctype, either HTML or XHTML.
    A better way to do this would be to see this tutorial -
    http://www.tjkdesign.com/articles/popup_window_with_no_extra_markup.asp
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Dooza" <[email protected]> wrote in message
    news:gbaiof$17a$[email protected]..
    > Dooza wrote:
    >> malcster2 wrote:
    >>> dooza wrote
    >>>
    >>> malcster2 wrote:
    >>> > highlight your link in design view.
    >>> > > in the properties panel, change the
    target to _blank
    >>>
    >>> FYI this isn't valid XHTML, but is valid HTML,
    depends on what your
    >>> aiming at.
    >>>
    >>> ....
    >>>
    >>> validated ok mate. what exactly isn't valid
    xhtml?
    >>> this would be the code in question:
    >>> <p><a href="
    http://www.thesun.co.uk"
    target="_blank"
    >>>
    class="style1">www.thesun.co.uk</a></p>
    >>
    >>
    http://www.w3.org/MarkUp/2004/xhtml-faq#target
    >>
    >> Dooza
    >
    > But then I find this:
    http://learningtheworld.eu/2007/xhtml-with-target/
    >
    > Dooza

  • Open PDF file in a new browser window

    I have a PDF file on the harddrive and I call a function from BalusC :
    public static void downloadPDF(FacesContext facesContext, String path, String fileName)
    util.Logger.append("Path = " + path );
    util.Logger.append("file name = " + fileName);
    ExternalContext externalContext = facesContext.getExternalContext();
    HttpServletResponse response = (HttpServletResponse) externalContext.getResponse();
    File file = new File(path, fileName);
    BufferedInputStream input = null;
    BufferedOutputStream output = null;
    try
    //open file
    util.Logger.append("1");
    input = new BufferedInputStream(new FileInputStream(file), 10240);
    //Init servlet response
    util.Logger.append("2");
    response.reset();
    util.Logger.append("3");
    response.setContentType("application/pdf");
    util.Logger.append("4");
    response.setContentLength((int)file.length());
    util.Logger.append("5");
    response.setHeader("Content-disposition", "inline; filename=\"" + fileName + "\"");
    util.Logger.append("6");
    output = new BufferedOutputStream(response.getOutputStream(), 10240);
    util.Logger.append("7");
    //write file contents to response
    byte[] buffer = new byte[10240];
    int length;
    util.Logger.append("8");
    while ((length = input.read(buffer)) > 0)
    output.write(buffer, 0, length);
    util.Logger.append("9");
    //finalize task
    output.flush();
    util.Logger.append("10");
    catch (IOException e)
    util.Logger.append("reporting.Utilities :: downloadPDF :: " + e.getMessage());
    finally
    util.Logger.append("finally");
    close(output);
    close(input);
    //inform JSF that it doesn't need to handle response
    //this is very important, otherwise you will get the following exception in logs:
    //java.lang.IllegalStateException: cannot forward after response has been comitted
    facesContext.responseComplete();
    private static void close(Closeable resource)
    if (resource != null)
    try
    resource.close();
    catch (IOException e)
    e.printStackTrace();
    This works like a charm, but the problem is that the PDF is opened in current window instead of a new one. I checked posts on this problem on this forum but i haven't found any answer to my problem. As you can see i added some 'idiot' logs just to make sure i have no errors. I see them all in my log file and there is absolutely no error. I simply see the PDF in the same window.
    Can anyone help me, please?
    Thank you.
    (Pls tell me if you need any other information)

    My problem is that the parent form has 4 buttons and a grid.
    3 buttons are Add/Edit/Delete for records in the grid. Only the 4th button is the Print report and this is the only one i need to open in another page.
    Even if I create another page and I navigate to it, setting target of newly created page to open a new window will bring me the problem of having 2 windows to close once users wants to close the PDF which is kind of awkward.
    What is your advice?
    Thank you
    Marius

  • Setting preferences in Google search ... I can't get the "Open search results in a new browser window." setting to stick. It seems to revert randomly to the unset state. Other settings stick fine. Any ideas?

    Cookies settings:
    tracking not selected;
    Use custom setting for history selected;
    permanent browsing not selected;
    remember download not selected;
    remember search and form selected;
    accept cookies and accept 3rd party selected;
    keep until expired ...
    Clearing history settings:
    History ... browsing, download, active and cache selected
    forms and search, cookies not selected
    Data ... offline and site pref selected ; saved pwds not selected

    It's not an issue of whether the user saves or does not save the preferences, there are several factors that could be causing this. The KB link I posted above explains the issue & solution in detail.

  • Open url in new browser window

    Hello,
    i am looking for a possibility to open an URL in a new browser window, when the end-user clicked on a button.
    I am aware of the LinkToURL view element. Unfortunately i would prefer to use a button element instead of the LinkToURL elementl. Can anyone provide me with a solution? Maybe there is a possibility to implement the needed coding in the action assigned to the button.
    Thanks,
    Dirk
    Message was edited by:
            Dirk Jäckel

    Hi Dirk,
    Use <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/79f82ccbec6fcde10000000a1553f6/frameset.htm">IF_WD_WINDOW_MANAGER</a> method CREATE_EXTERNAL_WINDOW and pass URL parameter in button click event handler. And don`t forget to call OPEN on new window instance.
    Best regards, Maksim Rashchynski.

Maybe you are looking for

  • New version of object popping up on Deletion of T Code

    Hi I removed a Tcode from a role. This Tcode does not have any other object besides S_TCODE. However on exclusion and choosing Expert Option / Read old status and merge with new data, i see that there is a new version of a object has popped up in "NE

  • Can you recover deleted files which were stored on an external HD after emptying the trash on the Imac using Time Machine.

    Hello - I had deleted files off of my external HD which I thought would not affect my Itunes library... Unfortunately I was incorrect in my assumption.  Additionally, I empty the trash as I was hoping to regain storage space for the external HD.  My

  • Issue with how to compute additional column in query output.

    Hello PL/SQL Gurus/experts, I am using Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production version Currently i have the data in the following way - drop table T2; create table T2(Year, MastTot, BechTot, Tot) as select '2008',

  • My BT account

    I had a phone line with BT, then after getting my phone line slammed by talktalk a couple of months ago I had to get a new account with BT...Eventually everything is up and running except when I log in to see my account, it's the old account... After

  • CS5 Optional Plugins Problem??

    Hi, I work for a college. I have a lab of 20 identical machines. They are iMacs running Leopard. They have Adobe CS5 Standard installed. Last night one of my faculty said that photoshop was missing two plug-ins. Web Photo Gallery and ContactSheet. I