Displaying content in a separate window

I have the results of an ldap search being displayed in a JSP container, but want to be able to display the individual details of an entry in a separate window when the user clicks on an entry.
I have tried doing a window.open (and using the target attribute of <A>) using the following href...
href="portal/dt?action=content&provider=CHANNEL_NAME&dn=<util:encode value="$result.dn"/>" >
This does bring up the new window as expected, however it seems to leave the portal in a confused state. Once the window has been opened, selecting other options in the main portal window produces incorrectly rendered screens.
I don't want to go to an external page as this would require making usernames and passwords visible.
I looked at JSPPopupContainer but got nowhere with that. Any ideas?

Thanks for the reply...
Basically we have a JSP channel which initially displays just the search criteria fields and a search button - when the search button is pressed, the filter is generated based on the field contents and placed in a hidden field on the form, the forms action is to call the current page - this time, because the filter field has a value, the ldap search is done and the results are displayed below the search fields - the 'person name' being a hyperlink' which should show the persons full details.
Ideally, I'd like to keep it all within the context of the portal. I did look at calling an external page, but could not work out how to set up the link as to put all the required details in the request header and call the new page, rather than just passing it in the URL which I don't want to do as private info would then be visible.
Stewart

Similar Messages

  • Hyerlink open in separate window?

    Is there a way to trigger a hyperlink to open it's content in a separate window?

    You could use something like MassReplaceIt and do a find and replace:
    find "area href" and replace with "a href", there are some more details and an example here.
    Will
    1GHz G4, 15" PowerBook, Airport Network, 1G iPod Mini   Mac OS X (10.4.6)   Easy to use iWeb tips here

  • RH8 Merged project child project displaying in a separate window

    Hi Everyone,
    Today I created a brand new merged project in RH8 using webhelp format. Both the parent and child projects were created from scratch.
    When I displayed the finished merged project and clicked on the child project in the help TOC the child project displayed in a separate window!!
    Please can someone advise ...
    How do I configure this so the child project displays in the same window as the parent?

    Peter,
    Many thanks for your suggestions.
    I tested the sample project again, it was actually from one of our customers whose browser security settings are fixed. The problem was caused by IE7 internet browser security settings. Once blocked content was permitted everthing displayed in the same window.
    This is a relief as all other settings were what I normally used and these always worked.

  • Displaying HTL file in a separate window

    i have aportal page where i have a portlet which clip whole contents of the HTML file xfile.html
    Banner & Logog of the Company
    | xfile.htma appears here |
    ----------| |-------------
    | =Printer View |
    ----------|--------------------------------------|-------------
    While browsing the xfile.htm from the portal page i want to have a button that let me browse the xfile.htm in a new spearate browser window
    xfile.htma appears here
    in separate window without banners or footer
    Regards
    Mohamed Hammed

    Hi Mohamed,
    I can think of one way :-
    1. Create a new page.
    2. Add your Web Clipping Portlet to this Page.
    3. Publish the Page as a Portlet.
    Now, you have the best of both the worlds - a Page that has a URL & is also a Portlet !
    You can cimply add the Portlet to your other Page. You can also create a button and when a user clicks the button, you can write a simple JavaScript to function to open the URL in a new Window.
    Regards,
    Sandeep

  • How to display topic content in non-RH window?

    Morning all,
    I'm working with my developers to find the best answer to this: How can we display topic content in a non-RH window.
    Currently, I'm running RH 8.0.2 and generating WebHelp. We want to keep all content in RH, and for one part of our web service, we want to display topic content, but not a window generated by RH. In fact, we really just need the data to appear in something simple like a table cell. We don't want to hard code the content as it's likely to change.
    I'm guessing since the folks on this forum have done everything w/ RH short of alchemy, someone out there has already done something like this.
    So far, we're looking at opening the .htm file and pulling everything inside the body tags, then displaying that in whatever structure the developers decide is best. Kinda crude.
    Questions that come up:
    How do we match the content to the page it's displayed on since we're not using any of the RH structure around the content?
    Is there a slick way to do this with the CSH API and MapIDs?
    Since we're just using the content, the title tag is unused for these topics. Is there a way we could leverage this tag to help track the topic or the page it will display on?
    As always, any enlightenment is welcome.
    Patrick

    Peter,
    Thanks, but not really. I had read through that topic a while back.
    It looks like we really need to display the content (probably everything between the body tags?) in an HTML element like a <td>. We could do frames, but for a small help window, they really eat up a lot of space and definitely don't fit in with the style of the site.
    I think the display of the content will be left in the developer's hands - that's what they get paid for.
    If you have any thoughts on how to reference the content, I'd love to hear them. I can't see MapIDs working as we're not using the CSH API. Though I suppose our developers could hack the .js file and determine how RH uses the MapIDs and recreate that. But that's a lot of work.
    Referencing the topic by the name of the .htm file locks us into that file name and makes future changes a little more difficult.
    The only thing I've come up with so far is to put a code in place of the <title> tag since the title won't be displayed. That way we could change the content w/out the developers having to recode. Crude, I know.
    Regards,
    Patrick

  • Chrome will not display a YouTube link in a separate window, but IE will..Help!

    I have published a file so that user clicks an object and You Tube video launches in a separate window, This allows the user to close the window and return to the cap file.  When I launch file using Chrome and user clicks the object, the You Tube video appears in the current window.  The back button is not available.  User closes the window and is kicked out of Cap file.  User must get back into the Cap file to continue. 
    When I test this using IE, everything works correctly.  Why doesn't this work in Chrome?  I need a fix so that no matter what browser is used the YouTube video will open in separate window.

    Hi Elizabeth,
    Welcome to Adobe Community.
    We were successfully able to reproduce this issue at our end and we have reported this to the department concerned.
    Thanks!

  • Every time i launch mail , every mail in my folders is displayed on screen via a separate window , it takes about 5 minutes before i can do anything else

    Every time i want to work witch mail clicking the application (the stamp) it starts with representing every mail in my folders in separate windows, by the time this is done (taking up to 15 minits, the applications does not react anymore. Other apps are working flawless.

    What iMac model? What OSX version? (iOS is not a computer operating system)

  • Iview not opening in a separate Window

    Hello Experts,
    We have an Iview for approving/rejecting apprasials for Manager. The Iview Id is PddDirect. In order to open this iview in a separate window we have set "Launch in New Window" property to "Display in separate window".  This Iview is assigned to a page and that page to a workset then this finally this workset is assigned to a MSS Role. This Iview opens in a separate window when accessed through MSS Role.
    Once any employee submits his appraisal Manager gets a link in email to access this appraisal document to approve/reject.
    [http://host:port/irj/portal/?NavigationTarget=ROLES://portal_content/com.ABC.ABCContent/com.ABC.HRSE1/com.ABC.iViews/com.ABC.PddDirect&DynamicParameter=ID=014D1089964C1400E2E10080000A104E240000X]
    When manager clicks on the link to access document it opens in the Content Area of portal even though the property is set to separate window.
    When the same thing is done by loging into  ESS/MSS portal the same Iview opens in a separate window.
    Could anyone put some light on the wierd behaviour of this particular Iview.
    Thanks
    Surender Dahiya

    Hi Surendra
    As you are telling when manager clicks on the link to access document it opens.
    Can you  try with changing the property of ["Launch in New Window"  "Display in separate window"] of the Source iView i.e where the link is available also you can change target.
    If  iViews are  assigned to pages change the corresponding page properties also. Make sure clear cache of the Iview and Clear history of browser and test the same.
    BR
    SS

  • Display .doc file in new window by url

    Hi all,
    I hope someone got a quick an easy solution for this one.
    I want to access and display (open/save) a .doc file in a new separate window by using createExternalWindow(docUrl, xxx, xxx), where docUrl is a path on the local webAS. Right now I access the file like this:
    File doc = new File("apps/local/filename.doc");
    wdComponentAPI.getWindowManager().createExternalWindow(doc.getURL(), "", false).open;
    This does not work though, since it gives me the absolute path from the hard drive letter and down, ie: c:/usr/sap/../filename.doc
    We havent installed Office Integration on our webAS.
    Anyone? All help help is appreciated. This doesn't feel like it should be a big issue?!
    Best regards,
    Andreas

    Andreas,
    Here is probably not the optimal and not the most intuitive way to perform this task, but anyway:
    1. In View controller context create attribute with type <b>binary</b>, let us name it <b>MyDoc</b>
    2. In View controller source define private variable
    private ISimpleType _msWordType
    3. In View controller wdDoInit method place the following:
    _msWordType = wdContext
      .getNodeInfo()
        .getAttribute("MyDoc")
          .getModifiableSimpleType();
    ((IWDModifiableBinaryType)_msWordType).setMimeType( WDWebResourceType.DOC );
    ((IWDModifiableBinaryType)_msWordType).setFileName( "MyMsWordDocument.doc" );
    4. Use the following docUrl when calling createExternalWindow
    /* Load document content first */
    final byte[] documentContent = loadDocumentBytes();
    /* And now the trick itself */
    final String docUrl = _msWordType.format( documentContent );
    We successfully apply this technique to display photo from employee profile loaded from database
    VS

  • Followup on archived thread re Opening Bookmarks in Separate Window with FULL FUNCTIONALITY not Annoying Limits

    First, I find it annoying that relatively recent threads are closed so quickly, especially when good solutions aren't found to the questions posed.
    In this case, I see someone else wanted to open their bookmarks in a new window, not a tab or sidebar.
    https://support.mozilla.org/en-US/questions/984381#answer-526189
    The 'chosen' answer provided was use Ctrl Shift B. That does open the Library in a separate window.
    But for me that's totally inadequate, because one can only view the contents of one folder at a time. And I have hundreds. The person posing the question replied that detailed information on each bookmark is not displayed that way either. In my case, with a large and developed bookmark tree, that telescoping two panel view poses an unworkable limitation. And one that kept me at FF 3.6.28 until a year ago, when I found an answer to that problem, and this gentleman's also, I believe.
    I'm now using FF 27, with the All In One Sidebar extension. I believe that adds a Bookmarks Icon with a Star at the top of a new sidebar.
    If set up properly (see customize), left clicking allows you to "display your bookmarks" as a Sidebar, New Tab or New Window. But more importantly, in the New Window at least, it is not in the dreaded two pane mode where I can only view the contents of a single selected folder at any one time. Instead, I can open multiple folders at one time and see multiple individual bookmarks, buried in separate folders or subfolders, at one time. Ie, the same hierarchical layout that used be available before FF 4 changed the whole bookmarks architecture. So, when I open a new folder to view its contents, it doesn't close the prior folder automatically. And that's the way it should be. Users should have options, not have particular behavior imposed on them. Now, I'm not confident that I can upgrade to a newer FF as I was not readily able to get the same functionality out of AIOS using a more recent version of FF. But I didn't try hard, so it might also work with newer versions. Perhaps someone can verify that.

    https://support.mozilla.org/en-US/questions/984381#answer-526189
    This thread was closed so quickly? That thread is '''''just over a year old'''''. Threads get archived after 6 months, or later when the thread isn't "Solved" and receives new postings later on. And the Chosen Solution in that thread was to use '''chrome://browser/content/bookmarks/bookmarksPanel.xul''' in the URL bar (or a Bookmark).
    As far as older versions of Firefox and how they worked, you are mistaken about how Firefox 3.6.xx works - basically the same as the later versions all the way up the the current Firefox 35 Release version. In the Library window ''(Show All Bookmarks)'', select a folder in the left pane and view the contents of that folder in the right pane - is the same now as it was in Firefox 3.0, with few minor changes.
    The last version that had the old Bookmarks Manager window, where you could have multiple folders open in the right pane was Firefox 2.0.0.20. Firefox 3.0 was the first version that had the current Library window scheme. Firefox 3.0 was where the major change to the Show All Bookmarks occurred.''The reason that I am so sure of when those changes occurred is that I have every version of Firefox from 2.0.0.20 all the way up to the current Nightly 38.0a1 version installed; I didn't rely on my memory of those old version changes - I just viewed them to answer this thread.''
    Regardless of how each individual user thinks Firefox "should work", it works they way Mozilla decided it should work. If you don't like the way the standard features work you can always install extensions that do have the features you want. Mozilla doesn't impose anything on their users; don't like something find an extension that does it better for you. And it an extension doesn't exist; learn to create those features yourself by building your own extension. Still not good enough; use a different browser that works the way you think it should work.
    As far as updating to Firefox 35 goes, use the Firefox Portable version to experiment with, so you don't risk your current installation in case you don't like the new version.
    http://portableapps.com/apps/internet/firefox_portable
    Just install it to your hard drive; it won't affect your current installation in any way, shape, or form.

  • Displaying PDF in new Browser window

    Hi all,
    I have a question about displaying a invoices in pdf format in a new window. I read several threads about this, but I haven't been able to solve my problem.
    I'm using following code:
    append the pdf to the response
      cl_wd_runtime_services=>attach_file_to_response(
        i_filename  = 'test.pdf'
        i_content   = lx_pdf
        i_mime_type = 'application/pdf'
        i_in_new_window = ' X'
        i_inplace       = 'X' ).
    The content (lx_pdf) is retrieved from a smartform, via the function module for the smartform in question, after which I convert the OTF Data (JOB_OUTPUT_INFO-OTFDATA) to XSTRING using FM SCMS_TEXT_TO_XSTRING. The returned data (buffer of type xstring) I use for afore mentioned method. But all I get to see is the following:
    //XHPLJIIID    0700 00000000001
    IN04EZZ_MO_SMARTFORM_TEST
    IN05TEST_PAGE_1
    OPDINA4   P 144  240 1683811906000010000100001
    IN06MAIN
    IN06TEXT_TEST1
    MT0168902156
    CP11000000E
    FCCOURIER 120  00144 SF001SF001110000144E
    UL +0000000000000
    CT00000000
    ST0590441This is a text page for displaying PDF in a
    MT0168902396
    ST0547238new window
    MT0168902636
    ST0460832called from within a WD application
    MT0168902876
    ST0144010Application
    EP
    The text is correct, but it is not displayed as PDF in new window, and of course I'm not interested in all the formatting codes in front of every line??
    I should be possible to display a pdf in a new browser window without having installed everything needed for Adobe Interactive forms, or isn't it??
    Kind regards,
    Micky.

    Hi Micky.
    If you have the spool number of the printed billing document you can use
    component WDK_SPOOL_TO_PDF in order to display spool as PDF.
    Just transfer spool number and format to default inbound start up plug.
    Cheers,
    Sascha

  • Open project document in separate window.

    Hellow!
    I use solutiom manager to support project documentation.
    When I open document for editing it is opened in the same window (right side). And if doc type is word, it is hard to work because only part of window is used for text.
    If I attach document in customizing tab it is opened for edeting in separate window! It is very comfortable.
    Could I make solution manger open docs in separate windows from project docs tab?
    Andrey Garshin.

    Hi,
    You can do this by changing the user settings
    by go to solar02-> utilities-> user settings -> In the dialog box that pops up, go to the section 'General Settings' and please check the following two boxes, @Separate Document Display window,@ Separate Document Maintenance window
    plese check
    Thanks,
    Jansi

  • Iview not shown in separate window using quicklink

    Hello,
    I created a new SAP BSP IView ans set the value of parameter 'Launch in a New Window' to 'Display in Separate Window'.
    I also put a value in parameter 'Quick Link'  : myquicklink
    When i call my iview directly (https://www.myserver.com/irj/portal/myquicklink) the iview is shown in the portal frame instead of a new window..
    When i select the iview in the portal menu, the iview is shown in a separate window.
    Is it standard behaviour that the iview is not shown in a separate window using the quicklink?
    Thanx,
    Joris
    Edited by: Joris Mermans on Oct 15, 2010 1:16 PM

    Hi Joris,
    the 'open in new window' is a relative setting to the portal framework,
    It is normal that you have a new window popping up once logged in
    and not when calling directly.
    Grtz,
    Koen

  • Problem displaying PDF file in new window.

    Using NetBeans 6.5, Internet Explorer 7.
    I am using the code example from BalusC at the site:
    http://balusc.blogspot.com/2006/05/pdf-handling.html
    I am having no problem reading and displaying the PDF file, but it displays it in the same window,
    not a new window and it overwrites the current page, so I can't use the back arrow to fetch the page that is overwritten.
    I am using a commandLink to fetch the file.
    Does anyone know why I am not getting a new window or tab for the display?
    The jsp portion for the link is:
    <h:commandLink action="#{MainPage.linkAction3_action}" id="linkAction3"
              style="color: rgb(0, 0, 0); font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; left: 280px; top: 0px; position: absolute"
              target="_blank" value="Insurance Document"/>The "MainPage.linkAction_action" method just makes a call to the display function:
        public String linkAction3_action() {
            sb1.setMessage("");
            dsb.setFilePath("C:/");
            dsb.setFileName("Insurance_Summary.pdf");
            dsb.downloadPDF();
            return null;
        }And the downloadPDF() method is basically a cut and paste from the BalusC site;
        public void downloadPDF()
            // Reference:   http://balusc.blogspot.com/2006/05/pdf-handling.html
            // Prepare.
            FacesContext facesContext = FacesContext.getCurrentInstance();
            ExternalContext externalContext = facesContext.getExternalContext();
            HttpServletResponse response = (HttpServletResponse) externalContext.getResponse();
            File file = new File(getFilePath(), getFileName());
            BufferedInputStream input = null;
            BufferedOutputStream output = null;
            try {
                // Open file.
                input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
                // Init servlet response.
                response.reset();
                response.setContentType("application/pdf");
                response.setContentLength( (int)file.length());
                response.setHeader("Content-disposition", "inline; filename=\"" + fileName + "\"");
                output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
                // Write file contents to response.
                byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
                int length;
                while ((length = input.read(buffer)) > 0) {
                    output.write(buffer, 0, length);
                // Finalize task.
                output.flush();
            catch( Exception e )
                System.out.println( "Error displaying file.");
            finally {
                // Gently close streams.
                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 the logs:
            // java.lang.IllegalStateException: Cannot forward after response has been committed.
            facesContext.responseComplete();
        }

    1) window.open will open a new window and call a servlet.
    window.open ("http://path_to_yourservlet/PDFServlet", "newWindowName");
    if you ant to pass some values from your web page to the servlet you can pass as
    window.open ("http://path_to_yourservlet/PDFServlet?param1=value1&param2=value2", "newWindowName");
    2) The servlet will fetch and display the pdf file.
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class PDFServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet
         private final static int DEFAULT_BUFFER_SIZE = 1000;
         public PDFServlet()
              super();
         public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              String fileName = "Insurance_Summary.pdf";
              File file = new File("C:/"+fileName+"");
              response.setContentType("application/pdf");
         OutputStream output = response.getOutputStream();
         BufferedInputStream input = null;
         //BufferedOutputStream output = null;
         try {
         // Open file.
         input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
         response.setContentLength( (int)file.length());
         response.setHeader("Content-disposition", "inline; filename=\"" + fileName + "\"");
         output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
         // Write file contents to response.
         byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
         int length;
         while ((length = input.read(buffer)) > 0) {
         output.write(buffer, 0, length);
         output.flush();
         catch( Exception e )
         System.out.println( "Error displaying file.");
         finally {
         input.close();
    Regards,
    Milind Dhar

  • Open in a separate window

    I use Adobe Prof. to make my PDF
    I want my pdf to open in a separate window on my website.
    I found I should follow these steps-below- however it doesn't seem to work
    Edit> preferences> general> internet> uncheck display pdf in brower.
    When I go to open is show url doesn't exist.
    Please advise.
    Thanks in advance.

    Sandy,
    This is not something controlled by Acrobat. If you are posting the pdf
    through html, then you need to write code the will open a new window.
    Mike

Maybe you are looking for

  • Need help on this project

    The contestants will demo their application/web site on a machine with 128 Meg RAM only. You will build an application/web site that helps Hollywood movie fans do research on the data available at the Internet Movie Database. Two kinds of users can a

  • Image Trimming CS3?

    I'm using InDesign CS3. I need to (over the internet) submit up to 22 spreads for a school yearbook. This needs to be submitted on a school internet connection (which means that we have horrible upload speeds). Last year, we had software from our pub

  • Premier Elements 10

    I have Photo Elements and Premier Elements 10 bundle. which I was using on Windows 7 but now I have a Mac computer. I have uninstalled Elements from window 7 and deactivated when i uninstalled.  I have installed Photo Elements on to my Mac ok but Pre

  • How to get select statment in debug mode

    hi all i make debug in forms 10g and in debug mode and in a specified point , i want to see tha last select statment in debuger thanks

  • Delete released and booked cost collector

    Hey guys, We want to start with SAP RE-FX service charge settlement next year. Therefor I'm testing some scenarios at the moment. Now I'm facing the following problem: I created a service charge settlement last year with old data (settlement units an