Open as external URL on self page

Hi experts.
I have two diferent portals, for example
http://www.portala.com/irj/portal and http://www.portalb.com/irj/portal
the users has the same roles in both portals. (the top level navigation is the same in both sides)
in TLN, only with 1 level, I have for example
WORKSETA | WORKSETB | WORKSETC | WORKSETD
The WORKSETA and WORKSETB are from http://www.portala.com/irj/portal
The WORKSETC WORKSETD are from http://www.portalb.com/irj/portal
So, in both portal I have two iViews and two worksets.
But, in portala, I created an URL iView, with the URL with the link of portalB, but the iView opens in the innerpage.
After I open the URL iVIew, the TLN and DTN are from portalA, and in the innerpage I have the other portal, with TLN and DLN.
Someone could help me on this?
Thank you
BR
Joã

The following portal component can be used to launch a URL in the full portal window:
package com.sap.anz;
import com.sapportals.portal.prt.component.*;
public class StartInFullWindow extends AbstractPortalComponent
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
          IPortalComponentProfile profile = request.getComponentContext().getProfile();
          String url = profile.getProperty("url");
          response.write("< script>");
          response.write("window.parent.location='"+url+"'");
          response.write("< /script>");
It needs a portalapp.xml like:
<?xml version="1.0" encoding="UTF-8"?>
<application>
  <application-config/>
  <components>
    <component name="StartInFullWindow">
      <component-config>
        <property name="ClassName" value="com.sap.anz.StartInFullWindow"/>
      </component-config>
      <component-profile>
        <property name="url" value="http://www.sap.com"/>
      </component-profile>
    </component>
  </components>
  <services/>
</application>

Similar Messages

  • 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.

  • 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]

  • Open the external URL in another tab of window browser

    Hi,
    I have create application to open the external URl into new window browser by using CREATE_EXTERNAL_WINDOW method. now how can i open this url into same window tab. is there any method that allow me to open this external URL into window tab.
    Thanks,
    Digamber.

    The open external window API doesn't support specifying "in another tab". That is completely browser specific! Some browsers don't even have tabbed browsing.[ I don't even think that even javascript has this functionality!|http://www.dynamicdrive.com/forums/archive/index.php/t-19843.html]
    You'll not be able to do this. Sorry.
    You might be able to change the browser configuration so that it defaults new windows into a new tab... But not through WD.
    Cheers,
    Chris

  • 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

  • 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

  • Opening a new URL, a blank page appears with 2 messages on the top left and right corner of the window: "Advertise here" and "Skip this ad" and it will not go to the requested site until I push "Skip this ad"

    It would be nice to have the possibility to attach a print screen or something to give you a better idea what is happening and how it looks like.
    Anyway, what I described above is accurate:
    - the address bar shows the link where I wish to go
    - but the page loaded is blank with these 2 hyperlink messages ("Advertise here" in the top left corner, and "Skip this ad" in the top right corner).
    I would like to emphasize that it does not have to do with the requested URL: it does the same thing with all sites, all the time.

    For me is the same, it's yet 6 months.
    the blank page apears for the first 20-30 of the day's navigation, then no more.
    For example: If I open firefox at 9 a.m., it appears until 9.30 more or less. If i surf the web until mignight, at 00.01 a.m. this page starts bugging me.
    I have yust to click on the link "skip this ad" to return to the desired web page.
    Using Adblockplus and NoScript plug-ins had sadly no effect.
    I've read somewere that the ploblem should be an f**** adware called "directCPV"., and that the solution is toremove an .exe file called Directcpv.exe or somewhat else, but in my pc I haven't found any of those linked to this adware.
    I tried a full system scan with an antivirus (McAfee), with Malwarebytes, Ad-Aware, ATF cleaner, Spybot, Exterminate-it but NO RESULTS.
    I tried to do this in safe mode too.
    No way cleaning the cache, temp files, cookies etc.
    finally I tried to uninstall Firefox (cleaning all registry entry too) and reinstall it, but the problem is still there.
    The only cure seems to be formatting the HD, but it's very last chance.
    If someone have an idea, please post it here.

  • JSF pages to display content from external URLs

    Hi,
    Is it possible for a JSF page that uses ADF controls, and the PanelPage component to provide menuing, etc. to actually allow a HTML page (accessed via a URL to an external site/application) to be displayed in an area within the JSF page?
    For example, clicking a menu item to an external HTML page results in the page being displayed in a Frame or similar within the JSF page?
    I've tried the FrameBorderLayout control and Frame control to try to embed a Frame to display such a page via the target setting for a menu item, but that doesn't seem to work. At least not when within a PanelPage. It works within a basic JSP page.
    I would have thought it would be possible for a JSF application to incorporate HTML content from other sites/servers as if part of the application. Even if this meant defining "wrapper" pages of some sort to effectively link these into the JSF application as part of it's navigation rules.
    Or am I missing something?
    Gene

    Thanks,
    Yes, using an iFrame tag within a verbatim tag worked, allowing me to specify an external URL to a page which is then displayed at the location where I placed the verbatim tag. I need to investigate sizing/border settings, but at least I now seem to be able to embed such pages.
    This works.
    I tried jsp:include as well, but that only seems to allow relative URLs to pages that a part of the application. And using the c:import JSTL tag would import a page at an external URL, but didn't seem to position it where I wanted it.
    Gene

  • Open external URL in event Button.

    Hi experts,
    I have created a Button in Web Client that call an RFC. Later depending on response, It should open an external URL (e.g http://www.google.es).
    I don't know how I can open a new link with abap code in the event.
    Anyone knows it?
    Thanks.

    Hi,
    In the code where you defined the button use JS
    ls_button-on_client_click = 'javascript:window.open ("http://www.google.es","Google","width=750,height=600,resizable=yes");Google.focus()'.
    Rgds,
    Shobhit

  • Opening an external link to a target

    Hope this is the right place for this question and that it's
    not too stupid............
    I'm using CS4 to construct a simple web site using a template
    with a navigator bar, header and footer.
    In the Left hand navigation panel I want to be able to
    associate some buttons (Spry menu maybe ?) to opening an external
    URL. So far that's fine, but additionally I want to do the
    following when the link opens in my site:-
    1) I want the link to open in the main content window on the
    RHS of my page (ie I don't want a new browser window to open up)
    2) I also want to be able to left or right justify the
    content of the page when it opens in the RHS window (I've seen
    something called openstyle="rtl" that can be used for languages
    that read Right to Left (Hebrew etc)
    3) The content of the external URL is an image, ie GIF or
    PNG, not text.
    On older sites (DW3) I got close to doing this with Frames,
    but I still could not do the Right justify bit. The images always
    opened left justified and I had to scrolll to the right side
    manually. I figured that Frames were rather out of favour now and I
    should be moving on with some of the new templates, widgets etc.
    You can see my dilema by looking at www.firegrass.co.uk at my
    tester page.
    Any help or guidance would be much appreciated.
    Thanks,
    Neil

    > 1) I want the link to open in the main content window on
    the RHS of my
    > page
    > (ie I don't want a new browser window to open up)
    Then you would have to use frames or iframes to accomplish
    that. Ew.
    > 2) I also want to be able to left or right justify the
    content of the page
    > when it opens in the RHS window (I've seen something
    called
    > openstyle="rtl"
    > that can be used for languages that read Right to Left
    (Hebrew etc)
    You could only do this if you are also in control of the
    pages that are
    being opened in that frame.
    > 3) The content of the external URL is an image, ie GIF
    or PNG, not text.
    So then why the left/right justification?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "CS4Rookie" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hope this is the right place for this question and that
    it's not too
    > stupid............
    >
    > I'm using CS4 to construct a simple web site using a
    template with a
    > navigator
    > bar, header and footer.
    > In the Left hand navigation panel I want to be able to
    associate some
    > buttons
    > (Spry menu maybe ?) to opening an external URL. So far
    that's fine, but
    > additionally I want to do the following when the link
    opens in my site:-
    >
    > 1) I want the link to open in the main content window on
    the RHS of my
    > page
    > (ie I don't want a new browser window to open up)
    > 2) I also want to be able to left or right justify the
    content of the page
    > when it opens in the RHS window (I've seen something
    called
    > openstyle="rtl"
    > that can be used for languages that read Right to Left
    (Hebrew etc)
    > 3) The content of the external URL is an image, ie GIF
    or PNG, not text.
    >
    > On older sites (DW3) I got close to doing this with
    Frames, but I still
    > could
    > not do the Right justify bit. The images always opened
    left justified and
    > I had
    > to scrolll to the right side manually. I figured that
    Frames were rather
    > out of
    > favour now and I should be moving on with some of the
    new templates,
    > widgets
    > etc.
    >
    > You can see my dilema by looking at www.firegrass.co.uk
    at my tester page.
    >
    > Any help or guidance would be much appreciated.
    >
    > Thanks,
    > Neil
    >

  • ICE is there a way to allow my client to make External URLs open in new tabs?

    Hi.
    I have a set my client's site up with lots of editable regions so they can manage content. Although the InContext editor is great for letting my client link to internal pages, documents and external pages I couldn't find where they would select the external URL to open in a new browser tab. Obviously I can go back in and add the html to their links but is there a way they can set the target?
    Cheers
    David

    The sessionstore.js file only exists while Firefox is closed. During shutdown, Firefox writes out that file based (I think) on recovery.js as of that point. When Firefox starts back up again, it reads sessionstore.js and deletes it. So if Firefox is running, it's normal not to see sessionstore.js. Anyway, sessionstore.js is going to be empty now.
    Shadow Explorer might already have done this for you, but just in case...
    You could try the previous versions feature. This is harder to get to on Windows 8 and 8.1, but I have read about a roundabout way. I can't test this myself, but here's what you do:
    Let's say you have a Windows Explorer window open to your current Firefox profile folder. This is something like (with your username and semi-random profile folder name):
    C:\Users\''username''\AppData\Roaming\Mozilla\Firefox\Profiles\blahblah
    Click in the address bar and change the C: to
    \\localhost\c$
    to yield (with your username and semi-random profile folder name)
    \\localhost\c$\Users\''username''\AppData\Roaming\Mozilla\Firefox\Profiles\blahblah
    Press Enter to reload the folder contents that way.
    Now when you right-click recovery.js, recovery.bak, backup.js or sessionstore.js and choose Properties, there should be a Previous Versions tab. Usually the most recent previous version dates back to the last time Windows created a restore point (e.g., system update or possibly scheduled on a more frequent basis).

  • Open external URL from Homepage Framework

    Hi,
    We are building our new ESS functionality with Homepage Framework and I need to create some links to external URL. I would like them to open in a different window with no portal header at all. They should appear as services listed in the menu area. While this seems easy, I had tried several things with no success.
    First, I created an URL iview in portal content. I marked the option "launch in external window" to Open in a separate window.
    I create a resource that pointed to this Iview, and linked resource with a "java webdynpro" service, service with subarea and subarea with area. The service link is displayed correctly but it is always opened in the portal page, not in a different one.  Have i forgotten any parameter that would make this work?
    A second approach was to create a resource that includes the URL and an associated service, marked as "Direct URL launched in separate window".
    This succeds in calling the URL in a differeny window but it adds some strange parameters at the end. So instead of calling http://www.google.com it calls  something like http://www.google.com?sap-ext-sid=2J*HeTVW7295w3QWBZhQow--
    jQDfzgrDHRt*yZ87GlXsgA--%2Fpcd%3Aportal_content%2Fcom.bshg%2Fpct%2Fhcm%
    2FEURO%2FES%2FESS%2Froles%2Fcom.bshg.hcm.ess-es%2FESS%
    2Fcom.bshg.hcm.infoLinks%2Fsap.com%2Fpcui_gp%7Exssutils%2FXssMenuArea%
    2Fbase&sap-wd-arfc-useSys=SAP_R3_SelfServiceGenerics%3AHR0&sap-wd-
    cltwndid=WID1325147123879&sap-accessibility&sap-locale=es&sap-rtl&sap-
    epcm-guid=validate&sap-wd-renderMode=viewArea&sap-pp-
    consumerBaseURL=http%3A%2F%2Fu3d.bshg.com%3A80&sap-ep-
    version=7.0108.20110207041646.0000&sap-wd-tstamp=1325147150353&sap-
    cssversion=7.11.7.30.0&sap-pp-producerid=com.bshg.BSHG_HCM_EMEA&sap-wd-
    app-namespace=zzzz&sap-cssurl=http%3A%2F%2Fu3d.bshg.com%3A80%2Firj%
    2Fportalapps%2Fcom.sap.portal.design.urdesigndata%2Fthemes%2Fportal%
    2Fcustomer%2Fbsh%2Fur%2Fur_ie6.css%3F7.1.8.0.1&sap-wd-finish-
    rendering=false
    While some pages can ignore those extra parameters, in other cases, this causes a "page not found" error.
    Any ideas on how to solve this problem?
    Many thanks in advance to all.

    Hi Daniel,
    Define Resource: you have to mention all the below details
    1. object name :http:// (url ).
    2.window name: "".
    3.window Property : target="_blank".
    and also check define service:
    service type: Direct url launched in a seperate window.
    And assign resouce to service -
    >
    service to sub area--->
    sub area to area---->
    area to areagroup.
    hope it helps............,
    Thanks,
    cbr.

  • When I open a new tab, the new tab used to show shots of 6 or so of the last sites I'd viewed, so I could easily click on one and go to it. Now it shows a blank tab and I have to type the URL of the page I want. How can I change it back?

    When I open a new tab, the new tab used to show shots of 6 or so of the last sites I'd viewed, so I could easily click on one and go to it. Now it shows a blank tab and I have to type the URL of the page I want. How can I change it back?

    Did you have the Google Toolbar installed?
    * http://www.google.com/support/toolbar/bin/answer.py?answer=115561 Web-browsing tools : Google new tab page and most visited websites
    Other extension that have a similar feature:
    *Speed Dial: https://addons.mozilla.org/firefox/addon/4810
    *Fast Dial: https://addons.mozilla.org/firefox/addon/5721

  • How to open a url in new page/tab from Answers passing a value to the url in OBIEE10g

    Hello All,
    I'm trying to create an answer, A column "request id" would have a url with request id attached to end of url to open a web page. I did get the answer working, I need to open the webpage in a new page rather than in the same obiee answer. We are on OBIEE10g(10.1.2.3) on Windows 2003 R2.
    Can anyone give me some information to achieve this ?
    Thanks,
    Vijay

    Hello Srini, Vinod,
    I guess there might some set-up issue here. Here is my link
    <a href="https://ifa.dev.com/inspectionformsweb/formviewer.aspx?formid=273221" target=_new>273221</a>
    If I give the above link I would get syntax error.
    Then I change to add single quotes on the above link
    '<a href="https://ifa.dev.com/inspectionformsweb/formviewer.aspx?formid=273221" target=_new>273221</a>'
    Output looks like
    273221"><a href="https://ifa.dev.com/inspectionformsweb/formviewer.aspx?formid=273221" target=_new>273221</a>
    On the number when I click it does not go to the link rather gives me a HTTP 404 not found
    http://scaobieedev:9704/analytics/%3Ca%20href=
    Please advice.
    Thanks,
    Vijay

  • I have given links on self page those links are open in IE but not in firefox why?

    now I am at the coding stage & facing a problem about - I have given self page links that are open in IE6.0 but not in firefox why?
    == This happened ==
    Every time Firefox opened
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2)

    Please copy all the code in View -> Page Source to http://pastebin.mozilla.org then let us know the resulting address.

Maybe you are looking for

  • How to tell if RAID is working

    I'm trying to set up a mirror set on our server. I used Disk Utility to create the array (selected the primary disk, chose the RAID tab, dragged the new disk in). It created a RAID slice and says it's online. HOwever, the "RAID set size" says ZeroKB

  • Mounting USB Hard Drives and Hard Locking

    So, it's been a long time since I've posted here which I have to say, is because Arch was running beautifully for a long time. Sadly though, my laptop was stolen and I was forced to buy a new one. With the new one, I've gotten everything mostly back

  • Problem - Frame Driver Template

    I have been trying to develop Portal Forms and embedding the forms in a frame driver using Oracle Portal 3.0. I specified a particular User Interface Template but never get to see this chosen template when running. Instead the form always uses the te

  • Is It Possible To Prevent a Stroke's Weight From Scaling with the Rest of an Object?

    I want to animate a person moving off into the distance, but while I want the size of the figure to get smaller, I don't want the weight of the lines that comprise the image to scale down, too. I made this little sample of a person skating (poorly) a

  • What software to buy- Shake? After Effects? VisionLab Pro?

    I am looking for an effects/compositing application for effects like muzzle flashes, flames, chroma keying, electricity/lightning etc. I have FCS2 but Motion doesn't seem to do all of these things well. Therefore, what works best? What is easy to lea