Opening an external URL from the Web UI

Hello,
I want to use the Web UI in order to open an external URL.
I know it can be done easily using JavaScript, but the URL is generated from one of the page controller methods, and I want to open it directly from there.
I know that there's the Window Manager in the Component Controller, that can open popup windows, but none of it's methods receive an external URL.
So how can I open an external URL from the Web UI methods?
Thanks,
Udi.

Hi,
you can use the Trnsaction launcher with OP.
in the window you create an OP_X
with the code
  data: lv_navigation type ref to     if_crm_ui_navigation_service.
  lv_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
  lv_navigation->navigate( iv_link_id = 'ZTO_X' ). "runtime you create the TO_X nevigation"
in your implamentation class of the view you add a preotected method OP_TO_X with the code
   data:
    lr_window type ref to cl_bsp_wd_window.
  lr_window = me->view_manager->get_window_controller( ).
  lr_window->call_outbound_plug( iv_outbound_plug = 'TO_X'
                                 iv_data_collection = iv_data_collection ).
and you call to that method from the EVENT_HANDLER you want.
Amit.

Similar Messages

  • With OSX10.7.5 and Adobe Reader 11.0.02 when I try to open a PDF downloaded from the web I get 'There was an error opening this document. This file is damaged and could not be repaired. Preview will not open either. Older PDFs OK.

    I am running OS X 10.7.5 and Adobe Reader 11.0.02. In the last few days I have been unable to open PDF's downloaded from the web. Reader gives the error message 'There was an error opening this document. The file is damaged and could not be repaired'. Removing Reader and trying to use Preview to open these files give the error 'Preview cannot open this file. It may be damaged or use a file format that Preview doesn't recognise' (or something like that). Downloading the same files with Reader removed from my Mac Preview opens the files OK.
    I was recently prompted to update Adobe software but did not note exactly what the update was nor when it was done.
    Reader and Preview will both open PDFs I downloaded a week ago. Reader will also open files downloaded on another Mac running OS X 10.0.0 and copied to my Mac. Any ideas?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Can you open word doc. In pages? (Opening a doc. From the web) in the iPad or iPod tuch?

    Can you open word doc. In pages? (Opening a doc. From the web) in the iPad or iPod tuch?

    NH,
    This may seem a fine point, but iWork apps don't actually Open Office apps. They Import them. The reason I make this distinction for you is that when you view the result of the import, you may see some variations from what was in the Office document because of an imperfect translation, and when you make edits, you are editing an iWork document, not the original Office document.
    Jerry

  • I want to open ppt or pptx from the web save them as PDFs and take notes on the pdfs for school. All from the ipad, I don't want to have to go back to my computer to e-mail or convert it.

    I want to open ppt or pptx from the web, save them as PDFs, and take notes on the pdfs for school. All from the ipad, I don't want to have to go back to my computer to e-mail or convert it.

    Apple's iWork apps
    http://www.apple.com/iwork/
    3rd party Microsoft equivalent apps
    http://www.polarisoffice.com/en/iOS.asp
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1
    Others, including cloud based
    Microsoft Office Web Apps:These are versatile apps since they can be used on or off the cloud. Expect a simplified experience to the full version of Microsoft Office suite.
    OnLive: Access both a degree of Windows desktop functionality and full Windows versions of Microsoft Office Suite.
    CloudOn: This was one of the first solutions for iOS productivity. Syncing with Dropbox, CloudOn offers a more complete Windows desktop. The tradeoff is it also offers a more pared-down version of Word, Excel, and PowerPoint.
    rollApp: Offers Open Office programs for iOS, also utilizing Dropbox.
    LogMeIn: Remotely access your home computer's desktop from your iOS device. This solution requires coordination of logins, settings, and hookups. The free version does not offer file transfer, but you can get a separate, free app for that.
    Google Docs: Now featuring Google Drive for iOS, users no longer have to battle with pressing the Refresh periodically to initiate syncing. This makes collaboration much smoother, resulting in a stronger office productivity product.

  • Opening an external url in the same browser

    Hi all,
    I need to open an external URL (for instance,www.google.com) from my WDA application by 'linktoaction' or 'button' event and this should be happen in the same parent window and not as a external window.
    Please suggest me steps with example codes to perform this.
    Regards,
    Dinesh

    Why use a linktoaction?  Just use a linkToURL.
    [http://help.sap.com/saphelp_nw70/helpdata/EN/49/e8884118aa1709e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/49/e8884118aa1709e10000000a155106/frameset.htm]
    You can use the target property to control how the link opens. 
    If you must use a button or linkToAction, the you will have to use an Exit Plug:
    [http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm]

  • To open an external URL from your application

    Hello All,
    Please guide me in below scenario as I am new to SAP UI5.
    I have created a SHELL application with 5 tabs.
    We have a requirement where on clicking of a tab in the application it should open an external url. I am using "link" element of sap.ui.commons library. On press of link to action function I am using below code to open external url content.
    location.href = "http://google.com";  
    It is opening in the same tab but I have been navigated away from my application.
    As per the requirement external url content should be opened  without navigating away from my application.
    I am attaching the screenshot.
    Thanks
    Ansuman

    Hi Jagadeesh,
    See this code for reference.
    This is my view.
    sap.ui.jsview("demo.view1", {
           /** Specifies the Controller belonging to this View.
           * In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.
           * @memberOf demo.view1
           getControllerName : function() {
                  return "demo.view1";
           /** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed.
           * Since the Controller is given to this method, its event handlers can be attached right away.
           * @memberOf demo.view1
           createContent : function(oController) {        
                         var btn1 = new sap.ui.commons.Button({
                               text: "This Is View One."
                         var link = new sap.ui.commons.Link({
                               text: "view3",
                          press : function() {                          
                                $("#frameId").slideDown();                                 
                         var iframe = new sap.ui.core.HTML("frameId",{
                          content : "<iframe src=" + 'http://www.jnvbuxaralumni.com' +" width='100%' height='700px'></iframe>",
                         var ele = [btn1, link, iframe];
                         return ele;         
    This is my controller.
    sap.ui.controller("demo.view1", {
           onAfterRendering: function() {
                  $("#frameId").hide();
    This is my index.html.
    <!DOCTYPE HTML>
    <html>
           <head>
                  <meta http-equiv="X-UA-Compatible" content="IE=edge">
                  <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
                  <script src="resources/sap-ui-core.js"
                               id="sap-ui-bootstrap"
                               data-sap-ui-libs="sap.ui.commons,sap.ui.ux3"
                               data-sap-ui-theme="sap_bluecrystal">
                  </script>
                  <!-- add sap.ui.table,sap.ui.ux3 and/or other libraries to 'data-sap-ui-libs' if required -->
                  <script>
                               sap.ui.localResources("demo");
                               //jQuery.sap.require("sap.ui.core.routing.Router");
                               //jQuery.sap.require("sap.ui.core.routing.HashChanger");
                               var oShell = sap.ui.ux3.Shell("shellId",{
                                      appTitle: "Shell Demo Program",
                                      showLogoutButton: false,
                                      showSearchTool: false,
                                      worksetItems: [
                                             new sap.ui.ux3.NavigationItem("homeId", {
                                                    key: "view1",
                                                    text: "Home"
                                             new sap.ui.ux3.NavigationItem("contactUsId", {
                                                    key: "view2",
                                                    text: "Contact Us"
                                      worksetItemSelected: function(e){
                                             this.removeAllContent();
                                             var selected = e.getParameter("key");
                                             var view = sap.ui.getCore().byId(selected);
                                             //console.log(selected);
                                             if( view == undefined){
                                                    view = new sap.ui.view({
                                                           id: selected,
                                                           viewName: "demo." + selected,
                                                           type: sap.ui.core.mvc.ViewType.JS
                                             this.addContent(view);
                                      content: [
                                                    new sap.ui.view({
                                                           id: "viewId1",
                                                           viewName: "demo.view1",
                                                           type: sap.ui.core.mvc.ViewType.JS
                               oShell.placeAt("content");
                  </script>
           </head>
           <body class="sapUiBody" role="application">
                  <div id="content"></div>
           </body>
    </html>
    Here you can see that on click of the link button i am able to display frame in same tab of shell.
    Let me know if it's helpful.
    Regards
    Dhananjay

  • PDF file won't open after saving it from the web.  get error message file is damaged.

    My PDF files won't open after saving them to Docs from the web.  I get error message file is damaged. Can someone help me correct this problem on Mac Air w Mountain Lion? 

    I wonder if the image is being embedded somehow and there is not enough scratch disk space to render the file. Just a hunch. Check your hardrive to see how much free space is available. Also, check your RAM and see if you can upgrade ( install more, install much more ) to max out as much RAM as possible. At a minimum, check for fragmentation and do a "Correct Permissions" via Apple's Disk Utility.
    But, weird things start happening when a font becomes corrupt. Not that one is, but it may be in your best interest to acquire a font management utility like Font Agent PRO ( if you don't have one already ). A good font management program can detect and disable corrupt fonts.
    CS1 and OSX10.4 should be fairly compatable with the 7500, but you may have gone as far as you can go. Think about upgrading to a G4 or a G5. I believe the 7500 was pre G3 ( which I think is the minimum requirements for CS1 ).

  • Form field to open a external URL passing  the value typed by user in URL

    I am trying to build a text field with a "Go" button beside it so that when a user types in a value (e.g. a bug number) in this text field, it opens up a external URL (e.g. bugdb URL) with the parameter being passed in the URL. e.g:
    P1_SEARCH (Text field): 464666 (value)
    So when I click on the Go button beside it, I want a URL to open in a new browser with the following URL:
    http://xxxx.oracle.com/pls/edit_info_top?report_title=&rptno=:P1_SEARCH (P1_SEARCH should be replaced at the run time)
    I tried using the branching and javascript:popupURL but I was not able to achieve the above mentioned flow.
    Also, I noticed that when I try to create a button in a region selecting the option "Create a button displayed among this region's items", a javascript:doSubmit is automatically associated with it. Is there any way of changing it to javascript:popupURL?
    Can somebody help me to resolve this issue? Thanks in advance.

    Narayan,
    Please don't post the same question twice. If you don't get an answer, it's OK to "bump" it by replying to your own question. You've already asked this question here:
    issues while invoking external URL
    Sergio

  • Can't open any apps downloaded from the internet after installing application loader update and messages beta

    I've run into an unusual problem recently. I think it it related to two recent software installs.The problem only started after i installed the new application loader.
    My issue : I'm unable to open application I downloaded from the web. I get the following error message below.
    Question: Has anyone else run into this issue and do you have a solution?
    Thanks for you help.
    P.S I haven't tried rolling back the lastest softwarte installs yet. I'm hoping I can avoid that.

    When I press cancel nothing happens. I can do nothing and it still won't load the program.
    Messages beta: http://www.apple.com/macosx/mountain-lion/messages-beta/

  • Do view life time and view recent property apply for external URL from crawling?

    Hi All,
    I wonder that do viewlifetime count and viewrecents apply for the external URL from the crawler?
    I saw it does work for local SharePoint URL but not too sure for the external URL.
    And in that case, is it possible to sort the search result by viewlifetime/viewrecent for both Local SharePoint Sites and External Site from crawler?
    Best Regards,
    Andy

    Hi,
    According to your post, my understanding is that you want to use viewliftime and viewrecent property when crawing external URL.
    Per my knowleage, the viewlifetime and viewrecent property does not apply for external URL from crawling.
    In my environment, I can edit the refinement panel in search center page to display viewlifetime and viewrecent when I crawl SharePoint Sites.
    However, when I crawl external site, in the search center page, I cannot get any information about the result items.
    Here is a great blog about how to crawl external site for your reference:
    http://www.bluesphereinc.com/blog/utilizing-the-power-of-sharepoint-search-part-1-centralizing-search-results-from-mulitple-sources/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to download pictures from the web with their URLs?

    How do you download pictures from the Web so that they automatically have their URL addresses in their "Comments" section of the Get Info window? I thought Safari did this automatically, but it's not happening for me.

    Graham--
    When you say to open the image in another window, do you mean another Safari window? When I do and right click on the image, I don't get the "Inspect Element" option. I have tried your other suggestion, and that doesn't work either.
    So.... I'm still puzzled...
    I am also working in the same version of Safari (4.0.4) but this may be because I have the "Develop" menu (between Bookmarks and Window). If you do not, that will not be available to you. I can tell you how to get this, but as a newer user, this may be (for now) more information than you want.
    However, if you do open that image in a new window, the toolbar will display the URL of the image.
    As to the other solution, I may not have explained this clearly enough. Let me suggest another route to the same idea. With an image in a web page, drag it to the desktop. When it is on the desktop, highlight the image (click once) and then use the Finder > File menu and the item, Get Info. The large panel that opens will give the URL and this works for any file downloaded from the internet, which makes it a useful security check too.
    All the best.

  • When I download something from the Web, the "Downloads" window opens, but the window remains blank. Before it used to at least show the name of the file and I could open the file from the "Downloads" window. Is there a way to get this functionality back?

    I'm running Windows XP which is updated to latest version (which I think might be Service Pack 3, but not positive.) Mozilla Firefox is version 5.0. I tend to use Google as my search engine so most of the stuff I download comes through sites found through Google, which is also updated.
    At some time in the past (maybe a few versions ago) when I would download a file from the Web, the "Downloads" window would open and in the window would be displayed the name of the file I was downloading or had just completed downloading. I think I used to be able to then click on that file name and the file (or the installation file if needed to start the new program) would open. I am currently using Firefox 5.0 (the "About Firefox" screen says this is up to date) and when I download a file or document, the "Downloads" window appears on the screen as it always has in the past, but it remains blank, i.e., nothing appears in the downloads box. I don't remember making any configuration changes, etc., that may have caused the window to remain blank, but I could be mistaken. I know how to find the items I've downloaded (My Documents / Downloads) and can usually guess what the name of the downloaded file might be, but it used to be much easier when something (anything) showed up in the downloads window.
    I'd love for someone to tell me about a simple fix for this. I'm willing to be quite embarrassed that I did something I shouldn't have.'''

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Issue with opening PDF files from the web Acrobat 8.1.4

    Hello everyone
    I just found out about this problem today, and it manifests in such a manner that when you try to open a PDF document on the web, it hangs for a while, and then the standard message about Adobe Acrobat not being able to open the document comes up, and after you OK away that you get the message that the program shuts down.
    If I download the PDF itself and open it locally it works. Is there any known issue with updates recently that creates this problem?
    The system is running on Windows 7 32-bits, and Adobe Acrobat is a part of the CS3 Master Collection.
    Greetings from Alexander

    Not supported file type can (but not always) mean the PDF was created with an old enough version of Acrobat, that it isn't comaptible with reader X or XI.
    Might have been damaged is pretty cut and dried in its meaning and interpretation.
    There's a known issue with Mac OS and Safari Browser "breaking" PDFs as they download, but it's not so common for Windows. Since these are files you already had, it would be even less applicable.
    You can try downloading an older version of Reader to check if it's a compatibility issue, but you'd have to uninstall the latest to do it and it'd be a lot of bother if they still don't open. It would also mean they are "broken" and cannot be repaired, that I know of.

  • Cannot open pdf files from the web

    I have downloaded Adobe REader 10.0.1 twice and restarted my Mac.  Operating syste, Mac OS X 10.6.6.  I cannot open files from the web, but there is no problem with opening previously save files.  Thanks for any suggestions.

    un-installed old version and installed new version of READER and all functions have returned

  • How can I launch or open a pdf from the Web using Reader X?

    Before I upgraded to Adobe Reader X, I could click on a file to download from the web and it would give me the option to Open, Save or Cancel. Now that I have upgraded, I only have the option to Save or Cancel. Often I would rather Open the document to see it before deciding to save it or not. Is there a Setting or Preference somewhere that will bring back the Open option? btw, I'm using Windows 7 as my OS.

    ImagineThat:
    Welcome to the Apple Discussions. There is a 3rd party application, pdf-RecoverPro, that will let you lock the file to printing, changing, etc. You set two passwords, one to let the user view it and one to unlock the restricted features. Just provide the first password and send the file. You can try the demo version. It just saves one page in demo mode.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

Maybe you are looking for

  • How can I turn off the New Mail alert on my iPod Touch?

    I have an iPod Touch (version 6.1.3). The other day I was waiting for an important e-mail, so I  turned on the New Mail alert. It worked fine. Now I want to turn it off, but  I can't. I went into Settings and then to Sounds and changed the selection

  • Downloading a podcast again

    I "subscribed" to a podcast and then downloaded ("Get") one of the podcast. Now I would like to download the same one again but doesn't give me the "Get" option. Now what?

  • Viewing photos from library?  Please Help...

    I just bout a new black macbook and downloaded images from my camera to iPhoto. When I double click on a photo from my library, instead of an enlarged picture, I get a grey box with a question mark. I never had this problem on my PPC computer and I a

  • Automatically connecting Docs LInks to PR line item in ME51N

    Hello Experts, We are using ECC6.0 with EHP6 package and implement MM system. We got a requirement as below. When User enter any material in ME51N and press enter , we need to automatically load the "related"  DMS documents on the basis of some Busin

  • Issue using variable in Datastore Resource Name

    I am trying to use a variable - let's call it MyVar - in the resources name of a datastore as the value for a database link that is dynamically generated. Let's say I have a hypothetical table called MyTable that may exist in multiple databases and i