Display info in new window

I have detail information about some article,now I need to print this details, but before user wants to open new window with the same content and after that print everything...
Help me please!

Thank, you !
But I used this approach(I am not sure that it's correct:))
<script language="javascript">
function windowOpen(id){
var newwindow;
newwindow=window.open("ShowDetail.jsp?PPID="+id,"Show",'toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=500,height=400');
          newwindow.focus();
          newwindow.print();
</script>
<a href="javascript:windowOpen(<%=id%>)">Click here for more details</a>

Similar Messages

  • Display Image in New Window

    I'm using a tabular form. My image is displaying correctly. I just want it to display in a new window. The code I'm using to display the image is listed below:
    CASE WHEN nvl(dbms_lob.getlength(p.photo_name),0) = 0
    THEN 'No Photo Available'
    ELSE '<a href="#OWNER#.download_image?p_id='
             || ceah_image.lookup_picture_url(v('P112_PERSON_ID'))
    || ' height="'
    || 200
    || '" width="'
    || 200
    || '">View Photo<a/>'
    Thanks, Elizabeth

    Hello,
    In your a href you can specify target="_blank". That should open a new window for you.
    Hope that helps.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/
    REWARDS: Please remember to mark helpful or correct posts on the forum

  • Display values on new window from backing bean HashMap

    Hi,
    I need to open a new window when user clicks on some link from the current page. New window will display few values which are set once the link is clicked.
    I have created a bounded task flow with a jspx page added into the task flow. This jspx page contains a jsff page. While clicking on the link, I have called backing bean method which will create and set a HashMap containing key-value set which is used to display on new window.
    New window is created by javascript. And I am not able to get HashMap values which are set by bakingbean method.
    Is there anyway to solve this?
    Code:-
    Backing Bean method to open new window
    private void launchWindow () {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    // Taskflow parameters map
    Map <String, Object> params = new HashMap <String, Object> ();
    // Get taskflow URL to be opened in new window.
    String taskflowURL = ControllerContext.getInstance ().getTaskFlowURL (false, new TaskFlowId (
    AppsConstants.DESCRIPTION_TASKFLOW_DOCUMENT,
    AppsConstants.DESCRIPTION_TASKFLOW_ID), params);
    taskflowURL = taskflowURL.replaceAll("%2F", "/");
    ExtendedRenderKitService erks = Service.getRenderKitService (FacesContext.getCurrentInstance (), ExtendedRenderKitService.class);
    String jsScriptWindowOpne = "window.open(\"" + taskflowURL + "\", \"" + resourceBundleMapper.getString (AppsConstants.LBL_NOTI_DESC_NEW_WINDOW_TITLE) + "\");";
    try {
    erks.addScript (FacesContext.getCurrentInstance(), jsScriptWindowOpne);
    } catch (Exception e) {
    logger.log (Level.SEVERE, "Exception while adding javascript to open a new window in ExtendedRenderKitService object. " + e);
    New window jsff page
    <af:outputText value="#{backingBeanScope.notification.notificationDescriptionMap}" />
    Output
    I want to get values from this HashMap, to test the size/content of this Map, I have printed this Map.

    Hi,
    Yes its possible..
    A simple google search gave me this Result.
    Betw:
    you can also open taskflow as popup in your page(inline popup) instead of opening the taskflow in other browser window.
    53-taskflow-in-popup-169196.pdf
    Regards,
    Santosh.
    Edited by: Santosh Vaza on May 11, 2011 2:11 PM

  • How to merge multiple PDFs and display in a new window

    Hi,
    I'm trying to merge multiple PDFs into one PDF and display the output in a new window using PeopleCode. I have a button on a page, which when clicked should open a new window with the merged PDFs. I am able to succussfully merge the PDFs using the PDFmerger class (mergePDFs) but unable to display the result in a new window.
    Please help.

    Thanks.
    I also found this piece of code very helpful.
    Local PSXP_RPTDEFNMANAGER:Utility &oUtil;
    Local boolean &bRtn;
    /* send the output to client */
    /* &sFileName = the file path /file_name.extension */
    &oUtil = create PSXP_RPTDEFNMANAGER:Utility();
    &bRtn = &oUtil.zipAndViewAttachment(&sFileName);
    Edited by: user8260115 on Sep 9, 2009 4:57 PM

  • Trying to get an .swf link to display in a new window

    Hi everyone,
    I recently received some links to Captivate videos for a
    webhelp project I'm working on (RH Office X5.02). I can link from a
    topic to the .aspx wrapper file and get the wrapper with the
    associated flash files to display in a separate window without any
    problem.
    However, when I try do the same thing (get the link to open
    in a new window) by linking directly to one of the .swf files
    associated with the wrapper, RoboHelp tells me I can't do it. The
    Flash file displays within the content pane, the text appears much
    smaller (but not illegible), and since it didn't resize to fit
    within the pane, the information on the right of the video appears
    "cut off". Fortunately, most of the information appears to be on
    the left side. I would REALLY like to get this Flash file to open
    in a separate window.
    Any ideas on this one? My Captivate expert suggested that I
    could try linking to the .htm file that's associated with the .swf,
    and I'm going to try that next, if no one else has any ideas.
    Thanks,
    Jim

    Hi all
    @Jim - You might want to do this by using a Redirect page.
    Since the redirect is a HTML page, you could then open it in a new
    window as desired. Then the redirect handles opening the .SWF.
    @Cindi - Actually, inserting Captivate content in RoboHelp
    topics is quite simple. You just click the Captivate icon in your
    toolbar (or click Insert > Captivate) and point at the .SWF
    Captivate created. RoboHelp will then create the appropriate code
    to insert the Captivate into your existing page.
    To both/all - Captivate normally creates a few different
    files when it creates output. Another approach is to simply import
    the Captivate created HTML page designed to present the Captivate
    content. Then link to it as you would any other HTML page in
    RoboHelp.
    The links below may help. Although they were created when
    RoboHelp X5 and Captivate 2 were dominant, most of what they cover
    still applies.
    Link
    one
    Link
    two
    Cheers... Rick

  • MediaView doesn't display video; opens new window instead

    Hello,
    I'm having some trouble working with the MediaView/MediaPlayer classes.
    Using Netbeans' composer, I've configured correctly (I think) a MediaView component so that it should load the MediaPlayer, which loads a local Media file. However, when executed, the MediaView area just remains blank, while a new "ActiveMovie" window opens, rendering the video.
    I've done some searching over here and on google but I really haven't found any solution. I know the ActiveMovie window is probably just DirectShow opening the video; why, though, does this happen, if I explicitly designed the application so that the MediaView component alone displayed the video?
    It's as if, by instanciating a Media component, the code was issuing a Open File system call and Windows - not JVM - was doing the rest.
    Any help is very welcome.
    Thanks,
    Leo

    aidreamer wrote:
    I don't know how to fix it, assuming that is even possible without rewriting DirectShow or the JavaFX platform, but I can tell you about my own experiences with this issue.
    I was trying to figure out a way to run WebM video files in JavaFX and installed a Direct Show filter from Xiph to enable it. It sort of worked, except that it caused the same issue you just described. I tried playing other video formats handled by Direct Show, and they ran normally, so I'm assuming that it is an issue specific to some of the filters.Thank you for your reply, I think now I've finally understood what the problem is!
    Indeed, I've ran into some cases where one tried to use recent HD Youtube videos (VP8-encoded, which is what WebM uses: see http://en.wikipedia.org/wiki/WebM#Services) and have also failed.
    Apparently, JavaFX only really supports VP6 videos. Probably that's the reason the SimpleMediaPlayer sample (http://javafx.com/samples/SimpleVideoPlayer/) uses a VP6 video, and not, say, an WMV or whatever other encode.
    The main problem is the strange deceitfulness of all documentation related to video playback on JavaFX: while most articles and docs state rather ambiguously that "any video supported by the system will run on the JavaFX platform", only one document explicitly states that that's not quite the case:
    Video Codecs
    Cross-Platform: On2 VP6
    Windows XP and Vista: All the codecs supported by Windows Media Player
    Mac OS X 10.4 and 10.5: All the codecs supported by Mac through Core Video
    Ubuntu 8.04 and OpenSolaris 2009.06: All the codecs supported by GStreamer.http://download.oracle.com/javafx/1.2/tutorials/media/format.html#audio
    Well, that clears things up! Natively, JavaFX only really supports On2 VP6 encoding, whilst any other encoding will depend solely on the operating system and 3rd party software installed. So that's the reason why, when trying to open any other video which isn't VP6-encoded, JavaFX calls the 3rd party codec, which opens an ActiveMovie DirectShow window, failing to display the player in the appropriate MediaView container. Please do correct me if I'm wrong; I've only been playing with JavaFX for a day or so!
    The deceitfulness is that JavaFX is fanfared as a "ultimate, play-all media API", which lead me to thinking that it would easily handle the most popular video encoders. This assumption is enforced if we remember that the old Java Media Framework (JMF) API did indeed suport MPEG-1.
    Once again, thanks!

  • A pdf file will not display in a new window in FF12 (and many previous revisions)

    There appear to be several different ways to display a pdf file from a browser. One is just opening another tab and displaying the file. This way works. Another option is a 'download' window will open up downloading the pdf file which can then be displayed successfully. A third way is that another external window opens with some application verbiage displayed which is then overwritten by the actual pdf file. This method does not work for me. I have to go to Chrome or, pardon the expression, IE, to get the pdf files displayed in this manner.
    I have a jpg of the opened window with no pdf data displayed but I didn't know how to include it.
    Thank you.

    Can you try in safe mode please?
    http://kb.mozillazine.org/Firefox_Safe_Mode

  • How do I display search results in a new window?

    Our current search feature (http://mainedreamvacation.businesscatalyst.com/business-search) displays the search results in the same page. When someone clicks to see the details page, the goes "back" the browser displays an alert asking the user if they want to re-submit the form.
    Is there a way for the search results to display in a new window? My hope is that by loading results into a new window, a user could click to see the detail, then return without the alert message.
    I'm open to simply suppressing the alert message, but I don't think that's possible.
    I should point out that this is NOT a site search. Also, I have tried  {module_webappsresults,,_blank} without success.
    Thanks!

    Hi Tim,
    The approach would be similar to customizing this for normal site search. 
    You'll need to locate the page where you inserted the web app search access the html and locate the pageID in the form action.  Use the same method found in the site search to apply the specific page.
    - http://helpx.adobe.com/business-catalyst/partner/add-search-form.html> Point to the results page
    **Ensure you please the {module_webappsresults} on the custom page to have the content display as well. 
    Kind regards,
    -Sidney

  • Links will not display in new window

    I have just install the new version of Thunderbird 31.4.0 and now find when I click on a Link it does not display in a new window. To display the link I have to click on the Explorer tab near the start button. I would like the link to open immediately as it did previously. Thank you very much

    This is not actually a Thunderbird question, but a browser issue, so you should really be asking this in the Firefox forum (assuming you use firefox) as it is the browser not taking the focus.
    However, here is some help if you use Firefox.
    If you use Firefox:
    type : about:config into the Firefox address bar and hit enter. you will get a warning to be careful :)
    In the Search bar, type : diverted look for this line: "browser.tabs.loadDivertedInBackground"
    By default, the value of this entry should be false. This would give you focus on the browser after opening the link.
    So check to see if you may have this set as 'True'.
    To change it, double click on that line and it will toggle the value from 'True to 'False'.
    Restart Firefox .

  • Open a new window (new display) in Java ME - how?

    I have now done a log in screen where the user has to type a server and a port to connect to. When the user press the Connect button I want a new "window" with a TextBox to be displayed.
    The new "window" is actually a new class which contains its own startApp, pauseApp and all those overridden methods. I can make the window appear?
    I Java SE, the new window just has to extend from JFrame and then call the construktor with a reference to the new window, for instance:
    new_window_reference.setVisible(true);
    Is there any way to make an application like that in Java ME?

    Roxxor wrote:
    The new "window" is actually a new class which contains its own startApp, pauseApp and all those overridden methods. I can make the window appear?That would be another MIDlet, you can't use that.
    I Java SE, the new window just has to extend from JFrame and then call the construktor with a reference to the new window, for instance:
    new_window_reference.setVisible(true);
    Is there any way to make an application like that in Java ME?Create another Form and display it using the setCurrent() method of Display.

  • Display a PDF in a new window - Urgent***

    Hi experts,
    Im having a hyperlink in my iview, once the user clicks on the link, a PDF document has to be displayed in a new window.
    Im having my PDF in my DMS Server.
    can u guys help me, which function module i have to use to develop a application  so that PDF will be opened in a new window.
    Thanks in advance.
    James....

    Hi Vasanth,
    First convert data to byte[]. Then use the following code to open PDF
    try{
    IWDResource wr = WDResourceFactory.createCachedResource(byte[] data , "PDF Report", WDWebResourceType.PDF);
    IWDWindow w = wdComponentAPI.getWindowManager().createNonModalExternalWindow(wr.getUrl(0), "PDF Report");
    w.show();
    try (Exception e){
    wdComponentAPI.getMessageManager().reportException(e.getMessage(), false);
    regards,
    Siva.

  • Opening a download in a new window

    We have a list of files that are relevant to the user. We display this list of files to the user in a table so they can view the ones they want.
    I have written a servlet that reads the file information from a cookie, and delivers the file to the client.
    We are using a goButton to launch the servlet because we want the document to be display in a new window.
    Our problem comes with the code that writes the cookie. I have replaced the table's row selected listener with a custom method that first, sets the bindings with the selected row, and then uses the info in the bindings to write a cookie. This technique is working well except when the first document displayed is the one selected. When the table is rendered, the row selection event isn't sent, even though the first row is selected by default.
    Can anyone offer advice on techniques to try?
    I did attempt to use an el that referenced the bindings in the target of the goButton, and pass the document to display as a parameter. I abandoned that attempt because in the servlet, the parameter was not able to be decrypted after decoding it. The padding had gotten corrupted.
    I have also considered using a commandButton to write the cookie, and then javascript to call the servlet in a new window, but I have never used javascript and would like to stick with a declarative approach if possible.
    Thank you

    John, thank you for the answer and sorry for the long delay, I was assigned a different priority. I'm back thinking about this now.
    We would like to encrypt the parameter because we are sending a document id to a download servlet. We don't want the user to spoof this servlet by putting in a random document id.
    Is it not normal to encrypt parameters? We are new to web development, but it seems that we would want to employ as much security as possible.
    Thanks again
    Dave

  • How to get New Window without Variable Entry screen from one Web Template?

    Hi Experts,
    I've a WebTemplate contains 2 Graphs. Each graph have one Zoom Button. My requirement is, When I click the Zoom button that corresponding Grpah should display in a New Window. I've finished all the above requirements.
    Since, I have One Mandatory field, I'm always getting the Variable Screen in a New Window while I clik the Zoom Button.
    I need to avoid this "Rerun" feature in New Window.
    Kindly suggest me how to achieve this..
    Full points will be given.
    Thanks
    Jay Jay

    Hi Thanks.
    Even I'm also trying for the same scenario only.
    Actually I have 2 Web Templates.
    In First Template I have 2 Charts and 2 Zoom buttons for each.
    While I running the 1 Template, i give an Value in the  Variable screen of First Web Template.
    If I click a Zoom button of 1st Chart, It should open a New window with the Second Web Template. And Second Web Template should automatically take a First Template's Variable screen Values.
    (Since, U have an Mandatory field in Second Template u were not faced this requirment.)
    Even I tried with "TRANSFER_STATE". It is not taking the First Variable Screen's input values.
    Kindly help me in this issue.
    Thanks in advance.

  • How to achieve New Window requirement from One Web Template?

    Hi Experts,
    I've a WebTemplate contains 2 Graphs. Each graph have one Zoom Button. My requirement is, When I click the Zoom button that corresponding Grpah should display in a New Window. I've finished all the above requirements.
    Since, I have One Mandatory field, I'm always getting the Variable Screen in a New Window while I clik the Zoom Button.
    I need to avoid this "Rerun" feature in New Window.
    Kindly suggest me how to achieve this..
    Full points will be given.
    Thanks
    Jay Jay

    Hi Thanks.
    Even I'm also trying for the same scenario only.
    Actually I have 2 Web Templates.
    In First Template I have 2 Charts and 2 Zoom buttons for each.
    While I running the 1 Template, i give an Value in the  Variable screen of First Web Template.
    If I click a Zoom button of 1st Chart, It should open a New window with the Second Web Template. And Second Web Template should automatically take a First Template's Variable screen Values.
    (Since, U have an Mandatory field in Second Template u were not faced this requirment.)
    Even I tried with "TRANSFER_STATE". It is not taking the First Variable Screen's input values.
    Kindly help me in this issue.
    Thanks in advance.

  • Open a report in new window ADF 11g

    I am trying to open a report in a new window. The problem is that I am having a link in a .jsff file when I click this link I go to another view activity using dialog: outcome and in the constructor of the backing for the target page I write the following code:
    ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
    HttpServletRequest request = (HttpServletRequest) ectx.getRequest();
    String temp = "http://localhost:7101/cms/report";
    try {
    ectx.redirect(temp);
    } catch (IOException e) {
    This code was working fine with ADF 10g but in 11g this code throws for me ResponseAlreadyCommit exception. I think that this is coming because .jsff is using PPR and this is not a full request but it is XMLRequest.
    SO, I tried to use the URL activity and make an outcome to this URL view activity BUT although the report appears but it is not displayed in a new window
    I can't use a javascript because to open a new window because some processing is done in the backing bean for the report parameters send from the page.
    Please any suggestion for this
    Thanks in advance

    Hi,
    one option I would see is to create a task flow that uses a JSPX page. The input parameter for this page would pass in the URL to call. Then you configure the task flow to be called from a call activity in the bounded task flow with the page fragment. On the task flow call activity configure it to open in a separate window
    Frank

Maybe you are looking for

  • New bookmarks not being saved

    Beginning today my new bookmarks are not being saved. I read several KB articles and have tried: - making sure the bookmarks file is not read-only - reset browser.places in about:config - renamed the places.sqlite and places.sqlite-journal, and resta

  • User Profile Error

    Hi We are following Classsic Scenario. When the user is creating the shopping cart user is getting the error "Enter the country for the partner ID" When we checked the User Profile we got an info to repair the shopping cart at level 2 with transactio

  • Radius server (not elektron!) interacting with mysql DB and LDAP

    I am installing a service that requires a radius server. I have tried to build and install freeradius from source, as well as used the installer packages that are out there. None of them include support for mysql. As soon as you turn on sql in the ra

  • Date mapping 2 dates to 0calquarter

    Hello BI experts, BI 7.0, I mapped  Date1 & Date 2 to 0calquarter based on a condition at field level. Code: IF DATE1< 01jan2010       RESULT = DATE1.     ElSEIF  DATE2>= '20100101'.       RESULT = DATE2.     ENDIF. But when i give DATE1 = 13.03.2010

  • Business Process Repository not displaying data for 4.7 systems

    Hi All, Having a bit of an issue finding any 4.7x200 related stuff on the Business Process Repository on solar_project_admin, I checked an this should be related to the ST-ICO patch but im in ST-ICO 150-700 patch 17... Any ideas? System is SolMan 7.0