How to open new window in web dynpro

I want to open a new window with specific URL in web dynpro on a button's click event. waiting for your suggestions to do this.
thank you,

Create an action and put following lines in it and bind it to button's onAction event.
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow( "http://www.jawed.info", "My Personal Website");
window.show();

Similar Messages

  • How to open new window and generate oracle report from apex

    Hi,
    I had created an application that generates PDF files using Oracle Reports, following this Guide.
    http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
    And I followed 'Advanced Technique', so that users can't generate PDF file by changing URL and parameters. This is done for security reasons.
    But in this tutorial, when 'Go' button is pressed, the PDF file is displayed on the same window of apex application. If so, user might close the window by mistake. In order to avoid this, another window have to be opened.
    So, I put this code in the BRANCH - URL Target. (Note that this is not in Optional URL Redirect in the button property, but the branch which is called by the button.)
    javascript:popupURL('&REPORTS_URL.quotation&P2100_REP_JOB_ID.')
    But if the button is pressed, I get this error.
    ERR-1777: Page 2100 provided no page to branch to. Please report this error to your application administrator.
    Restart Application
    If I put the code 'javascritpt ....' in the Optional URL Redirect, another window opens successfully, but the Process to generate report job is not executed.
    Does anyone know how to open new window from the Branch in this case?

    G'day Shohei,
    Try putting your javascript into your plsql process using the htp.p(); procedure.
    For example, something along these lines should do it:
    BEGIN
    -- Your other process code goes here...
    htp.p('<script type="javascript/text">');
    htp.p('popupURL("&REPORTS_URL.quotation&P2100_REP_JOB_ID.")');
    htp.p('</script>');
    END;
    What happens is the javascript is browser based whereas your plsql process is server based and so if you put the javascript into your button item Optional URL Redirect it is executed prior to getting to the page plsql process and therefore it will never execute the process. When you have it in your branch which normally follows the processes, control has been handed to the server and the javascript cannot be executed and so your page throws the error "Page 2100 provided no page to branch to"... By "seeding" the plsql process with the embedded javascript in the htp.p() procedure you can achieve the desired result. You could also have it as a separate process also as long as it is sequenced correctly to follow your other process.
    HTH
    Cheers,
    Mike

  • How to open new window with required size when clicking on image in a table

    Hi,
    There is an image column in advanced table. i want to open new window with required parameters(size, toolbar, status bar,etc..) and with that transaction context.
    can any one help plzzzzzzzz?
    Thanks
    Raju

    You can also use OAF js function to open modal pop up:
    openWindow(self, '<url>','longTipWin', {width:900, height:400}, true); return false;
    --Mukul                                                                                                                                                                                                                                                                                                                                   

  • How to open new window webi report using open doc?

    Hi All,
    i have created URL using open doc in Bi 4.0 .please find the below my code.
    http://fcvws975/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=AeX5DoctKBhGv1AiV2oibxU&sIDType=CUID&sType=BI
    workspace&sRefresh=Y" title="" target="_blank" nav="doc"></a>
    When i click on this hyper link it is opening in the same page not in new window but i want to see report in new separate window.
    Can any one please help .
    Thank you,
    Regards,
    Venkat

    Hi,
    In BI4.1 SP03, there are couple openDocument fixes related to workspace.
    ADAPT01700442
    Description:
    When using an Opendocument URL to open a BI workspace, a timeout error occurs resulting in an HTTP 500 error
    message that reads: "Your session has expired".
    New Behavior:
    This problem is resolved.
    ADAPT01711393
    Description:
    In Internet Explorer 8, if you attempt to view an Analysis workspace embedded in the SAP NetWeaver Portal using
    OpenDocument, the workspace will fail to load.
    New Behavior:
    This problem is resolved.
    What version of BI4.0 do you have?
    If the fixes above are related to your openDocument workspace issue, I'd suggest you to test it on a BI4.1 SP03 sandbox.
    Hope this helps,
    Jin-Chong

  • How to open print dialog from web dynpro abap application

    Hi experts,
            I have a web dynpro application with several views and onone of the view there is a button that should open print dialog with printers list and all other options (standard print dialog we see in windows). I did reserach on SDN and came to now that this is a limitation of web dynpro abap. I did find some code also but unfortunately our current version of ABAP(7.0) do not support the code I found. I am not able to find any proper solution for this. Could someone please let me know how I can open a print dialog by clicking on a button in web dynpro abap? Any sample code or any information would be greatky appreciated.
    Thanks.
    Mithun

    Hi Mithun,
    Have you check this?
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/f8/872806981d4411b5ce51a00207ed31/content.htm
    and also go through..
    How to print in a web dynpro application
    Print button
    Cheers,
    Kris.

  • How to open new window when i press submit button/submit button.

    Hi,
    When i press a button, I need to capture an item value in current from and I need to pass that value to another form. The child form should open in the new form.
    For that Iam using the java script, But when i use the java script my page is not able to re-size, scroll bars address bar and menu bars are missing. if any one did this kind of requirment please share with me how to solve this issue.
    Thanks

    Re: How to show Popup window in OAF on click of a button
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • How to open new window 640x520

    When a user clicks on a button I want a 640 x 520 new window
    to open, preferably without the browser address bar. You can see
    the problem I'm having using target "blank" if you go to
    http://movingcircles.com/ and
    click on the first button (for Grand Entrance.) BTW if you go
    there, please let me know how the flash file is playing for you.
    Thanks.

    Hi David --
    I've used a DW extension called "Popup Link" with great
    success. You can
    specify not only the size of the pop-up, but you can also
    position it on the
    screen as well as determine which window attributes (address
    toolbar, status
    bar, etc.) are displayed.
    You can find it here:
    http://www.flevooware.nl/dreamweaver/extdetails.asp?extID=8
    HTH
    John
    "David Mainstreet" <[email protected]> wrote
    in message
    news:fca10s$399$[email protected]..
    > When a user clicks on a button I want a 640 x 520 new
    window to open,
    > preferably without the browser address bar. You can see
    the problem I'm
    > having
    > using target "blank" if you go to
    http://movingcircles.com/ and
    click on
    > the
    > first button (for Grand Entrance.) BTW if you go there,
    please let me
    > know how
    > the flash file is playing for you. Thanks.
    >

  • Opening External Window in Web Dynpro ABAP with URL disabled or Hidden

    Hi Experts, I have a requirement where-in we want to open the Web Dynpro ABAP application using tcode WDYID (by passing the application name  and startmode), but the URL of the newly opened explorer should be disabled or hidden. To achieve the same, I have created a component (lets name it PARENT) and inside that in DOMODIFY/DOINIT method have written code to invoke the required WDA (lets name it CHILD) in external window (by using lo_window_manager->CREATE_EXTERNAL_WINDOW) and is successfully able to open the application with URL disable using different parameter of method CREATE_EXTERNAL_WINDOW. But in this case there are 2 window which opens, one is for PARENT view and other is for CHILD. Now I only want to keep the second view (CHILD) to be opened and want to close the PARENT view. When I used EXIT_PLUG to close the PARENT window, it closes both the window. Need your inputs on my approach or if you have any. Regards, Harish

    Hi,
    If you open the popup, it opens as Modal Window, originating from Parent window. Without external window( where you can pass has_location = abap_false ), you cannot hide the URL/Address bar.
    If you want to partially hide the URL( if you dont want to show the full URL with application path), you can create an Alias for the service in SICF.
    Go to SICF, and create an alias for your WDA application; say original URL: domain:port/sap/bc/webdynpro/sap/<ZAPPLICATION_NAME>
    This URL you can convert( partially hide) as, domain:port/sap/<ANY_NAME>
    Refer creating Alias in this help: http://help.sap.com/saphelp_sem320bw/helpdata/en/55/361a3c9c004866e10000000a11402f/content.htm
    Hope this helps u,
    Regards,
    Kiran

  • How to open new window in UIX page

    I'm using UIX for view layer. I have text input in the UIX form. When I click on a button, I want to open a new window with the URL built using the value from the input. I want to do it using javascript. Is it possible with UIX?

    Hi Krishnamoorthy,
    Look out the LovXXXX components demo in uix.
    See <script> demo of component guide. This should help you clearly understand the functionalities.
    See documentation of above UIX components
    Like providing handlers to HTML elements, you can attach event handlers to UIX components too. You can attach event handlers on onClick, onMouseOver,... on UIX components just as you would do in HTML.
    http://www.oracle.com/technology/sample_code/products/jdev/index.html
    This link could be of some help to you.
    Thanks,
    Vijay Venkataraman

  • How to open new window without loosing pageFlow context?

    I am using 8.1 SP 3.
    Here is what I need to do. I have a an anchor link in a jsp that needs to open a new window after executing an action in a page flow. That action forwards to a jsp that needs to be able to access pageFlow variables.
    So, I have the following:
    <netui:anchor target="_blank" action="timesheetSubmitView">
    Everything works fine, that is it opens a new window and keeps the pageFlow content, BUT the new window contains all of the portlets that were on the original page. What I need is a new window that just contains the jsp that my action forwards to.
    I looked through the various topics on this forum, but the recomended approach posted by someone to enable redirect does not work because weblogic is loosing the pageFlow context, so jsp errors out due to the fact that variable on a pageFlow is null.

    I had the same issue. A couple different things to try -
    1. There is a property called redirect in the action. Set it to true.
    That did not work for me, so I just used pageFlow variables and put things into the session. Bad way of doing it, but works :)
    In the action that loads the first JSP, put things into the session. Then in the timesheetSubmitView action get the stuff from the session.
    Write an onDestroy method that deletes the session stuff, when u are done with it.

  • How to open new window

    I have developed a JTable. What I need to do next is to have listeners for each of the cells in the table such that when the cell is double clicked, a new window should pop up.
    What listener needs to be implemented for this? Will the TableModelListener work?
    Any sample code, anyone?

    Add a MouseListener to the JTable. Look through some of the methods in the JTable class to see how you can find which cell was clicked.
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTable.html

  • Runtime.exec() - how to open new window for new program?

    Hi,
    I have searched through the forums but haven't found an answer to this one yet. I am using runtime.exec() to start up a new java program. At first I thought it wasn't running properly but, after checking task manager, I have discovered that the new program I open runs, it is just completely invisible to me. I am wondering how I can get the new program to run in a command window or something where I can monitor it.
    Thank you for your help,
    Drew

    Thank you all. After trying to figure out why the start command wouldn't work in the runtime.exec() call(not an executable - I am a dolt), I tried putting it in a batch file and it worked perfectly. Thanks for your help,
    Drew

  • Closing window of web dynpro application with exit-plug don't run in the EP

    Hi everybody,
    I want to close a window that contains a Web Dynpro with a close button, because it's used and create as a popup from an other iView (that's not created with web dynpros) in the EP. I read the different threads how to close a window in web dynpro, like JavaScript in WD
    I create a HTML file with the javascript code to close the window and it works fine, when I start the application separately.
    If I used it in the portal and click the close button I get the following error message:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!
    I tried also: ...wdFirePlugExit("javascript:self.parent.close();") or some other javascript code, but got the same error message.
    Then I tried:
    WDPortalNavigation.navigateAbsolute(url,WDPortalNavigationMode.SHOW_INPLACE,(String) null, (String) null,(String) null);
    instead of fireing the outbound plug in the action of the close button
    (...InterfaceViewController().wdFirePlugExit(url);)
    but than a new window with the EP open and the old is still there!
    We use the NWDS2004s an the EP 7.00.
    It must be possible to close a (this) window!
    Thanks for any hint
    christian

    Hi,
       This is what you can do:
    1. You have already created the HTML file with the necessary javascript in the foloowing folder structure :
    src->Mimes->Components-><your component name>-><fileName.html>.
    2. Create a new iView of type URL in your portal.
    3. Get the absolute URL of this HTML file inside your project. This will be in the following format:
    http://<server>:<port>/webdynpro/resources/sap.com/<development ComponentName>/Components/<namespace>/<fileName>.html
    You can find it thus:
    try {
    String u = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"filename.html");
    wdComponentAPI.getMessageManager().reportSuccess(u);
    } catch (WDURLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    4. Now enter this URL string as the URL for the iview.
    5. Do a normal portal navigation to this iview on-click of the button.
    Regards,
    Satyajit.

  • How stop FF31 from opening new window? I want to open all links in new tab at top of page.

    I think the following, quote below, from the help page is my problem.
    I have this one website I use that when I click on a link within the website it is opening a new window with the tab at the bottom. Also, when this happens, I am losing the orange FireFox rectangle, bookmarks and navigation options. How can I set FF31 so that the link opens in a new tab and I keep all my options? I am using Classic Theme Restorer 1.2.3. I also notice that in the new window I lose the ability to use some of the addons.
    I have two laptops and both are running FF31 and W7. One of them is working perfectly and the other is having this problem. As far as I can tell they are both set up the same. The only difference is that when I upgraded to FF31 they both had difference older versions of FireFox. I also read in the help forum that maybe I need to go back to FireFox 28 to accomplish what I am trying to accomplish.
    I noticed that when I go under about:config that the version of FF that is not working has fewer available options versus the version that is working. An example would be that the working version has "browser.tabs.onTop" where on the other laptop this is missing.
    >>>Open new windows in a new tab instead: This option controls whether links from other applications or from web pages which request to open them in new windows are opened in a new window or a new tab in the most recent window.
    Note: If you have chosen to open pages in new tabs, Firefox will ignore this option and will open a new window from a link if the page author specified that the new window should have a specific size, because some pages can only be displayed correctly at a specific size.<<<
    Thank you in advance for any help,
    yeto

    You can override how links are opened via the browser.link.open_newwindow.override pref.
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    Use this for links opened via JavaScript.
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    See also:
    *http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features

  • My firefox opens new window automatically, how can i change this?

    ok, since 3 or 4 days, my firefox opens new window automatically. it happends at lease 20 times a day. sometimes it happends after i open some webs in new tabs, sometimes it just happens..without doing anything...and the new window often times show the homepage of google...sometimes there were other shopping-web. i try to block them unter "options-content-block pop-up windows"...but it doesnt work. and sometimes the normal webs are redireckted to some webseits...i never had this before. i didnt open some untrustable webs....so...what's going on? how can i change it?

    You question is a little Confusing...
    Do you mean you have created A NEW Apple ID...
    If so...
    It should be Noted that anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
    If not..
    Settings > iTunes and App Store > Apple ID = Sign Out... Then Sign In using the preferred Apple ID.
    Apple ID FAQs
    http://support.apple.com/kb/HT5622

Maybe you are looking for

  • Cancellation of Excise invoice after MIRO

    Hi Everybody, How do i cancel the Excise Invoice after MIRO.my scenario is Net Inclusive of Excise duty. the procedures which i followed as follows, 1.PO with Zero Tax code > J1iex(captured the Excise Invoice)>GR which refers EI>Posted EI. After post

  • COPA pulling different number of records each time?

    Dear Friends, I ran a COPA full load for (with Infosource 1_CO_PA_COSTING and) for a the same range of 0FISCPER (three periods)and the load brought different no of records each time. It brought 30,000 records the first time, 3 the second time and 1 t

  • Exported files are uncorrected?

    I have imported and color balance a file of images. Now I want to export these corrected images to a file for a client. When I go thru the export steps and review the images in the new file the are the uncorrected version? Any clues? Thanks E

  • Nouveau issues

    I just rebooted my system, for the first time in a few days. i was having some performance issues with my desktop, so i thought i'd try out the nouveau git packages, and on reboot, X failed to load. the error in the xorg log, was something to the eff

  • HT201406 sometimes my iphone will lock with a white screen

    last night my iphone for some reason went blank and when either the on/off button was pressed the screen went white whick didnt allow me to operate the phone