WebDynpro Standalone - Redirect in same window

the code below I have a WebDynpro application (standalone). when loaded outside the portal in a browser window without any parameter rendering for mobile clients application should be redirected to the same url + parameter of the mobile client (in the same browser window).
in the code when i fire the outbound plug (Url string parameter) in wdModifyView or doInit, nothing happens!
However i fire with linkToAction it redirects successfuly!
anyone have any suggestions?
if ( ! WDPortalUtils.isRunningInPortal()) {
        String wdClient = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("sap-wd-client");
        if (wdClient == null) {
             String urlApp = this.getUrlApp();     
             urlApp += "?sap-wd-client=Pie03Client";
            wdThis.wdGetMyAppInterfaceViewController().wdFirePlugUrl(urlApp);

It is pretty much the same as what you would do with html...
navigateToURL(new URLRequest("http://www.someurl.com"), "_self");

Similar Messages

  • Open a URL in the same window

    Hi,
    My objective is to open a URL when i click on a webdynpro iView in the same window.
    I created a outbound plug in the InterfaceViewController.
    And wrote this piece of code in wdDoBeforeNavigation() in Component controller.
    wdThis.wdGetExternalComponentInterfaceViewController().wdFirePlugGoToUrl(Url);
    Where "Url" is a string variable contaning the value.
    But when i run this piece of sode it gives exception
    "Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!"
    So what should i do solve this problem
    Regards,
    Paresh

    HI,
    Procudere to create the LogoffURL
    In the Application properties add your URL name.
    LogoffURL = http:
    www.google.com
    1.      Define an exit plug in the interface view of your Web Dynpro component:
                                a.      Enter a name and check the checkbox Exit Plug.
                                b.      Enter the name Url for the parameter and select string as the type.
    This parameter is case-sensitive and must be entered exactly this way.
           2.      In your view, define the action Exit and add the event handler onActionExit().
           3.      In the view layout, define a button and bind its onAction event to the Exit action.
           4.      In your view, define the use of the interface view controller of your Web Dynpro component under Properties.
           5.      Insert the following code in this method of the implementation:
    String logoffURL = wdComponentAPI.getApplication().getApplicationInfo().findInApplicationProperties("sap.logoffURL").getValue();
    wdThis.wdGetTimeCompInterfaceViewController().wdFirePlugExit(logoffURL);
    OR Do u need to generate the URL by using the application?
    Thanks,
    Lohi.

  • Redirect to new URL in same window?

    Hi all - I have a SWF embedded in an HTML file. After the movie has finished playing, I want a new URL to load. I currently have the following code in the final keyframe of my actions layer:
    navigateToURL(new URLRequest(http://www.someurl.com));
    ...which works, but the problem is that it opens up a new window for the new URL instead of redirecting within the same window, which is what I'd prefer. Is there a different command that I can use to force the new link to open in the same window?
    I guess I could use a Javascript redirect within the web page's HTML, but it seems safer to me to use Actionscript within the Flash movie. Anyway - thanks much in advance for any help.

    It is pretty much the same as what you would do with html...
    navigateToURL(new URLRequest("http://www.someurl.com"), "_self");

  • How to navigate from webdynpro view to bsp page in the same window?

    hi i want to call a page by its url.
    i am using the "create_external_window" method.
    but it is displying my url in a new window.
    i want to display it in the same window.
    the second page i want to call is a bsp page.
    i tried also the portal manager and NAVIGATE_ABSOLUTE but nothing happens.
    it displays nothing.
    thanks for your hints.

    >
    Achref zaidi wrote:
    > hi i want to call a page by its url.
    > i am using the "create_external_window" method.
    > but it is displying my url in a new window.
    >
    > i want to display it in the same window.
    > the second page i want to call is a bsp page.
    >
    > i tried also the portal manager and NAVIGATE_ABSOLUTE but nothing happens.
    > it displays nothing.
    >
    > thanks for your hints.
    Hi,
    Navigate_absolute method has navigation mode. Can you please tell me what you mean by nothing happens ? This will work only in Portal environment.
    So if you try with portal then remember to use  Navigation_mode as inplace.

  • Navigate to another page in the same window problem

    Hi,
    I have a problem with the following scenario:
    When a user clicks on a link in a portal, a web dynpro page opens in new window with the url similar to this
    http://server:port/irj/servlet/prt/portal/prtmode/runtime/prtroot/pcd!3aportal_content!2fCompany!2fIntranet_v2!2fApplications!2fZZ!2fPages!2fBrowseCopies
    So basically in this way we only want to display this single application, without portal top level navigation, inner page, masthead etc.
    The problem occurs when we try to implement navigation from this web dynpro application to another page
    When we use WDPortalNavigation a new window opens but we want the navigation to happen in the same window.
    We cannot use LinkToUrl control with _self parameter because its not supported.
    We also cannot use HttpServletResponse by getting it through com.sap.tc.webdynpro.services.sal.adapter.core.IWDWebContextAdapter class.
    We also cannot use ExitPlugs because the error occurs with the message that the ExitPlugs cannot be used in portal.
    Basically I need a redirect to another page. Any ideas how to solve this problem?
    Regards,
    Ladislav

    Hi,
    the link which initially opens this web dynpro application page is contained in a html page.
    Here is the code:
    WDPortalNavigation.navigateAbsolute(
      "ROLES://portal_content/Company/Intranet_v2/Applications/ZZ/Pages/PurchaseRequests",
      WDPortalNavigationMode.SHOW_INPLACE,
      WDPortalNavigationHistoryMode.NO_HISTORY,
      "requestNr="+wdContext.currentContextElement().getRequestNr());
    Regards,
    Ladislav
    Edited by: Ladislav Pomezny on Jul 2, 2009 1:23 PM

  • Flash URL open in same window

    Hello. I have a flash slide on my site. The slide has next and previous buttons to either move to the next slide or the previous slide. Each slide is only an image. When you click a particular image it takes you to the page specific to the image you clicked.
    My issue is this:
    When you click the image, it opens the page in a new window. I would like to have the window open in the same window, but having issues figuring out how to do it.
    The flash is controled by an image.xml script. I've added target= "_blank" to the xml, but the URLs are still opening in a seperate window. Any ideas how to get this done? I didnt create the flash, is it possible the issues lies within the .fla file?
    Below is a sample of images.xml
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <images>
         <pic>
            <image>imagesimage.jpg</image>
            <caption>Some Service</caption>
            <url target="_blank"> http://www.something.com</url>
        </pic>
         <pic>
            <image>images/image.jpg</image>
            <caption>Some Service</caption>
            <url target="_blank">http://www.something.com</url>
        </pic>
        <pic>
            <image>images/image.jpg</image>
            <caption>Some Service</caption>
            <url target="_blank">http://www.something.com</url>
        </pic>
        <pic>
            <image>images/image.jpg</image>
            <caption>Some Service</caption>
            <url target="_blank">http://www.something.com</url>
        </pic>
        <pic>
            <image>images/image.jpg</image>
            <caption>Some Service</caption>
                    <url target="_blank">http://www.something.com</url>
        </pic>
        <pic>
            <image>images/image.jpg</image>
            <caption>Some Service</caption>
            <url target="_blank">http://www.something.com</url>
        </pic>
    </images>

    Ned, thanks for the resonse. I've changed the xml file from _blank to _self, but still openes in a seperate window. In Firefox it opens in new tab. In IE it openes in a completely new window.
    I've cleared my cache, closed the browser, and tried again. Still openes in seperate window. Think its within the action script?

  • Open URL in same window

    Hi All,
    I want to executing a URL ""http://www.google.com" in the init method of the form. I want to open this URL in the same form (window) and not in an external window.
    For external window I am able to use the code
    wdComponentAPI.getWindowManager().createExternalWindow
    Plz suggest sth for opening in the same window.
    Regards
    Nikhil Bansal

    Hi,
    First u have to create outbound plug in interfaceview
    1)Open the node WebDynpro &#8594; Web Dynpro Components &#8594; <ComponentName> &#8594; Component Interface &#8594; Interface Views in that click <interfacename> interface view .
    2) Select the Plugs tab in the Plugs area.
    3)Choose New next to the outbound plug table.create new outbound plug.for example,Name GotoUrl, and choose Type Exit Plug.
    4)Select the new outbound plug GotoUrl and choose New next to the parameter table.taEnter the name Url datatype as STRING.
    5)Open the  view in the View Designer and select the Properties tab. Choose Add next to the Required Controllers table and add the <interface name>InterfaceView
    Place 1 button and check,
    onActionButton write this code
    wdThis.wdGetSampleInterfaceViewController().wdFirePlugGotoUrl(
    "http://www.google.com");
    Message was edited by:
            Suresh T

  • Open UWL items by default in the same window

    Hi All,
    Appreciate if you could let me know if the following scenaio is possible?
    When the user logs into the portal he will be seeing the "Inbox' page which is nothing but a standard UWL iview.
    We have a task(TS001) for example which appears in the "Tasks" tab. Selecting an entry displays the following:
    - Details
    - Logged-On User Information  
    - Current View Information  
    - Current Navigation Information  
    - Current Item Information  
    All these are fine. Clicking on the "Subject" line, results a new window being opened fir the manager to either "Approve" or "Reject" the leave.
    What I would like to do is:
    I want the same window (that has opened in a new window) to be opened by default in the same window just beneath the "- Current Item Information". Meaning, selecting the row, should display the webdynpro iview in the same page rather than actually clicking on the "Subject" link.
    Hope it's not too confusing....
    Appreciate your reply and thanks in advance.
    Cheers,
    Sathya

    Hi Saytha,
    Is opening the workitems by clicking on the subject in the same window an option?  I can help with this.
    Within the xml files you can use the parameter called launch in new window.  You can set this to No so that when you click on the subject of a task, the content that opens, stays opened right in the main part of the portal.
    Here is some additional information about this:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2c/05b15de3864040a9426788a12699b3/content.htm
    Beth Maben
    EP - Senior Support Consultant
    AGS Primary Support, Business Suite & Technology
    Please see the UWL Wiki @
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq  ***

  • Open Web Dynpro in same window

    Hello Everyone!
    We've got a really really big problem.
    We use in our KM a Web Dynpro. In the Image Map we want to call this Web Dynpro and open it in the same window. But at the moment we are just able to open the Dynpro in another window.
    Is there a possibility to open it in the same window?
    Hope that anyone of you, has a solution for our problem.
    Many thanks,
    Isabel

    Hi,
    Please post the URL of your webdynpro application.
    Chk this
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/808fb397-1fcf-2910-7884-8f075c939666
    NavMode parameter determine, whether the application should open in new window or same window.
    mode 0 for internal window,
    mode 1 for external window with content,
    mode 2 for external window with full navigation,
    mode 3 for external headerless window
    http://<host>:<port>/irj/portal?NavigationTarget=navurl://50e00a3ef7d094e3d05ae768f98b8761&NavMode=0
    This link will open in same window.
    Regards
    Baby

  • Opening URL in the same window

    Hello,
    I have a webdynpro Java Application which is opened on the click of the iview which is created for it.....now i want to specify a URL for it which should open it in the same window.....rather than an external window.....how can i achieve the same...? how can i specify the URL in the Default Plug (event handler) of the Interface View Controller.....so that it opens up...
    Any help would be highly appreciated...
    Regards,
    Shikhil

    Hi Shikil,
    use this
    String navigateto="ROLES://portal_content/";
    WDPortalNavigation.navigateAbsolute(
                                                 navigateto,
                                                 WDPortalNavigationMode.SHOW_INPLACE,
                                                 (String) null,
                                                 (String) null,
                                                 WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
                                                 (String) null,
                                                 (String) null,
                                                 (String)null);
    navigateto is the pcd of your iview.
    thanks,pkv

  • Navigate to another application in the same window

    How can I navigate to another application in the same window? I know how to open in a new browser.
    Also, I cannot give a linktourl UI. I have to do it on click of a button.
    I can get the URL. How to go there now?
    Thanks in adv.

    Hi Shweta,
    You can get a URL to a webdynpro application and also navigate to it. I used  below code snippet,
    METHOD onactionclick .
    * Data Declarations
    DATA:
    lr_ref TYPE REF TO ig_ZWDA_APP1,
    str TYPE string.
    *Get the URL of the Application
    CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
        application_name = 'ZWDA_APP2'
    IMPORTING
       out_absolute_url = str.
    *Reference of Window
    lr_ref = wd_this->get_ZWDA_APP1_ctr( ).
    * Fire Exit Plug
    lr_ref->fire_go_exit_plg(
    url = str
    ENDMETHOD.
    u can modify it so that ur current application is not closed or that new application gets launched in seperate browser window.
    Greetings
    Prashant

  • Open pdf files in tabs in the same window

    Hi,
    Could we open many pdf files in tabs in the same window in stead of many standalone pdf files?
    In other word, open pdf files in tabs like in a web browser ! This is very handy feature which is already available in Foxit reader !
    It would a great too in adobe !
    Thanks

    Thanks for your replies.
    It is a great feautre in my view ! Why Adobe doesn't make it enable/disable feautre for who wants it or doesn't?
    I'm planning to switch to Foxit for this feature (it is faster also)!

  • Calling another view in same window

    Hi Expertzz,
          I am new in WebDynpro.I am developing an application in which i am facing an issue regarding Windows and Views.
    I have a window and a main view. How can i call another views in the same window without disturbing my main view..
    Thanks in advance !!
    Regards,
    Abhishek-

    Hi Abhishek,
    In addition, you can have a look at the following links:
    WDJ Wiki pages
    http://wiki.sdn.sap.com/wiki/display/WDJava/WelcometoWebDynproJava%21
    NW Developers Guide 2004s: Creating Your First Web Dynpro Application
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/8ae6abe5-0601-0010-d6b4-c5f129058458
    (there's another version of this doc for NW2004 and another one for CE7.1)
    Hope it helps.
    Regards,
    Dao

  • Several ALV on the same window

    Hi all
    I'm new to Webdynpro ABAP... i've gone trough some of the tutorials on SDN, and done some examples... however I have a question: is it possible to have more than one ALV on the same window? for example, say I have a tabstrip with 3 tabs, could I have an ALV on every tab? how could I do this?
    Thanx
    Jesus

    Hi Jesus,
    Its very much possible to have 3 ALV's on the same window. All you have to do is declare 3 different usage of the ALV components, in the properties of your WebDynpro component.  Since there would be now 3 viewUIContainers for displaying 3 individual ALV's , dont forget to insert ALV views in your components  WINDOW.
    check the below link how to make entry , when using other WD Components
    [http://help.sap.com/saphelp_nw70/helpdata/EN/0e/496ad66c601349a730502d3ea26e05/frameset.htm]
    example
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2e71ce83-0b01-0010-11a4-98c28a33195f ]
    Greetings
    Prashant

  • Report Report Interface open in same Window

    Hi experts,
    I have an WebApplication which can jump to another Query.
    I want that query open in the same window without replacing the WebApplication. I tried all the open modes in WAD but they allways replacing the whole WebApplication or open in a seperate window.
    Has anyone an idea i can do this?
    thanks in advance
    Quan

    Hello Quan,  
    Check the HTML source of the web template and include
    TARGET = _SELF in the <A> tag
    Example
    <A href=your url *TARGET = _SELF*> Report Name </A>
    This will open the new report in the same window.
    [Thanks|http://chandranonline.blogspot.com/]
    [Chandran|http://chandranonline.blogspot.com/]

Maybe you are looking for

  • I need to reset my time capsule/airport every day - time capsule has green light but I don't see any wifi signal on my mac and other computers.

    as many of you do, I use time capsule as airport, too... It worked fine for 6 months or so after I bought the new time capsule. (I bought it in September 2012.) Since the beginning of this year, I had to reset, and power off and plug it in almost eve

  • Re: Column Name as Parameter in Oracle Procedure

    Hi, I've successfully compiled the following procedure: CREATE OR REPLACE PROCEDURE CREATE_MEASURES_IND_RPT(     pSTART_DT                                    IN date ,   pEND_DT                                         IN date   ,   PGEO_DIMENSION_COL

  • [Solved]Slow Music

    I could not find a topic on this before, so I will go ahead and post: My music, using any music player (I tried Amarok, Banshee, mplayer, vlc, gmm) is slower than what it is supposed to be.  It is only a little slower, and barely noticeable, but I no

  • Regarding Screen Exits

    Hi all, In tcode XD02 i want to add 3 fields (account no. , Branch and Bank Details)..In Standard Screen. What is Screen Exit For the XDO2? Can Any One Tell the Step by step process to create Screen Exits. How To work with  Tcodes CMOD And SMOD?

  • Using autoscript to mail turn notices in a game

    Hi, I'd like to host a game of Dominions 3, which is a fun turn-based strategy game. Normally servers are set to host after everyone has taken their turn, or a period of time, and then turn notice is mailed to everyone still active in the game. So i