How to open a browser using button?

Hi,experts,
I create a button in a view in the WDJ.
I can get a URL through call a webservice when I click the button and I need open a browser using the URL automatically. 
How can I do it?
Best regards,
tao

Hi Tao,
You can use the following method of WindowManager in the action assigned to onAction event of your button:
wdComponentAPI.getWindowManager().createNonModalExternalWindow(String URL,String  title);
Regards,
Ajay

Similar Messages

  • Opening new browser using button

    Hi there:
    I am trying to insert a link to a webpage which I would like
    to have open in a new browser. I selected 'Open URL or file',
    entered the URL [complete with http] and then selected 'New' from
    the drop down list. When I run the file [I have done this locally
    from my hard drive and am wondering if that may be the issue] and
    click on the button nothing happens.
    As a test I changed the URL to be the location for file and
    it opens the file fine. Do I need to wait until the video is
    implemented on the web before the link will work?
    Thanks!

    public class WindowsProcess
         public static void main(String[] args)
              throws Exception
              String[] cmd = new String[3];
              cmd[0] = "cmd.exe";
              cmd[1] = "/C";
              cmd[2] = "start";
              Process process = Runtime.getRuntime().exec( cmd );
              process = Runtime.getRuntime().exec( cmd );
    }When you run the above code you should get two open dos windows.
    Now just just enter some html filename and hit enter in each window. IE should start up separately in each window.
    Thats also what should happen if you specify the html file as the fourth parameter. A new process should be created and two separate windows should open with a browser in each.

  • How to open multi tasking using gesture in iphone 5s 7.0.6(11B651)

    How to open multi tasking using gesture in iphone 5s 7.0.6(11B651), i m able to open only by double press of centre button or using accessilbity multi tasking option.
    is it possible to open like ipad using a five finger upward gesture?

    is it possible to open like ipad using a five finger upward gesture?
    No. The "double click" method is the only way.
    iOS: Understanding multitasking - Support - Apple

  • How to open a browse a folder dialog box

    Hi,
    Please tell me,
    how to open a 'browse a folder' dialog box in java SE. I dont need showopenDialog or showSaveDialog methods.
    User have to be prompted to select a folder(not a file), and clicks on 'OK'. That path have to come in a text field.
    In my program user has to give a folder path....

    bhuvanavijayam wrote:
    Thank you very much..........
    i got the answer............ we have to set
    jfilechsr.setFileSelectionMode(1);
    1 -> DIRECTORY_ONLY
    No!
    Never use "Magic Numbers" They may change in a future verison and your code will break. Also anyone who reads your code (that includes you, months/years from now) won't know what the code is supposed to do.
    jfilechsr.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);Not DIRECTORY_ONLY
    db

  • Sharepoint foundation 2013: office docs can be opened in browser using IE but not in firefox or chrome?

    Hi
    Sharepoint foundation 2013:
    why when we open an excel or word  using chrome and firefox browser it wants to download the file.
    It can be opened in browser using IE but not in firefox or chrome?
    Any issues?
    Thanks

    Hello MGerio,
    Can you check what your Browser File Handling settings are of the web application (of the excel/word files)?
    http://social.technet.microsoft.com/wiki/contents/articles/8073.sharepoint-browser-file-handling-deep-dive.aspx
    - Dennis | Netherlands | Blog |
    Twitter

  • Help!!! How to implement a special useful button in tool bar?

    How to implement a special useful button in tool bar, when the button is clicked, then a menu shows under the button, just like the Internet Explorer's back button and forward button, there is a black arrow at the two buttons right, when click the black arrow, a menu shows under the back button or forward button, how to implement this in java?
    Please help!!!
    Thanks!!!

    Like an enhanced JComboBox?
    ;o)
    V.V.

  • How to connect one page using button and by link in BSP

    how to connect one page using button and by link in BSP

    hi,
    use on 'onclick' functionality.
    1. In layout, onclick = 'NEXT_PAGE' of the button
    2. Capture the event in onInputprocessing,
    DATA: event_id TYPE REF TO  cl_htmlb_event.
    case event_id.
    when 'NEXT_PAGE'.
                navigation->goto_page( 'URPAGE URL' ).

  • How to open the browser in a Tab

    How to open the browser in a new Tab when click on the URL.
    My problem is i have one DataGrid that contains
    "Name,Designation,Company URL".
    After running the program Name,Designation,URL are displayed
    in the DataGrid .
    I have Four URL's in Datagrid ,the four URL's are opening in
    the different tabs when the user click on the URL.
    How can i do these three things in Flex.
    Thanks & Regards,
    Srinivas.

    Hi,
    Please check the sample in the URL below.
    http://raghuonflex.wordpress.com/2006/12/07/flex-i-frame/
    Hope this helps.

  • How to open/read file using Java in Unix?

    Hi Friends,
    Can you please help me out how to open/read file using java in unix os? I have create one text file in "/home/test.txt" in unix environment. How to open the same file & read using java code?
    - Hiren Modi

    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • How to change the browser used for Google search from context menu of selected text?

    How to change the browser used for Google search from context menu of selected text?
    It uses Safari. But I want to use Chrome (it's my default browser).

    How to change the browser used for Google search from context menu of selected text?
    It uses Safari. But I want to use Chrome (it's my default browser).

  • I have downloaded an app from the Istore and now I can't figure out how to open it or use it

    I have downloaded an app to use on my laptop and now I can't figure out how to open it and use it.  It shows it in the download area..........any suggestions would be great.

    Have you looked in your menu of programs (in Windows:  Start -> All Programs -> etc....)?

  • Open Document File Browser using button

    I want to add a button to my PDF that when clicked opens the document file browser to a specified folder. How can this be done? All the information I've found requires you to enter the name of the document you're inserting rather than opening the browser window.
    Also, is it possible to setup a button to open a specified folder and insert the latest pdf file in that folder?
    I am somewhat familiar with JavaScript.

    Hi,
    According to your post, my understanding is that you wanted to click the Document ID link to open the document directly without prompting an open\save dialog.
    By design, some specific documents such as .doc or .xlsx files can’t be opened directly when you click the Document ID link.
    As a workaround, I recommend that you can install the Office Web App to implement it in your environment.
    For more information, you can refer to:
    http://rajeshagadi.blogspot.com/2013/07/installing-office-web-apps-2013-for.html
    http://technet.microsoft.com/en-us/library/ff431687(v=office.15).aspx
    Best Regards,
    Linda Li
    TechNet Community Support

  • How to open Import Browser options?

    Can someone help me to figure out how to open my Import Settings Browser? Only "file" shows up and no other options.
    I must have pushed a wrong button but can not figure out how to reset it.

    What menu commands or toolbar icons are you using to import?  What do you mean "only 'file' shows up"?
    Can you not click the "Import" icon on the Toolbar?
    Can you not execute the menu command "File➞Import➞ ... "?

  • How to open a browser from a program??

    How can i open a browser to a specific page from my aplication??

    Or if it's a desktop application, you can use the Runtime class to execute an app. The following will open up MS Access Database. Just change the string to point to the application you want to run.
    String app = "C:\Programs Files\Microsoft Office\Access\Msaccess.exe";
    Runtime rt = Runtime.getRuntime();
    Process p = rt.exec(app);
    p.waitFor();
    Hope that helps!!
    Taji

  • How to close the browser on button click?

    Hi,
    On a HTML page, I have a button labeled as "Close". When user click the button, I want to close the browser. I am using Apex 4 with 10g.
    I created the following process which I call on pressing the close button:
    BEGIN
    htp.p('<body>');
    htp.p('<script type="text/javascript">');
    --htp.p('window.opener.doSubmit();');
    htp.p('window.close();');
    htp.p('</script>');
    htp.p('</body>');
    END;But it shows the below in the browser instead of closing it.
    Location: f?p=17638:9:3591448756041585::NO
    Any wayout?
    Thx

    For popup windows I use button code / javascript such as this.
    The self function refere to the correct window, while window.close my be connected to the wrong (parent) window.
    input type="button" value="Cancel" onclick="self.close();"  id="CANCEL"Edited by: Sven W. on May 26, 2011 2:46 PM

Maybe you are looking for