Open a New Browser window in WD ABAP by specifying a window name

Hi,
Is there any method in Web dynpro ABAP that allows you to create a new browser window with the import of a Web dynpro Window name, not URL. Currently I only found
methods which input is the URL not Window name.
thanks

Hi
  Accessing an application with the window name is not possible.The other possibility is accessing it using the application name.Follow the code...It will be
useful for you.
Thanks
Anzy
Data:    lo_cmp_api             TYPE REF TO if_wd_component,
          lo_window_manager      TYPE REF TO if_wd_window_manager,
          lo_ext_win             TYPE REF TO if_wd_window,
          lv_url type string.
lo_cmp_api = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_cmp_api->get_window_manager( ).
CALL METHOD cl_wd_utilities=>construct_wd_url
      EXPORTING
       application_name = 'MYAPPLICATION'
      IMPORTING
       out_absolute_url = lv_url.
lo_ext_win = lo_window_manager->create_external_window(
                                   url = lv_url
                                   title = 'My Application' ).

Similar Messages

  • How can I open a new browser window!!!  Very Challenging!!!

    I have a form (name=MAIN) with a submit button (name=Button A). Button A opens a new browser window (name=SEARCH), via an HTML form target tag (<FORM TARGET=A>). Window SEARCH has multiple submit buttons (10-15). Each button has a different action which is handled by a servlet (form name and button name are passed to a servlet as a hidden field in the form to determine the action), which is setup to be an action handler. When a button in the SEARCH window is clicked the results are retrieved from an Oracle database and should be displayed in the text fields in window MAIN.
    For example, some results may be displayed in window SEARCH (_self) and and other results may be required to be sent to window MAIN depending on the button clicked.
    How can I setup window SEARCH so each button can have a different target window (some may be window MAIN or other windows)? Using a form tag for each button doesn't give desirable results. Is there a way to do this with JSP or some form of Java code?
    A form tag can only have one target. Basically I have one form with multiple submit buttons. How can I get it to send each submit buttons results to a specific window?
    Thanks.

    <!-- try this -->
    <script language="JavaScript1.2">
    function mysubmit(mytarget){
    document.myform.target=mytarget;
    document.myform.submit();
    function validation(myform){
    //validation stuff
    return [true | false];
    </script>
    <form target='none' name='myform' action='myaction.jsp' method='post' [onsubmit='return validation(this)']>
    <input type=button name='submit1' value='submit1' onclick='mysubmit("target1")'>
    <input type=button name='submit2' value='submit2' onclick='mysubmit("target2")'>
    <input type=button name='submit3' value='submit3' onclick='mysubmit("target3")'>
    <input type=button name='submit4' value='submit4' onclick='mysubmit("target4")'>
    </form>

  • How to open a new browser window without toolbar, location, and menu bars from AIR?

    I have the following problem in my Flex+AIR application. I need to embed an ActiveX component that has JavaScript API inside my application. I tried to embed it inside <mx:HTML> component but unfortunately, AIR doesnot support plug-ins or ActiveX controls. So I've decided to open it in a new browser window. I tried navigateToURL(...) method but it has two problems - it is opening a new tab in the existing browser window and there is no way for me to configure the new browser window appearance, like removing toolbar, menu bar, location bar, etc. Then I tried to open a new window from JavaScript running inside <mx:HTML> component using window.open(...) API but it doesn't open a new window at all.
    Is there any way for me to open a new browser window without toolbar, location bar, etc. (which will run ActiveX control, so it cannot be AIR window) from inside AIR?
    Best regards,
    Arkady.

    Is it possible to open a new browser window using JSP?a JSP page is also an HTML page, this is client side stuff, you can do it with JavaScript.

  • How to open a new browser window from a JSP page?

    Hi,
    I am picking up records from the database and displaying each record in a seperate text area field using the JSP code. I should be able to display the content ( available in the text area) in a seperate window if the user clicks on one icon.
    Is it possible to open a new browser window using JSP? If yes, how can I write information on the new browser window?
    Thanks in advance.

    Is it possible to open a new browser window using JSP?a JSP page is also an HTML page, this is client side stuff, you can do it with JavaScript.

  • Want to open a new browser window and display the html file in locale disk.

    Hi,
    I want to open a new browser window and display the html file in local drive. The below html applet work in local system successfully. But i deploy the same in web server (Tomcat) and try the same in client machine it does not work. Please help.
    Note:
    The class below fileopen.FileOpen.class i make it as a jar and put it in jre\ext folder at the client machine.
    ------------------------------------FileOpen.html(Tomcat)-----------------------------------------------------
    <html>
    <body >
    <applet code="OpenFile.class" archive="loadfile.jar" width="100" height="100">
    <param name="path" value="file://c:/open.html" />
    </applet>
    </body>
    </html>
    -------------OpenFile.java in server(Tomcat)--------------------------------------------
    public class OpenFile extends Applet implements ActionListener{
    String path = "";
    fileopen.FileOpen open = null;
    Button b = null;
    public void init(){
    path = getParameter("path");
    b = new Button("Open");
    b.addActionListener(this);
    add(b);
    public void actionPerformed(ActionEvent ae){
    try
    open = new fileopen.FileOpen(this,path);
    catch (Exception e){
    e.printStackTrace();
    -------------------------------------------FileOpen.java /Client JRE/ext----------------------------------------------------
    package fileopen;
    public class FileOpen
    AppletContext context = null;
    URL url = null;
    public FileOpen(Applet applet,String path)
    try
    if(null != applet){
    context = applet.getAppletContext();
    if (null != path)
    url = new URL(path);
    context.showDocument(url, "_blank");
    }catch(Exception ex)
    ex.printStackTrace();
    Please help to solve this issue very urgent.
    Thanks in advance.
    By,
    Saravanan.K.

    zzsara wrote:
    I want to open a new browser window and display the html file in local drive. ...Did you ever pause to consider how ridiculous that is?
    The best audience for applets is people off the internet. 'People off the internet' might be using a computer that has no (what was it?) 'open.html' in the root of the C: drive. In fact (shock horror) they may not even be running Windows, and would therefore probably have no 'C:' drive at all.
    If you do not intend to distribute this to people off the web, an application makes a lot more sense, but even then, you cannot rely on the document being there unless you 'put it there' (during installation, for instance).
    As the other poster intimated, applets can load documents off the local disk as long as they are trusted. Here is an example*, but note that it is not so rash as to presume any particular path or file, and instead leaves it to the user to choose the document to display.
    * The short code can be seen at SDNShare on the [Defensive Loading of Trusted Applets|http://sdnshare.sun.com/view.jsp?id=2315] post.
    On the other hand, a sandboxed applet can load any document coming from its own server via URL, or get showDocument(URL) to work. In that case, the JRE must recognize that the URL is from its own server, so the best way to form URLs for applet use is via the URL constructor
    new URL(getDocumentBase(), "path/to/open.html");That is how I form the URL in this [ sandboxed example of formatting source|http://pscode.org/fmt/sbx.html?url=/jh%2FHelpSetter.java&col=2&fnt=2&tab=2&ln=0]. Of course, in this case the applet loads the document, then parses the text to draw the formatted version, but the point is that an URL produced this way will work with showDocument(URL).
    I am pretty sure showDocument() in an applet off the internet will work with an URL pointing to a foreign (not its own) server, but it will not be able to load documents off the end user's local disks.
    I suggest a couple of things.
    - Try to express this problem in terms of what feature it is that you want to offer the end user. Your question jumps directly to a bad strategy for achieving ..who knows what? An example of a feature is "Shows the applet 'help' files on pressing F1".
    - A good way to indicate interest in a solution is to offer [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to match that interest.
    Edit 1:
    ..and please figure out how to use the CODE tags.
    Edited by: AndrewThompson64 on Sep 12, 2008 11:14 PM

  • Opening a new browser window in APEX

    Hi.
    I am trying to open a new browser window in APEX (v2.1) for a new Navigation Bar Entry.
    What I did is the following:
    1) Created the new Navigation Bar Entry
    2) On the properties of this entry I put the Target Type: "URL"
    and on the Target: javascript:window.open('f?p=&APP_ID.:63:&APP_SESSION.:::::' , 'Despre','scrollbars=1,resizable=1,width=400,height=600');
    when I click on my Navigation Bar Entry, the page 63 opens on the same window,NOT on a NEW browser window.
    Can you please help ?

    It seems that I found the answer.
    I had to do the following:
    javascript:(window.open('f?p=&APP_ID.:63:&APP_SESSION.:::::', 'Despre','Scrollbars=1,resizable=1,width=400,height=600')).focus();
    and then logout and login back in the application and it worked.

  • Opening a new browser window always puts a flv-file (0bytes of a youtube vid viewed earlier) on desktop. Firefox 18.02

    Opening a new browser window always puts a flv-file (0bytes of a youtube vid viewed earlier) on desktop. Firefox 18.02
    viewed the yuotube vid yesterday. deleted all the flv-files on the desktop.
    same thing today, a new window always puts the same empty file from yesterday.
    any suggestions?

    You can check the home page setting:
    *Tools > Options > General > Startup: Home page
    *https://support.mozilla.org/kb/How+to+set+the+home+page
    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox Profile Folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created

  • Pdf links will not open in new browser window

    I have created a pdf document in Acrobat 9 Pro that is password protected. You must enter the password to open it. In this document there are perhaps 15 links to other pdf documents. I set up each of the links to open in a new window. The links work as expected in Acrobat, each opening in a new window, however, when I posted the documents to the web, the links open in the same window as the original document. This would not be a big issue if the original document were not password protected, but each time the user clicks on a link, it takes him out of the original document. To get back to the original document requires re-entering the password. This is a major irritation with so many links.
    I know that you can set Acrobat to display the documents in its own window rather than in the browser, but my users don't know that. Control clicking on a pdf link does not open it in a new window as it would with an HTML link. Is there a simple fix to this problem that does not involve user intervention?

    Well, I came up with a solution, thanks to Ted Padova who offers a simple JavaScript solution on his blog at http://www.acrobatusers.com/blogs/tedpadova/opening-pdfs-new-browser-windows.
    The solution is clearly laid out even for beginners, if you know how to create a link or button.
    It seems to me that a prime objective of Adobe in developing Acrobat would be to have it behave the same way in free-standing mode and as a plug-in. In this case it does not, and obviously, it has not for the last forty-eleven years that Acrobat has been on the market. Maybe some day they will get around to a fix for this obvious problem. In the meantime, read Ted's blog and be happy we have guys like him who can solve these problems.

  • JavaScript for opening a new browser window.

    Hi all,
    Let me start by saying that I'm not JavaScript savvy at all.
    I have two buttons on a slide and I want each to open a new browser window.
    I Googled for a script and found this:
    window.open ('URL')
    I tried in my project and it worked fine but the browser window that my project was running in also changed.
    I've attached a .gif image of what happens to my project window when either of the two buttons is clicked.
    Can anyone help??

    You can check the home page setting:
    *Tools > Options > General > Startup: Home page
    *https://support.mozilla.org/kb/How+to+set+the+home+page
    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox Profile Folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created

  • I close Firefox session and then try to open a new browser window - get message that Firefox is still running and I need to shut down and restart. Need a solution

    I close a Firefox browser and at a later time want to open a new browser window but get message "Firefox is still running and I need to shut down before I can open a new session" I do not want to shut down as this is laborious - I can go into task manager and processes and click on Firefox and end session that way but this is not the solution. Firefox seems to be running in background but I cannot open a new session window without doing on of the above.

    Have a look at this post, see if it is of any help (though related to Vista, but same issue can be there with Window 7 also)
    http://www.vistax64.com/browsers-mail/265937-firefox-exe-still-running.html

  • How do i open a new browser window(IE or Netscape)?

    I need to open a new browser window to show a web page returned by a PHP aplication.
    If i use an editorpane the returned page is shown unformatted.
    PLEASE HELP!
    Rui

    or to open a window using a hyperlink, u can try this:
    Link Name
    This will open a window and send then send u to the page you want for processing.

  • How do I open a new browser window from Flash

    I wish to open a new browser window from Flash and when the new window closes to return to the location from whence I started.
    ThomasChen

    The command to open a new window would be the "_blank" part of a command to link to a web page in the code below.
    navigateToURL(new URLRequest("http://www.anothersite.com", "_blank"));
    As far as the new window closing and getting back to where you were in the original window, I don't understand where that original window might have gone to... You should be wherever you last left it.

  • File Open Issues - document library pdf file to open in new browser window

    Hi
    I have a requirement to open the document library containing pdf file to open in new browser window. So far I have tried following steps but could not get it to work.
    1. Changing Document library advance setting to open the document in browser (have tried others as well).
    2. SharePoint web application setting changed as Permissive instead of Strict. Here the pdf file opens in browser but redirect from document library instead of new window(Also tried adding Target=”_blank” and no change).
    3. Executed the powershell script to adding MIME type to see if it works but no change.
    $webApp = Get-SPWebApplication http://SharePointSite
    If ($webApp.AllowedInlineDownloadedMimeTypes -notcontains "application/pdf")
    Write-Host -ForegroundColor White "Adding PDF MIME Type..."
    $webApp.AllowedInlineDownloadedMimeTypes.Add("application/pdf")
    $webApp.Update()
    Write-Host -ForegroundColor White "Added and saved."
    Else
    Write-Host -ForegroundColor White "PDF MIME type is already added."
    4. Open the Doc library and modified ALLItems.aspx to add Target= “_blank”
    5. I have already tried solutions suggested in the link:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9db08c4a-b53c-419a-84f8-001c194d1311/how-to-open-sharepoint-document-library-pdf-file-in-new-window?forum=sharepointadminlegacy
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/530e2ea1-d77d-491c-935f-04f536e439a5/open-a-pdf-document-to-a-new-browser-in-the-document-library-web-part?forum=sharepointadminlegacy
    http://mindsharpblogs.com/todd/archive/2005/08/16/654.html
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/7b6091df-4657-4799-ba02-259ebd7e4b7c/pdf-doesnt-open-in-document-library?forum=sharepointadminlegacy
    Appreciate if there are any working solution from any of you. Many Thanks

    I found a solution which works only in the development. No idea when I compared, Browser MIME type is enabled, STRICT browser type is configured for web application. on the document library advance setting, default to open in new browser. Both configurations
    are identical but I am able to open pdf file in new window in my developing using jquery script
    http://blog.ithinksharepoint.com/2011/02/21/open-pdf-files-from-a-document-library-in-a-new-window/ but the same does not work on production server :(
    Any help experts?
    Thanks

  • Unable to Open a New Browser Window

    I have a couple users who are having trouble logging in to Discoverer on new PCs. They are using Internet Explorerer 8. They are able to get to the login screen, but when the hit connect (or Go) they get an error: "Unable to open a new browser window. Ensure that you do not have popup windows disabled for this site."
    Obviously the first thing I had them do was turn off the popup blocker all together. But they still get the error (even after they restart their PC). Other than that, is there something I am missing in how they need to configure IE8? I'm personally used to using IE6 at work and don't know much about configuration setting for IE8.
    Thanks!

    Hi,
    Exactly not sure,see if there are any pop-up blockers still exists,if so try turning pop-up on and off and check it.One more thing what java plug in are you using?? May be it perisists due to java also.
    Best Wishes,
    Kranthi.

  • Open a new browser window when click a button

    Hi,
    I am working on Apex - 3.2.0.00.27.
    I want that when I click on a button, it should open a new browser window. I have tried to set property on the button , direct to url , html = _blank.
    but somehow it is not working.
    can you suggest something ?
    Thanks in advance.
    -Jasmine

    Hi,
    Even if i create different regions , it is not possible for me to place them between items.
    But anyways, I created a separate button in the same region and it works fine.
    Thanks Jari for your help.
    -Jasmine

  • Open a new browser window to show document

    Hi,
    I am trying to click an item in datagrid to open a new
    browser window and display the document for this selected item. how
    to implement it? thank you.

    Here is a full example that should do what you are asking.
    You need to create an itemRenderer for your DataGrid.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    backgroundAlpha="0" >
    <mx:Script>
    <![CDATA[
    import mx.collections.*;
    private var catalog:ArrayCollection;
    private static var contacts1:Array = [
    {URL: "
    http://www.macromedia.com/software/dreamweaver/",
    Product: "Dreamweaver"},
    {URL: "
    http://www.macromedia.com/software/flash/",
    Product: "Flash"},
    {URL: "
    http://www.macromedia.com/software/coldfusion/",
    Product: "ColdFusion"},
    {URL: "
    http://www.macromedia.com/software/flex/",
    Product: "Flex"},
    {URL: "
    http://www.macromedia.com/software/breeze/",
    Product: "Breeze"},
    {URL: "
    http://www.macromedia.com/software/director/",
    Product: "Director"}
    private function initCatalog(cat:Array):void
    catalog = new ArrayCollection(cat);
    myDatagrid.dataProvider = catalog;
    public function generateHtml(url:String):String {
    return '<a href="'+url+'"
    target="_blank">'+url+'</a>';
    ]]>
    </mx:Script>
    <mx:Text text="This example uses a Text itemRenderer for
    the second column that
    changes the font color of those cells and uses the htmlText
    property of Text
    to make the cell a link." width="350" />
    <mx:DataGrid id="myDatagrid" width="600" height="300"
    creationComplete="initCatalog(contacts1)" >
    <mx:columns>
    <mx:DataGridColumn dataField="Product" />
    <mx:DataGridColumn dataField="URL" width="400">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Text color="0x0000FF"
    htmlText="{outerDocument.generateHtml(data.URL)}"/>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    </mx:columns>
    </mx:DataGrid>
    </mx:Application>
    Joan Lafferty
    Flex SDK QA

Maybe you are looking for