New page in browser window on event trigger

Hello Experts,
I have created webdynpro abap application which generates pdf  interactive forms on pressing a button in UI. I want pdf to be generated in the new page of browser instead of the current page.
Any suggestions how can I implement this?
Thanks & Regards,
Viral

Hello Viral,
Anky is helping you to open a new browser window tith 'Google' website.
In your case, could you do the below steps:-
Step1 : create a new window, add your view containing Adobe interactive form into this window.
Step 2: Open this window on button action event. Following snippet of code might be helpful for you.
DATA lo_nd_tabnode TYPE REF TO if_wd_context_node.
lo_nd_tabnode = wd_context->get_child_node( Name = '<Node_Name>' ).
data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component  type ref to if_wd_component.
data lo_window         type ref to if_wd_window.
lo_api_component  = wd_this->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window         = lo_window_manager->create_window(
                   window_name            = '<Window_Name>'
                   message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                   button_kind            = if_wd_window=>co_buttons_ok
                   message_type           = if_wd_window=>co_msg_type_none
                   default_button         = if_wd_window=>co_button_ok
lo_window->open( ).
Explanation:
Line 1 & 2. A reference to the context node is created This context node(Node_Name) which is mapped to the UI elemenents on the adobe interactive form.
Line 3,4 & 5: reference to the window manager, component and window are created(all those starting with 'if' stands for interfaces, if you want details about these interfaces, goto transaction SE24 and insert their name and search for parameters and methods.- putting all these details as you said you are new to Wd ABAP).
rest of the lines: creating window API and assigning mandatory parameters to this window.
last line: opening window whenever this particular(wd window) is getting called.
for more details goto SE 24 search with 'if_wd_window".
Cheers,
Jakes.

Similar Messages

  • Dreamwiever behaviors Go to URL (new blank or browser window)

    <script type="text/javascript">
    function MM_goToURL() { //v3.0
      var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
      for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
    </script>
    <a href="http://example.com" onmouseover="MM_goToURL('parent','http://example.com');return document.MM_returnValue">insurance</a>
    Hello,
    I cant I specify a new or blank browser window when usin dreamweaver's "Go
    To URL" behaivour?
    Help me please !

    What you are showing us will open TWO windows/tabs with example.com in each - is that your intention?
    Change this -
    <a href="http://example.com" onmouseover="MM_goToURL('parent','http://example.com');returndocument.MM_returnValue">insurance</a>
    to this -
    <a href="http://example.com" onmouseover="MM_goToURL('parent','http://example.com');returndocument.MM_returnValue" target="_blank">insurance</a>

  • Browser window resize event

    Newbie question - sorry. How do I capture the browser window
    resize event?
    I've tried variations on this code:-
    <mx:Script>
    <![CDATA[
    import flash.events.Event;
    function mylisten():void { trace('mylisten');
    this.stage.addEventListener(Event.RESIZE,resizefn);
    function resizefn():void {
    trace('resize!');
    ]]>
    </mx:Script>

    Hi brutfood,
    you can add a handler to the resize event of the application
    as an attribute of the Application tag.
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" resize="resizeHandler()">
    Then add the handler ("t" is TextArea):
    private function resizeHandler():void {
    t.text = stage.width + " - " + stage.height;
    t.text += "\n" + stage.stageWidth + " - " +
    stage.stageHeight;
    Note the difference between the width/height and
    stageWidth/stageHeight properties: the first couple returns the
    actual stage dimension while the second returns the visible area of
    the stage.
    regards,
    Christophe

  • IWeb "open new page in browser" doesn't work?

    On websites I have created in iWeb, the hyperlinks to a web page will not open in a new window even though I have checked that setting in the Inspector. Previously when creating websites with html I would simply add the "blank target" code but in iWeb there is no way to edit html directly. I have tried this with Safari and with Firefox, it doesn't work!
    Message was edited by: Ironic Bliss

    Thanks for those helpful suggestions, though I have batted around different ways of trying to get iWeb to register the "open in new window" when checked, to no avail so far, and it doesn't work with any link, whether in text or combined with an image. Taking all these points:
    I have now managed to open the html using TextWrangler but I must admit it is a little beyond me to even find the string of code in question as iWeb uses so many files. It would be better if I could just get iWeb to do the work for me as it's meant to.
    Strangely, when I open the website in iWeb the first time, all the pages to the left are marked in red before I've done anything! So I cannot use that as a simple check to see if a change has been made. Also I have already tried making other changes after checking the "open in new window" box before saving.
    I always publish to a folder on my HD, as I am uploading to a server that is not me.com or mac.com. (Could that be the trouble? iWeb seems to generally be very unfriendly to publishing on other servers than Apple and I have had to jump through a lot of hoops with various things.)
    Could it be the weird folder hierarchy created by iWeb, where there is an index.html page outside of the main folder where all the stuff is kept? So far, I have just uploaded it to the server "as is", so the contents of the main folder (which has another index.html rather strangely placed outside it) are not at the root level on the server. The folder containing them is at the root level and so is the "external" index.html. Would it work if I uploaded only the contents of the folder to the root directory on the server, and not in the folder that iWeb creates or with its "dummy" index.html outside it?
    (I think in the past this has caused trouble with Google search sitemaps, and is the reason why in the end I uploaded the whole thing and not just the contents of the main folder.)
    So to be clear (not that easy here), the files on the server are:
    Directory > index.html plus the folder containing all the website files. So the actual website files are at a second level in a folder, not at the root level.
    The easiest example where the blank target doesn't work is on the home page of one of my websites. Scroll down and there is an image of a book which has a link to a bookstore. This should open a new page in the browser, but never does. (Annoyingly, in FireFox it even kills the back button, Safari works slightly better in that respect.)
    http://www.ordoastri.org/OA/Ordo_Astri.html

  • Creating URLs that open a new tab or browser window?

    Hello out there...
    I am creating some podcasts via Garage Band and iWeb for my grade 9 class. I have embedded some URLs in the podcast however when one 'clicks' the links the iWeb page is closed and the user is taken to the new page.
    I would like the iWeb page with the podcast to remain open and a new page or tab open up to display the link.
    Is it possible to do this?
    Thanks,
    B!

    Hi,
         Similar question has been asked in the forum, hope it will help:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/9db08c4a-b53c-419a-84f8-001c194d1311/how-to-open-sharepoint-document-library-pdf-file-in-new-window?forum=sharepointadminlegacy
    Take a look to the articles given in below link too.
    http://office.microsoft.com/en-in/sharepoint-server-help/change-how-to-open-a-document-in-a-library-with-one-click-HA101729873.aspx
    http://www.benramey.com/2011/04/25/opening-all-sharepoint-2010-documents-in-a-new-window/
    Regards,
    MS

  • Need Help Centering Page in Browser Window

    I'm designing my pages by creating a graphic framework in
    Photoshop, slicing and exporting images into css using Fireworks to
    a Dreamweaver html page. These pages look great; but they load into
    the upper left corner of the browser window
    I was taking a Dreamweaver class at the Denver Art Institute,
    that was worthless. I dropped the class after the 4th week and am
    now teaching myself. I asked the teacher how to center this kind of
    page in a browser window, so the page would behave like most
    webpages, centering as you change the width of the browser window.
    I also wanted to add a repeating pattern in a background image. She
    told me that she didn't know how, that I would have to build the
    background into my Photoshop file. So, that's what I've been doing.
    However, when people with smaller monitors change pages within a
    site the built-in background requires them to recenter the page
    manually each time.
    Is there a way to center the page and add a background image
    that is not built in? I've tried using Dreamweaver's background
    image and margins in the Page Properties; but that just pushes the
    page to the upper left and adds the background to the right and
    bottom of the page.
    Please visit:
    http://www.livingwater.la,
    http://www.renegadegraphics.biz
    and
    http://www.dentalmatchmakers.net
    for examples.
    Thanks for your help.
    Mary

    >I was taking a Dreamweaver class at the Denver Art
    Institute, that was worthless
    Yes, those classes usually are worthless because they focus
    on using the tool without giving you the proper foundation for
    understanding and managing html and css. Unfortunately, all of the
    example sites you gave you AP Divs (layers) as a primary layout
    method, which is a terrible approach. AP Divs should be used rarely
    if ever, and only when you understand how they work. When the
    visitors font is sized differently than you expected, the site
    falls apart. The correct approach is to learn web
    design/development outside of the context of a specific
    application.
    http://www.w3schools.com/html/
    is a good place to start for a basic understanding of html and css.
    And some basic layout techniques can be found here:
    http://apptools.com/examples/pagelayout101.php

  • Opening a Browser Window on event

    Upon a Hyperlink listener event I wish to open a browser window. Is there a system calll to do this? I would like to open the default browser, whether it is IE or Netscape. Any suggestions or hints?

    below works:
    import java.io.IOException;
    /** * A simple, static class to display a URL in the system browser.
    * * Under Unix, the system browser is hard-coded to be 'netscape'.
    * Netscape must be in your PATH for this to work. This has been
    * tested with the following platforms: AIX, HP-UX and Solaris. *
    * Under Windows, this will bring up the default browser under windows,
    * usually either Netscape or Microsoft IE. The default browser is * de
    termined by the OS. This has been tested under Windows 95/98/NT. * * Examp
    les: * BrowserControl.displayURL("http://www.javaworld.com") *
    BrowserControl.displayURL("file://c:\\docs\\index.html") *
    BrowserContorl.displayURL("file:///user/joe/index.html");
    * * Note - you must include the url type -- either "http://" or "file://". * */
    public class BrowserControl{
    // Used to identify the windows platform.     
    private static final String WIN_ID = "Windows";
    // The default system browser under windows.
    private static final String WIN_PATH = "rundll32";
    // The flag to display a url.     
    private static final String WIN_FLAG = "url.dll,FileProtocolHandler";
    // The default browser under unix.     
    private static final String UNIX_PATH = "netscape";     
    // The flag to display a url.     
    private static final String UNIX_FLAG = "-remote openURL";     
    *     * Display a file in the system browser. If you want to display a     
    * file, you must include the absolute path name.     
    *     * @param url the file's url (the url must start with either "http://"     
    * or     * "file://").     */     
    public static void displayURL(String url)     {     
    boolean windows = isWindowsPlatform();     
    String cmd = null;          
    try {          
    if (windows) {     
    // cmd = 'rundll32 url.dll,FileProtocolHandler http://...'
    cmd = WIN_PATH + " " + WIN_FLAG + " " + url;     
    Process p = Runtime.getRuntime().exec(cmd);     
    }               else {          
    // Under Unix, Netscape has to be running for the "-remote"     
    // command to work. So, we try sending the command and
    // check for an exit value. If the exit command is 0,
    // it worked, otherwise we need to start the browser.
    // cmd = 'netscape -remote openURL(http://www.javaworld.com)'
    cmd = UNIX_PATH + " " + UNIX_FLAG + "(" + url + ")";     
    Process p = Runtime.getRuntime().exec(cmd);     
    try {                    
    // wait for exit code -- if it's 0, command worked,          
    // otherwise we need to start the browser up.
    int exitCode = p.waitFor();               
    if (exitCode != 0) {               
    // Command failed, start up the browser     
    // cmd = 'netscape http://www.javaworld.com'     
    cmd = UNIX_PATH + " " + url;          
    p = Runtime.getRuntime().exec(cmd);     
    catch(InterruptedException x) {          
    System.err.println("Error bringing up browser, cmd='" + cmd + "'");     
    System.err.println("Caught: " + x);                    }
    }          }          catch(IOException x) {          
    // couldn't exec browser          
    System.err.println("Could not invoke browser, command=" + cmd);     
    System.err.println("Caught: " + x);          }     }
    /**     * Try to determine whether this application is running under Windows     
    * or some other platform by examing the "os.name" property.     *
    * @return true if this application is running under a Windows OS     */
    public static boolean isWindowsPlatform()     {     
    String os = System.getProperty("os.name");     
    if ( os != null && os.startsWith(WIN_ID))          
    return true;          else               
    return false;               }     
    /**     * Simple example.     */     
    public static void main(String[] args)     {
    BrowserControl.displayURL("http://www.javaworld.com");     }}

  • Centre page in browser window

    Hi, I have a site at www.goldenumber.co.uk  I have noticed that on large displays it doesn't look great because the pages are not centred in the browser window.  Is there a quick way to do this.  All the pages have a layout grid and the background is selected via a random script in css.
    Many thanks for any advice, Matt.

    Your text dont move ... its your background that moves
    Your text i stuck in a div that are 1010px wide, and you background image is center on the background of the body .. when the window gets smaller than the image, the image "float" out on both side of the window leving the center part visible
    You cud try to place the background image in the wrapper insted of the body so that it follow the wrapper
    Change basic.css:
    body { color: white; font-family: tahoma, verdana, arial; background: black url(../images/rotate.php) no-repeat fixed center 50%; text-align: center; } #wrapper { text-align: left; position: relative; width: 1010px; height: auto; margin-right: auto; margin-left: auto; }
    To:
    body { color: white; font-family: tahoma, verdana, arial; text-align: center; } #wrapper { text-align: left; position: relative; width: 1010px; height: auto; margin-right: auto; margin-left: auto; background: black url(../images/rotate.php) no-repeat fixed center 50%; }

  • Open a document in a new tab or browser window Sharepoint 2013

    Customer requirement states that a doc must be opened in the browser, but requires that it open in a new window or tab.  I know that this is bad practice, but customer is the customer.  Please provide the best course of action.  95% of docs
    will be PDFs and can not use client application as the means of opening.  Appreciate your help and easiest, simplest solution.

    Hi,
         Similar question has been asked in the forum, hope it will help:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/9db08c4a-b53c-419a-84f8-001c194d1311/how-to-open-sharepoint-document-library-pdf-file-in-new-window?forum=sharepointadminlegacy
    Take a look to the articles given in below link too.
    http://office.microsoft.com/en-in/sharepoint-server-help/change-how-to-open-a-document-in-a-library-with-one-click-HA101729873.aspx
    http://www.benramey.com/2011/04/25/opening-all-sharepoint-2010-documents-in-a-new-window/
    Regards,
    MS

  • When opening new page, an extra window says "problem loading page"

    Opening the Firefox browser causes a second tab at the bottom to pop up that reads "problem loading page"...the pages I want to view open up fine, on all websites, I just get an extra annoying tab with that message...if I click on that tab, a small window pops up in the upper left hand corner of the screen that has the error message. I am using FF 3.6. This just started happening recently...possibly after my las FF upgrade.

    Do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • Open discoverer report in new browser window and without connections page

    Hi All,
    We are using Oracle 11g Discoverer 11.1.1.4.  Requirement is to open the discoverer report in a new browser window and without connections page.
    When we are running discoverer reports with this parameters we unwantedly get the connections page of the discoverer plus which we don't want.
    Went through the documentation given in this page and followed it still the issue persists, and i see couple of threads with my issue and no updates.
    This excerpt is from the documentation available in the link
    " _plus_popup=true and framedisplaystyle=embedded launches Discoverer Plus in a new pop-up browser window that contains the Plus applet embedded in it "
    http://www.art2dec.com/documentation/docs/oas10g1012/linux/bi.1012/b13918/urlstart.htm
    and Here is what we use to invoke our reports.
    http://ipaddress:port/discoverer/plus?cn=cf_123&_plus_popup=TRUE&framedisplaystyle=EMBEDDED&wb=disc_wb_1
    Request the forum users from PRO discoverer group to help me out of this issue and expect a good discussion on this.
    Thanks in advance

    Closing the thread
    We were able to achieve by changing the browser settings in the IE 8 Browser. Disabled Tabbed browsing.

  • New page trigger always to second page

    Hi All,
    I have 2 page in my smartforms:
    Page1: I have to print customer information
    Page2: I dont have to print cust. information but print data if it overflow the first page.
    But my issue is if I trigger a new-page if customer changes, Smartforms always trigger the last page but not get into the first page (I use Command node with checked in go to new page set to Page1).
    Does anyone know what happen to my form?
    Thank you so much,
    Thien

    I suggest in your case, you design only one page in your smarform whioch would have 2 windows.1 window would ahve teh customer details which would eb displayed if the logic put in the "Conditions" tab is sussesful.(Say u write Trigger it on only 1st page).
    And in the 2nd window which should be your main window, you need to ahve the details which would be overflowing.
    And teh first page would eb callingitself.
    Try it out and get back in case of any questions!
    Cheers,
    Varna

  • Firefox 4 - Opening in a new window puts a second windows frame around the firefox browser window

    Using Firefox 4 in Windows 7
    I have customised the position of tabs (Tabs on top) and which toolbar items I would like to see.
    The first window I open of firefox 4 always has the configuration as I set it.
    Whenever I open a new window of firefox either:
    # - Right-click a link to open in a new window
    # - Click a link anywhere (such as an email) to open a new window
    # - When a website opens a page in a new window
    Bad Results:
    # - The new window does not have the configuration as set in the main window (Tabs on top)
    # - The new window has a windows type window frame around the firefox window (see two sets of window controls eg. "minimise", "restore" and "close")
    # - The open page does not show the url - navigating to a new page within this window will not update the url :: strangely enough clicking the url page icon will update the url as it should be
    # - Sometimes when restarting firefox, it will open the first main window with the remembered tabs and then open approx 8 or so blank new windows as described above

    I have troubleshooted this issue and have found what I think is a resolution.
    The cause of this issue seems to be Profiles.
    Previously when running firefox 3 I had multiple profiles setup. when deciding to update to firefox 4 I removed these old profiles.
    When installing firefox 4 for some reason it used a "default" named profile, and this caused the problems I described above.
    RESOLUTION:
    Ran firefox.exe -ProfileManager
    created a new profile, it named itself "Default User" I then selected the new default and tested. The window behavior is now acting as it should wothout the above problems.
    I deleted the old profile and now it works, using the new profile.

  • Why does the browser window change colour when I bookmark a page or click the Downloads button?

    Using Firefox 20 on MacOS - when I click the Downloads button or Cmd-D to bookmark a page, the browser window changes from looking like this:
    https://dl.dropboxusercontent.com/u/35912963/01-firefox-before.png
    to looking like this:
    https://dl.dropboxusercontent.com/u/35912963/02-firefox-after.png
    Any thoughts would be welcome.
    Dan

    Hi there,
    Wow, that looks odd! I have no idea why that would happen, but I wonder if it's related to one of the add-ons you have installed? I see a red icon in the status bar that I'm not familiar with, which leads me to believe that you may have other add-ons installed. One thing to try is to start Firefox Firefox with add-ons disabled (you can do this from the Help menu). If you don't see this problem in that mode, the issue is caused by one of the add-ons. From the Tools menu, you can access the add-ons and disable them one by one. Remember to restart each time and then test it out.
    If none of that takes care of this, my other suggestion would be Firefox Reset: [[Reset Firefox – easily fix most problems]]
    Hope any of this helps.
    Cheers,
    David

  • Getting hang/crash problem when I try to close browser window from applet

    I have a small Apllet that has a button that calls a Javascript function in the opening window, to close the window in which it is loaded.
    The Applet window is a PopUp window from one of my application's window. First time I start my application and load that Applet the button works fine. It calls the Javascript method and the Method closes the window using the self.close() method.
    But now if I open the applet window again and click on the button to close the windows, it hangs. I put in trace statements and saw that it hangs on JSObject.getWindow() window.
    I am using JDK Plugin 1.4.2_07 and 5.0 , if I work out on IE browser, it works fine.But when I use firefox or mozilla it gives problem of hanging/crashing.
    Note that in case of 1.4.2_07 this problem experienced some times but in case of 5.0 it gives always for other than IE browser.
    Please, if somebody could give me some clue about why this would happen, I will really appreciate that. and code related to this is given below
    import javax.swing.JApplet;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import netscape.javascript.JSObject;
    public class TestApplet extends JApplet implements ActionListener{
    protected JButton closeButton = null;
    protected JSObject win = null;
    private JFrame frame = null;
    private boolean alreadyClosed = false;
    public void init(){
    this.win = JSObject.getWindow(this);
    this.closeButton = new JButton("Close Browser Window");
    this.add(this.closeButton);
    this.closeButton.addActionListener(this);
    frame = new JFrame("Test Frame");
    frame.setSize(300, 400);
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.out.println("windowClosing");
    alreadyClosed = true;
    TestApplet.this.stop();
    frame.show();
    public void actionPerformed(ActionEvent ae){
    stop();
    public void stop() {
    if (!alreadyClosed) {
    alreadyClosed = true;
    frame.dispose();
    closeLaunchedBrowser();
    System.gc();
    System.runFinalization();
    private void closeLaunchedBrowser() {
    final TestApplet thisObject = this;
    Runnable r = new Runnable() {
    public void run() {
    try {
    JSObject win = (JSObject)JSObject.getWindow(thisObject);
    if (win != null && win.toString() != null) {
    //win.eval("top.opener=self;self.close();");
    //win.call("close", null);
    win.eval("self.close();");
    } catch (Exception e) {
    Thread t = new Thread(r);
    t.start();
    Thanks.

    I am waiting for any reply. I have tried for all these below options still I am getting Problem. I heard this is because of javascript, it wont call methods more times .Thats
    why I need other than JSObject or java script solution.If some one know anything about this or any modifications I have to made for the below options to avoid that problem please let me know.
    // URL durl = new URL(thisObject.getCodeBase(), "test/CloseMe.htm");
    // System.out.println("URL :" + durl.toString());      
    // thisObject.getAppletContext().showDocument(durl);
    //     thisObject.getAppletContext().showDocument(new URL("javascript:window.close();"), "_self");
    //win.eval("top.opener=self;top.close();");
    //win.call("close", null);
    //Object[] args = { "close", new Integer(50) };
    // win.call("setTimeout", args);
    //win.eval("setTimeout("close", new Integer(50));");
    If it is the problem of JRE I just need it should work on 1.4.2_01 or higher.
    thanks.

Maybe you are looking for