Open iview in a popup

I created one jsp page. In this one  user can enter a search term and click on the submit button, it will search in the data base and display the matching terms from the database. This will take care of one jsp page and some java programs.
Now my problem is when the user click on the submit button, I need to display the result in a popup. I tried some thing but it is not working. is there any way somebody can help me.
at last I did this way.
    <hbj:button id="search"
                      text="Search"
                      onClick="onSearchButtonClicked"
                      onClientClick="window.open()"
Thsi will give me the result on the same screen and will open a new blank screen. I need to display the result in the new screen.
I was trying to give
onClientClick="window.open(result.jsp)" but it gives me error. result.jsp is my jsp  page
Thanks in advance

There is probably more than one way to get that accomplished but here is a simple one.
public void onSearchButtonClicked(Event event) {
          myForm.setAction("");
          myForm.addRawText("<script>");
          myForm.addRawText("window.open('irj/servlet/prt/portal/prtroot/project.component','newwindow','resizable=yes,scrollbars=yes,toolbar=yes,location=yes,status=yes,directories=yes,menubar=yes,copyhistory=yes,width=800,height=600')");
          myForm.addRawText("</script>"); 
Stephen

Similar Messages

  • How to open iview in new Window

    Hi frnds,
    Can u help me plz, am trying to open iview in new window.
    i'v try to changed ivew property @ Launch in New Window = Display in Saparate Window but still @ my portal iview is displaying in Content Area only i want display in new window.
    And i tryed @ Sys.admin -
    > Sys.Config-->ServiceConfig-->Applicaitons ->com.sap.portal.epcf.loader
    Change workprotect.mode.default to 2
    still its getting in sam content are plz can u help out ASAP..
    ThanQ Vita

    Hi Richard,
    The property Launch in New Window = Display in Saparate Window should work. Try to assign the iView directly to the role and check. It might also be some cache problem. Try to navigate to System Administration>System Configuration>Navigation Cache.
    Clear them and check once again. Hope it might solve your problem.
    Regards
    Basha

  • Open iView in new window in fullscreen

    Hi,
    I would like to open an (URL) iView in new window and maximize it size to expand on all the screen. Something like: width=100% height=100%.
    Unfortunatly, the window feature properties does not allow this, it only allows passing width and height in pixels.
    Does anyone has a solution for this issue? How to open iView in a new window in full-screen.
    Thanks in advance,
    Aviad

    Hi Aviad,
    You could set "fullscreen=yes" (without quotes) for the property called "Window Features" (technical name: "com.sapportals.portal.navigation.WinFeatures") on the navigation element in question (iView or, if existent, surrounding page). Take care, this opens the window without frame and toolbar (closable by ALT-F4).
    To get a 100% screen (with toolbar, frame etc), you have to calculate the clients resolution before, using JS for example. So you would need to build a workaround, for example an iView with no output but opening a new window with a certain NavURL as target.
    Hope it helps
    Detlev

  • Firefox won't allow some sites to open lightboxes or login popups.

    OS: Windows 8.1 (64 bit) x64 AMD E-300 Processor
    Firefox 25.0.1
    I just got a new laptop and have discovered this issue: When I try to click links on some sites to open a lightbox or popup (usually for login boxes or photo slideshows) nothing happens. Absolutely nothing, no error message, no loading screen, no "busy" or "working" animations, no redirect. I've tried the same pages in the latest versions of Internet Explorer and Chrome and they work correctly. These sites work on my old laptop with the same version of Firefox and Vista SP2 32 bit and my work computer with Windows 7 64 bit.
    I've tried disabling Add-Ons one by one and as a group, didn't make a difference. I've cleared the cache and cookies. I've turned by firewall and antivirus/antispyware/antimalware programs on and off.
    Sites with a known issue: "View larger images" on Zillow.com, Login on Moviepilot.com, Login on doubletakedeals.com. I can't remember any others at the moment.

    If you use extensions (Firefox/Tools > Add-ons > Extensions) that can block content (e.g. Adblock Plus, NoScript, Flash Block, Ghostery) then make sure that such extensions aren't blocking content.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can inspect and manage the permissions for all domains on the <b>about:permissions</b> page or for the domain in the currently selected tab by clicking the "Site Identity Button" (globe/padlock) on the location bar and "More Information" to open "Page Info" and go to the Permissions tab.
    *https://support.mozilla.org/kb/how-do-i-manage-website-permissions
    *Tools > Page Info > Permissions
    You can delete the permissions.sqlite file to reset all permissions.
    Boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that helps.

  • Open iview url in WDA main view (below some long text)

    Hi Experts,
    My WDA first page is divided into 2 parts top & bottom.
    The top will have some text and bottom will have a display areas to display the portal iview. (Display means open iview directly on opening the first page of the application without any action)
    Eg: when you open the WDA in IE it will display some text in top & google webiste opened below that long text.
    I tried putting the google url in iframe source in main view but it didnt displayed it. only a blank area came displayed which was of iframe size.
    Hope i explained my requirement.
    Regards,
    Nik

    Hi Nikhil,
    Your requirement is clear, but displaying google page where did you write the code.
    Write your code in the View or component controller->WDINIT method, then first this method will display without any action.
    In the Layout you can divide into two parts one is for text another one is for the google site display.
    Let me know if you are not able to fix the issue still...send me the code I will let you know where is an issue.
    Regards,
    Naresh.

  • I have an iMac on OSX 10.7.5 with Safari 6.1.6. Opening Safari produces a popup that cannot be removed, thus disabling everything else. How can I eliminate this?

    I have an iMac on OSX 10.7.5 with Safari 6.1.6. Opening Safari produces a popup that cannot be removed, thus disabling everything else. How can I eliminate this?

    Launch Safari with the Shift key held down. If that doesn't work, temporarily disconnect the computer from the Internet.
    (124400)

  • Hi:  When I open my iPhoto the popup shows up and I don't know how to correct it.  Here is the popup "The current screen resolution is not optimal for iPhoto?" Can you help

    When I open my iPhoto a popup shows up and I don't know how to correct it the popup:
    "The current screen resoulation is not optimal for iPhotp"?
    Can you help?

    Go to the System/Accesability preference pane and enable the Zoom capability either with keystrokes or Magic Mouse:
    See if that will work for you.
    OT

  • UWL iView in Sharepoint: Popup shows TLN

    We are displaying the Unviversal Worklist (UWL) iView in Sharepoint. Whenever an item therein is clicked, the resulting Popup displays the DTN (Detailed Navigation) and TLN (Top-level Navigation) in the Popup and displays the content in the Content Area.
    My assumption is that this is happening because the UWL item Popup window has no Navigation Context.
    Does anyone have any ideas on how we can make the item Popup like it does in SAP Enterprise Portal i.e. No TLN or DTN, but just the content in the Popup window?
    Thanks.

    Simon, what we found is that when we add the Dynamic Property it doesn't append the URL with a URL parameter, but just appends a value pair to the "DynamicProperty" URL parameter. So the Dynamic Property of "NavMode=3" didn't work when I tried it.
    I looked at the properties of the iView and there's nothing about Popups of items displaying the TLN/DTN or not.
    Again, I don't think its a matter of setting a property to toggle the Nav display. It works just fine straight out of SAP Enterprise Portal. The problem exists only when the UWL iView is housed in Sharepoint. So, again, I feel its more related to the Navigation Context being unknown, though I am open to all suggestions.
    Thanks for brainstorming this with me.
    Edited by: Shibli Zaman on Jan 7, 2010 11:13 PM

  • Transaction iView missing a popup for express mails

    Hi SDN
    If I make an express mail in R3, then the receiver will get a popup whenever an action is done in R3.
    But if the receiver is working in a transaction iView the popup doesn't appear.
    Does anyone know if there is a way to solve this??
    Thanks in advance
    Peter
    Message was edited by:
            Peter

    It may be a network issue.
    Suggestions:
    1. Analyse generated SAGUI shortcut file.
    Make your transaction iview "Technique to Start SAP GUI for Windows"=SAPGUI Shortcat.
    On the client computer in Win explorer, set "Confirm open after download" for file extension .SAP
    Preview of the iview now will generate tx.sap file, which you can analyze to see if connection info is OK.
    2. Activate trace in SAPGUI for windows and look at the trace.
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a6473505211d189550000e829fbbd/frameset.htm
    Regards,
    Slava

  • Open iView in new WINDOW for CATW

    HI All,
    We are on Netweaver2004s and the browser used is either Internet Explorer 7 (Microsoft Vista) or Mozilla Firefox.
    Now what I need help on is that I have a link on my page that says "Report Your Time", this link calls the Internet Service CATW via the  ITS from my R/3 and opens the TIMESHEET (which is an iView) to be filled in by the user <b>in a new window</b>.
    On this TIMESHEET I have a link called as "EXIT" , now after the timesheet is filled and saved, the user should use this "EXIT" link to leave the window. The code behind "EXIT" is so written by SAP that it kills the user's session. But not always and all user's use this "EXIT" link, they generally close the window by browser's (X) close button. This causes the user to get locked in the backend.
    So far I have been able to trap the browser's (X) close button and kill the session by using "setOKCode('/nex')". This works fine in I.E 6 (which has no tabs) and if the user <b>closes</b> Mozilla Firefox from the top (X) close button of the browser.
    BUT, in I.E 7 and mozilla firefox, when the user clicks on "<u>Report Your Time</u>" link on my page, a new tab opens and the TIMESHEET is displayed on this tab within the same browser window, so after filling and saving the timesheet when the user closes the (TIMESHEET) <b>tab</b>, the session does not get killed and the user gets locked in the backend. Here, <b>if</b> the user had closed the entire browser window by using the  the top (X) close button of the browser, instead of just closing the <b>tab</b> containing the TIMESHEET, then his session would have been killed by my code.
    This is the code that identifies if the user has clicked on  top (X) close button of the browser. <b>But this code does not identify if a browser's tab is closed.</b>
    <BODY onbeforeunload="HandleOnClose()">
    <script language="javascript">
    <!--
    function HandleOnClose() {
       if (event.clientY < 0) {
          event.returnValue = 'Are you sure you want to leave the page?';
    In the above I check clientY property of the event object, which is used to set or retrieve the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
    Is there a way to capture the closing of a browser's tab. A way by which I can trap the event raised when the browser window's tab is closed.
    This has to be done via "Java Script" since the code will be placed in the HTML template in SE80.
    Kindly help with your expert suggestions
    Regards
    Saurabh

    Hi Aviad,
    You could set "fullscreen=yes" (without quotes) for the property called "Window Features" (technical name: "com.sapportals.portal.navigation.WinFeatures") on the navigation element in question (iView or, if existent, surrounding page). Take care, this opens the window without frame and toolbar (closable by ALT-F4).
    To get a 100% screen (with toolbar, frame etc), you have to calculate the clients resolution before, using JS for example. So you would need to build a workaround, for example an iView with no output but opening a new window with a certain NavURL as target.
    Hope it helps
    Detlev

  • Open document in a popup

    hello,
    I want that a document (selected from a tableSelectOne) to be opened in a popup,
    so i wrote in my jspx :
    <af:commandButton text="Ver"
    binding="#{backing_archivos.verArchivosBtn}"
    id="verArchivosBtn"
    useWindow="true" windowHeight="600"
    windowWidth="800"
    action="#{backing_archivos.verArchivosBtn_action}"
    immediate="false"
    onclick="#{backing_archivos.rutaVer}"
    partialSubmit="false"
    />
    And in my backing bean:
    public String getRutaArchivo(){
    ResourceBundle rb=ResourceBundle.getBundle("../UIResources");
    String fileUploadLoc=null;
    try{
    fileUploadLoc = rb.getString("General.localizacionxDefecto");
    }catch(MissingResourceException e){        }
    return fileUploadLoc;
    //In the variable rutaVer is the file localization's, title and parameters of the function window.open i.e.window.open(“URLfile”,”title”,”left=xx,top=xx”)
    public String verArchivosBtn_action() {
    Key rowKey = (Key)table1.getRowKey();
    id=rowKey.getAttribute(1).toString();
    nombre=rowKey.getAttribute(0).toString();
    String rutaArchivo= "window.open("+"\"file://"+getRutaArchivo() + "Dir_" + id + "/" + nombre + "\"" + "," + "\"prueba\",\"left=500,top=500\")";
    setRutaVer(rutaArchivo);
    return null;
    The problem is: When i do click on the button the variable “rutaVer” the cycle show:
    1.     the variable is a blank String
    2.     after the variable is: window.open(“URLfile”,”title”,”left=xx,top=xx”)
    And in the popup doesn´t show anything.
    that I can do????????????
    Thank.

    Hi Ric,
    I always try to point people to the developers guide because , 1. Many JDev beginners don't know of it's existence and 2. It often (as in this specific case) has more info than the howto's and collateral notes.
    http://download.oracle.com/docs/pdf/B25947_01.pdf
    cheers,
    Brenden

  • Open iviews in new window from detailed navigation context menu function

    hello,
    when we click in the detail navigation menu and in the context menu (because many of ours users are used to right click to open a link in a new window on the internet) on the functionnality "open in new window", the start page is always display instead of the corresponding iview ...
    could you tell me if there is a configuration into the portal to :
    1- suppress the function "open in new window" from the context menu in the detailed navigation !
    2- make the iview displayed into the new window really the iview desired !
    best regards,
    Olivier.

    Hi Olivier,
    The frist part is very precise. Not possible. Period. The reason is that the links are calling JS and not directly calling a http target.
    About the second part: Within the Light Framework, you create a Light Detailed Navigation. And in this case, the links are direct http links. So with that, you have what you want.
    For the Light Framework see http://help.sap.com/saphelp_nwce10/helpdata/en/43/0174a642406db7e10000000a422035/frameset.htm and around.
    Hope it helps
    Detlev

  • Preview iView / Open iView in new window not properly working

    Hello,
    I've got a question regarding previewing an iView (by pressing the "Preview" button in its properties) or opening an iView in a new Window by clicking on a button for instance. The problem is that when the window is opened, the iView cannot be displayed and a Portal Runtime exception is thrown, with the message "Cannot find iView" iView: N\A. This is very strange, since sometimes it works, when i test it on a different browser, but even on the same browser on which it works , sometimes it still fails, and displays "Cannot find iView". Does anybody have any clue what this problem can be? Basically it happens most of the time, but sometimes (randomly?) it works. I guess it may be a problem with caching, but i haven't resolved the reason yet. Thanks very much.

    Try playing around with the load settings. Specifically, try turning off client-side caching, your browser might be getting confused depending on the kind of iview you are previewing.
    A couple of questions:
    1. What kind of iview is it?
    2. Does it work if you stick it on a page and preview the page?

  • Open iView in new Window

    Hi
    I have added a new link in the xRPM screen from 'SPRO'. I want an iview to be opened in a new portal window on clicking this link. I have tried changing the property of view to ' Launch in a Separate Window' but it didnt work.
    Page ID in SPRO : pcd:portal_content/View/view1.
    Is there any way that i can open a new portal window on clicking this link.
    Regards
    Puneet

    look at this link
    iviews and pop up window

  • Open iView in New Window via Link

    Hi,
    I have created a link that opens an iView within a role:
    <b>http://server:port/irj/portal?NavigationTarget=....</b>
    Although, I have set the the iView parameter to <b>Open in Separate Window</b>, it is displayed within the portal content area. How can I achieve that the iView is opened in a separate window?
    Thanks.
    /Elvez

    Hi Elvez,
    So you want the user pressing the link, a new browser window opens with the portal, and from that, an additional window opens with the iView?! Hm, if it makes sense for you...
    No, EPCM calls of course don't work within an eMail. And the solution you have implemented is the one to go, whether implemented as KM doc or as an iView rendering the JS.
    Hope it helps
    Detlev

Maybe you are looking for