Determine own Portal Navigation URL within WebDynpro iView?

Hello all,
we do integrate WebDynpro-Java applications in the portal. These applications do run on the same J2EE-engine as the portal (NW04).
The WebDynpro application now should be enabled to determine its own portal URL for deep navigation to this iView. We want to hand this URL over to another (non-portal) web-application. This application will then e.g. provide a back button to allow the user a consistent way back to where he left the portal.
Is there a way to get the portal URL out of the portal context if the iview is a WebDynpro application?
Thanks a lot for your answers.
Lutz

Hi,
The referer should not contain the link of the webdynpro app, rather it should contain the url of the page that called the webdynpro app. So if you have a link at http://www.google.com which points to www.bouvet.no , the referer found in the code at www.bouvet.no will have the value www.google.com (ref http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z14) . If this is usable in your case, depends on what urls the innerpage uses, and wheter the iview frame creates an extra redirect which ruins all data.
Another possibility would be to extend the webdynpro with an iview which first retrieves the current navigation node (you should find several post on how to do this) and then redirect to the webdynpro application with an extra url parameter which you can then retrieve from the HttpRequest in hte webdynpro application. Not 100% sure it will work, and it will create some extra maintenance and complexity.
Dagfinn

Similar Messages

  • Removing jsessionid parameter from url of Webdynpro iview

    Hi All,
             While i create a Webdynpro iview from SAP Webdynpro iview template, the generated url gets appended with the parameter jsessionid as shown.
    http://server:port/webdynpro/dispatcher/local/session/New_app;<b>jsessionid</b>=(J2EE14778100)ID1600385450DB11689045888563713719End
    I don't want this parameter to be appended and exposed in the url of the ivew. Is there any way i can hide/remove this parameter from the generated url?
    Regards,
    Vijay.K

    Hi All,
             I found that, the Webdynpro template which is an App-Integrator appends the parameter jsessionid to the generated URL. So, i tried changing some properties of the system regarding session, but i couldn't remove this parameter from URL.
    I also found that, custom Application integrators can also be developed. So, is it possible to get rid of the jsessionid parameter by developing a custom App-Integrator for Webdynpro application?
    Please help me in this regard.
    Regards,
    Vijay.K

  • How to call Java WebDynpro iViews from Portal (Portal Content Directory)

    Hello everybody,
    I am trying to call a Java WebDynpro iView, which was created within the Enterprise Portal and is stored in the portal content directory (pcd).
    I have created an HTML-iView in VC, where I have put in the pcd-link into the default-url field (pcd:portal_content/com.sap.pct/every_user/com.sap.pct.cprxrpm.ppmdc/com.sap.pct.cprxrpm.iviews/com.sap.pct.cprxrpm.iviews_cprojects/com.sap.pct.cprxrpm.cpr_projects). This iView is calling the cProjects WebDynpro Application. But after I run my model, the portal page is running and running, but nothing happens.
    I did the same with transactional iView, which was also created in the Portal before. I have also created an HTML-iView in VC, where I have put in the pcd-link into the default-url field (pcd:portal_content/IBU_content/SAP_for_Service_Provider/com.sap.pct.issp.ps.professional_services/com.sap.pct.issp.prs.iviews/com.sap.pct.issp.prs.display_sd). This is working fine!
    What I also tried is to call another VC-Model with an HTML-iView. Here I have put-in into the default-url field the pcd-location of my VC-model (pcd:portal_content/IBU_content/SAP_for_Service_Provider/com.sap.pct.issp.vcmodels/com.myComp.myProduct.1DM9.CreateEngagement/com.myComp.myProduct.iviews/com.myComp.myProduct.1G62.Cprojects_neu). This is also running fine!
    Now I do not understand the difference between this three objects. There are all iViews within the portal but the WebDynpro iView is not callable through a HTML-iView in VC.
    Could you help me in this case? Your help is very appreciated!
    Thank you in advance.
    Best regards,
    Aylin.

    Hi Marcel,
    when you mean the preview within the portal, yes, it is working fine.
    URL is not the way to solve my problem. I am working with IDES-Systems. This is our Demo System within SAP. I have to build my VC-Model in a Master IDES-System which will be transported than into the other IDES-Systems. The URL of the WD is not the same in the other systems. It is changing depending on the several Sysems. But the pcd-location is in all systems the same. Therefore I have to specify the pcd-location of the application.
    Is there a restriction with WD within VC?
    If we can do some kind of a netmeeting, I can show you my problem exactly.
    Thank you.
    Regards,
    Aylin.

  • Open Webpage in portal as java webdynpro iView

    Hi Experts,
    I am trying to find the way to open Webpage in portal as webdynpro iView. Do any one know how to do this using webDynpro programming. I promise to award point for the answers. Please help.
    Thank you && Regards
    Maruti CR

    Hi,
       You have 2 options:
    1. Create an URL iview and on evaluation of the condition in WD fire a portal navigation to this iview. This would also mean that the URL needs to be static.
    2. You can use the suspend-resume mechanism in WD. You can find more information [here|http://help.sap.com/saphelp_nwce10/helpdata/en/68/3aee42c4257176e10000000a1550b0/frameset.htm].
    Regards,
    Satyajit.

  • Webdynpro iView link to role specific iView  Navigation

    Hi Friends,
    I have links in my WebDynpro iView.
    When I click on Link, I get popupwindow.
    in one role, user will be able to see the popup in editable form
    in another role, user will see the popup as displaying information only.
    This iView  needs to be integrated in Portal.
    How should it be done:-
    1. create two iView's:- one with display popup, another with editable popup window on click of the link.
    in this case, two iView's will be created , and will be integrated in portal with different roles.
    2. create one iView.. common.
    and, instead of popup, create another IView.
    in this case, how to access another iView of link clicked window... to display popup one for display, another for update.
    in this case.. first page will be common for both roles, the second iView.. will be different
    If want to implement in this way, how to access another iView as per role from the link of an iView.
    Nav
    Message was edited by: Nav

    Hi Nav,
    Check with this helpful links,
    Portal integration with webdynpro:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/2fffe990-0201-0010-aab0-e61c3250bcf3
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62
    step by step process of portal eventing.
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/portal-components/how%20to%20program%20portal%20eventing
    Navigation Between Web Dynpro Applications in the Portal:
    http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm
    Regards,
    Vijayakhanna Raman

  • Calling a portal page in webdynpro iview.

    Hi Portalites,
    I have developed an webdynpro iview, where it will call other uwl page inside the code.
    This iview is placed in home role(like welcome page).
    in wddoinit method, i have written the code,
    where portal users locale is set to English.and then it will navigate to UWL using WDPortalNavigation method.
    WDPortalNavigation.navigateAbsolute("ROLES://uwl_page",
    WDPortalNavigationMode.SHOW_INPLACE,
    (String)null,
    (String)null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
    "UWL",
    (String)null,
    (String)null);
    Iam able to view the UWL in Home page, but after that if i  click on any user admin, or content admin roles, and agian clicking on home page again or refreshing the page it is showing previous navigation path in top level navigation but in content area it is dispaying uwl.
    Let us clearly expalain, first i have opened portal, home page opened with UWL page in content area.after that i clicked on sytem admin> sytem configuration, after that when i cliked on home role again in TLN, in the TLN it is highlighting system admin>system config but displaying UWL in content area.
    In the detailed navigation, it showing all iviews what home page has.
    Please advice.
    Thanks
    Sony.

    Try setting its contextURL property in WDPortalNavigation(...).
    For info :
    [http://help.sap.com/saphelp_nw70/helpdata/EN/c3/235a428a1e9041e10000000a1550b0/frameset.htm]
    -Abhijeet

  • Calling an Portal Webdynpro iView from another Webdynpro iView - Error

    Hi,
    I have modified the DefaultFramework Page by adding an Alert iView (based on WebDynpro) and assigned this modified framework page to all users. It works fine.
    The Alert iView on the Left hand side (right above the Detailed Navigation) consists of links to different WebDynpro iViews in the same Portal.
    I have used LinkToAction UI element, on event of click
    i am executing this piece of code.
    onActionClick (com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
    WDPortalNavigation.navigateAbsolute("ROLES://portal_content/folders/X.Iview", WDPortalNavigationMode.SHOW_INPLACE, (String)null, (String)null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS, "Called iView Name", (String)null, (String)null);
    I have picked up the iView name from the Portal(exact PCD location).
    It is not working. Once in a while it worked. But now it is not loading at all.
    Please let me know your thoughts on the same.
    Thanks
    Senthil

    Hi,
    Got it solved. User has authorization to execute the page.Their roles were not added in Permission list of that Page.
    Added the roles. Now it works fine.
    Thanks
    Senthil

  • Submit a webdynpro IView from a non-Portal application

    Hi,
    i have create a WebDynpro application. This application shows in a table a list of '. This reports are IView for Bex Web Application in a SAP portal. For navigation to this BW IView the WebDynpro application must be also embedded in a WD iView.
    The problem is:
    This WD IView will be requested by a non-sap/portal application with dynamic parameters and also with the POST method.
    In the WD application i have implemented the parameter request with following code:
    int i = 1;
    String name = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("var_name_" + i);
    If the non-portal application submit the WD application directly -> the parameters are available.
    But when the non-portal application submit the WD IView, then the Parameters are 'null'.
    Thank you for quick response
    Anne

    Hi,
    yes I'm use the statement to submit the iView:
    <form action="http://server:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea?NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.kwl.kwl-01.KWL-01%2Fcom.kwl.kwl-01-iviews.KWL-01-Iviews%2Fcom.kwl.WEB_DP%2Fcom.kwl.IW_GISBW&DynamicParameter="
    method="post">
    var_name_1<input name="var_name_1" type="text" value="ZHAMFSB"><br>
    var_value_ext_1<input name="var_value_ext_1" type="text" value="129191"><br>
    var_name_2<input name="var_name_2" type="text" value="ZHAMFSB"><br>
    var_value_ext_2<input name="var_value_ext_2" type="text" value="129761">
    <input type="submit" value=" Senden ">
    In this case the DynamicParameter will be send by GET.
    But i want use the POST Method.
    I get the parameters in both cases not in my WD application.
    What is the problem?
    Thank you
    Anne

  • Navigation Target : Nav URL : Accessing an Iview directly

    Hi,
    I have a BI portal as producer fedearetd to NWP consumer.
    I want to provide a direct URL of an iview located on producer portal  to the customer accessing consumer portal.
    I can see there is this way, creating a nav URL...but not sure how can I do that?
    http://<xyz>/irj/portal?NavigationTarget=navurl://<f1bfd4df279ecf27d95ce39cd28d307c>
    can anyone please guide,
    How to access producer portal iview directly on consumer portal
    How to get the nav url ie. <f1bfd4df279ecf27d95ce39cd28d307c>...what is this keycode stands for?
    Awaiting reply!
    Thanks,
    Smita Thorat

    Hi Smita,
    As shown below, the PCD path of the portal object is the Navigation target.
    http:/myServer:50000/irj/portal?NavigationTarget=ROLES://portal_content/myFolder/myRole
    This can be hashed and shortened to form the Short URL as shown below
    http:/myServer:50000/irj/portal?NavigationTarget=navurl://b3d6d9ebac16a46574d62757803b05d4
    Short URL can be enabled and disabled depending upon the requirements.
    Check the links below for detail description to enable short URL:
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/43/014421d21d6fade10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/49/330b66fd695aa8e10000000a42189d/frameset.htm
    Hope it Helps.
    Regards,
    Khushboo

  • Error in WebDynPro Iview in portal.

    Hello All,
    I have to create WebDynPro ABAB Iview to display the Application created in the same.
    I have followed this Blog
    Creating WD-ABAP iView and the WD Namespace
    and steps taken are.
    1) Created System with R/3 Credentials and System is Up and running.
    System Name:: CoP
    System_Aliase:: CoP_Aliase
    2) Now i have created one WebDynPro Iview and on the Application Parameter Page which is in the wizard of Iview creation i have done thease entries.
    System:: Cop_Aliase
    Namespace:: sap
    Application Name ZRAH_TUTORIAL2
    and created Iview now When i see Preview of this Iview am getting this Error.
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Application URL ':///sap/bc/webdynpro/sap/ZRAH_TUTORIAL2/;sap-ext-sid=CiOljEJTkrTNS5ZSeEZtwA%3D%3DY3EU8GM3SofqGxk%2B6%2BWHWg%3D%3D' is not valid! Please check the protocol and host entries for system 'CoP_Aliase'..
    See the details for the exception ID in the log file
    What can be the cause of it and how can i get rid of it.
    Any help  will be highly Appretiated and will be rewarded for sure.
    Thanks and Regards.
    Vinit

    Hi Vinit,
    It seems that there should have been issue with the connection from portal to your ECC system.
    Can you please close the thread and also post the solution so that it is useful for others.
    Regards
    Mukesh

  • WebDynpro IView URL

    HI All
    I have individual webdynpro iview URL and If I type this URL in browser address bar its prompting for portal user name and password.But I donot want to get this username and password entered. Is there any way that if I type iview URL in address bar of browser and iview should open without asking for portal username and password.
    Any suggestions will be appreciated.

    HI,
    IF u know what the name of the user is on the portal, just append name=<portal user name> and the end of the '?' in the URL. This will work.
    Do tell me if it works or u need any further help.
    Thanks & regards
    Gita

  • Pass parameter from dynamic navigation iView to WebDynpro iView

    Hi All,
    I know there are a lot of threads dealing with passing paramters from EP to WebDynpro using EPCM but actually I didn´t find a solution for my problem.
    I have in the dynamic navigation area of the SAP Portal an iView based on a JSP dynpage. In the corresponding JSP I fire an EPCM-event:
    EPCM.raiseEvent("urn:test.de:wochenb" , "passDataToWebDynpro" , evtData);
    In the content area there is a WebDynpro iView. In this WebDynpro-application I subscribe to the event in the wdDoInit-method of a view:
    WDPortalEventing.subscribe("urn:test.de:wochenb" , "passDataToWebDynpro" ,wdThis.wdGetDataFromJSPDynpageAction());
    and I have an event-handler:
    public void onActionDataFromJSPDynpage(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject )
        //@@begin onActionDataFromJSPDynpage(ServerEvent)
         IWDMessageManager manager = wdComponentAPI.getMessageManager();
         manager.reportSuccess("EPCM event testing " + dataObject);
      //@@end
    My problem is now that the event is fired correctly by the JSP Dynpage but the event-handler of the WebDynpro is never executed.
    As info: the domain of the J2EE-Server the webdynpro-application is deployed to is identical to the J2EE-Server the portal runs on.
    Can anybody help ?
    Thanks !
    Bernd

    Hi All,
    I found the solution by myself.
    For information: Click in the dynamic navigation fires the event und forces the content afterwards to refresh. During the refresh the WebDynpro subscribes to the event in the wdDoInit-Method. This is to late because the event is fired before the refresh.
    My solution is to use a setTimeout before the event-triggering in the dynamic navigation iView.
    Regards,
    Bernd

  • Replace an iView dynamically by another one by portal navigating service

    Hi all,
    A portal page to integrate several kinds of contents is in general the best way.
    But how can you handle dynamic replacement of an iView of a page (the page contains more than one iView) by another one by using the Portal navigation service of the WebDynpro Runtime? If I navigate to the target application with mode WDPortalNavigationMode.SHOW_INPLACE, the content of the page at all is replaced by the target iView. Is there a possibility to access/replace only the desired iView of the page?
    Thanks.
    Cemal

    Hi Laurent,
    this is no possible with WebDynpro except the IFRAME - UI - Element of the webdynpro. But the iframe ui-element is declared as deprecated for future releases.
    The solution is a portal component with an embedded html-iframe. The src - attribute of this iframe can be filled dynamically by the portal eventing.
    You create a dynpage as a event receiver. This fills the src-attribute of the html-iframe by the event param dataObject.
    The code below can help you:
    Create output. Called once per request.
              public void doProcessBeforeOutput() throws PageException {
                   Form myForm = this.getForm(); // get the form from DynPage
                   IPortalComponentRequest request = (IPortalComponentRequest)this.getPageContext().getRequest();
                   String Output =
                        "<iframe id='LauncheriFrame' src='' width='100%' height='100%' margin='0' padding='0' frameBorder='0'></iframe>"
                             + "<script>"
                             + "function <eventhandler>(eventObj){"
                             +"document.getElementById('LauncheriFrame').src = eventObj.dataObject;"
                             + "}"
                             + "EPCM.subscribeEvent('<namespace>', '<Eventname>', <eventhandler>);</script>";
                   this.getPageContext().write(Output);
    I hope that helps you.
    Cemal

  • SAP Portal Network - WebDynpro iView and SAP Application iView sharing

    Hello All,
    I've read about the restrictions in SAP Portal supporting the WSRP standard for application sharing. Mainly WebDynpro iViews and SAP application iViews sharing is not supported. That is in the case of a SAP Portal as producer and Non-SAPPortal as consumer.
    I'm interested in a WebDynpro iViews and SAP application iViews sharing in a only-SAP Portals Network, where SAP Portals act as producer and consumer.
    I've heard about the Remote Role Assignment and Remote Content Copy that are used in such case. I would like to ask if anyone knows if these can help overcome the restriction in sharing WebDynpro iViews and SAP application iViews that is present with WSRP? And if the advantage of WSPR, that is the application execution and rendering on the producer side, and as follows decreasing of bandwidth usage, is remaining in the case of the Remote Role Assignment and Remote Content Copy.
    Thanks,
    Mladen

    Hi Manish,
    for sharing content between SAP and non-SAP Portals, your case, refer to
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/23fb36cad10d23e10000000a1553f7/frameset.htm
    All the possibilities and restrictions of WSPR in the case of SAP EP are explaind there.
    For sharing content between only SAP Portals refer to my other thread:
    Portal Network - Content Sharing
    Hope it helps you!
    Mladen

  • WebDynpro ABAP and Portal Navigation problem

    Hi all,
    I've a problem with triggering Portal navigation from a custom WD4A application.
    The request is to have an "Exit" button implemented and if pressed, the portal goes back to the top page:
    --> Search
       --> Kind of Search
          --> WD4A -> Exit goes back to "Search"
    I've tried using absolute_navigation/relative_navigation methods from interface if_wd_portal_integration, but they do not work at all.
    It seems that the portal totally doesn't care about the request and remains still.
    Methods are called passing the PCD of the "Search" page (i've tried even with the ROLES).
    Anyone has an idea?
    By the way, I was thinking about raising some kind of "standard" event like "navigate" or something...I don't know if it's applicable.
    Thanks in advance,
    R.

    Hi,
    If you are navigating from one WD Application to another you can either use URL or Object Based Navigation.
    In URL Method you can call the target application from the source application.
    You can create the method in the Window of WD Component.
    You also need to create exit plug (outbound) with parameter url (type string) and specify the plug type as Suspend.
    Trigger this method as desired by you in your application.
    CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = 'TARGET_APPLICAITON_NAME'
        IMPORTING
          out_absolute_url = lv_url.
    CONCATENATE lv_url '?sap-client=' sy-mandt '&sap-language=' sy-langu '
      INTO        lv_url.
      wd_this->fire_exit_plg(
        url = lv_url                              " string
    Thanks
    Vishal

Maybe you are looking for

  • Can i install windows 8 on my mbpr using boot camp assistant?

    can i install windows 8 on my mbpr using boot camp assistant? pls help

  • Sync/Async bridge

    Hey My task is to have an Idoc sent to a Web Service. I have heard that this can be solved using a sync/async bridge in BPM, but from what I can read (help.sap.com) it always say that the first receive step is from a synchronous application. My quest

  • What's the problem of  uploading file in this code

    hi, i have written following code for uploading a an image file. But when i run this pogram in Eclipse3.1.2 then it shows following Error: I have written following file for selecting a file <body> <form action="display.jsp" method="POST" enctype="mul

  • How do I edit Sort Programme in iTunes 12?

    I used the Sort Programme field in iTunes 11 as a user defined field. The field still exists in iTunes 12 but I can't edit it via Get Info. I can edit it track by track in List view but I can't find a way to edit multiple tracks together. Can anyone

  • How to use a Third Party DAQ evaluation board/ module

    Hi to everyone,  This question may have occuerd earlier but I have never got a clear and direct answer for this. ISSUE : I have a High Speed DAQ module DC1371A evaluation board from Linear technology [ http://cds.linear.com/docs/Demo%20Board%20Manual