Portal Eventing: communication betn BSP - WD iView

Hi All,
i am doing portal eventing between WD Abap iView and BSP iView with the help of blog <a href="/people/thomas.jung3/blog/2005/12/15/portal-eventing-a-solution-for-global-peace-and-harmony:///people/thomas.jung3/blog/2005/12/15/portal-eventing-a-solution-for-global-peace-and-harmony.
i have created page which has both iViews.
but i am not able to trigger the event from BSP to WD.
please suggest me some direction regarding this.
Regards,
Chandra

Hi,
the domain is the first part in your URL, for example www.sdn.sap.com.
In your case it will probably the hostname of your computer.
The reason for this is security. The portal eventing is build in Javascript and in Javascript it is not allowed to access other frames that are not in the same domain.
Best regards
Renald

Similar Messages

  • Portal Eventing between Web DynPro Java iView and non-Web DynPro iView

    Dear Experts,
    I have 1 Web DynPro Java iView and 1 non-Web DynPro (using JSPDynPage and JSP) iView, both attached to a page. When Web DynPro Java iView fire a portal raise event, the portal iView did not execute the javascript function tied to the event subscribed.
    Here is the code snippet which reside in the Web DynPro Java iView that is used to fire the event
    String param = "test";
    WPortalEventing.fire("urn:com.company.Test1", "TestEvent", param);
    This the code snippet that is in the jsp page
    function notifyTest(param)
         // Code to print param value here
    EPCM.subscribeEvent("urn:com.company.Test1", "TestEvent", notifyTest);
    Note:
    1. When Web DynPro Java iView fire the portal event the entire page is refreshed, including the non-WDP iView.
    2. When EPCM is replaced with window.top.EPCM, the page is refreshed, it is totally hanged with progress bar.
    Can anyone help to solve this problem?

    hi
    Please write the below code snippet in ur jsp for notifyTestjavascriptfunction
    function notifyTest( eventObj ) {
         eventParameter=eventObj.dataObject;
         // code to print the parameter "eventParameter"
    Thanks
    Harsimran

  • Portal eventing between bsp and VC

    Hi everybody
    I need to use portal eventing to have a bsp and a VC iview communicate.
    The bsp iview should be displayed within the VC iview as html view, raise a portal event with some sort of parameters inside, and then be dynamically hidden by the main iview.
    I have often read about VC and bsp exchanging signals when belonging to the same page, but will this work even with bsp iview within VC iview? Has anyone ever achieved this?
    thanks
    Vincenzo

    Hello Vincenzo,
    It won't work, since the html view is implemented as an iframe on top of the model. If you want to use portal eventing, you should have the iViews inside a portal page which acts as a container and you also have the entire portal framework working for you.
    Regards,
    Natty

  • Portal eventing between pages

    Hi,
    I read around that portal eventing can be done only on the same page and not between pages, is this correct? if so, how do we make events between pages after all?
    Thanks in advance,
    Aviad

    Hi Aviad,
    Portal eventing takes place between different iviews of the same page only.
    To pass between values between different pages, you can store the required value in a Portal Request object or Session object.
    Also you can refer to this link,
    iView to iView communication with EPCF
    This link  contains the code to establish connection between pages .Finally obtaining paramaters through request.getParamater().
    Hope this helps,
    Regards
    Uma.
    Note: It will be better from next time if you could post portal related queries in the EP forum to get quicker responses and ep related guidances.

  • Portal eventing in a cross domain system

    Hi,
    I have facing a problem in my project. We have both Java web dynpro iviews and ABAP iviews. The portal server is installed in the daomain <system>.blrl.sap.corp and the ABAP web dynpro applications are runnning in the Back End server which is there int eh domain <system>.wdf.sap.corp.
    We use portal eventing to navigate from ABAP iviews to Java iviews. But from t he portsl server if i click any button(which supposed to take us to ABAP iview) it is not opeing the ABAP iview. But if a portal server running in the same domain, <system>.wdf.sap.corp, the iviews are opening correctly.
    Please let me know if you face this problem and the solution exists.
    Kind regards,
    Ramesh.

    Hi
    Currently you have two domains, wdf.sap.corp and blrl.sap.corp. You will not be able to use the portal eventing because this is classed as cross site scripting and is not allowed due to security restrictions of browsers. However, because the two URLs you mentioned are in the same sub-domain, sap.corp, then there is a work around. You will have to relax the domain of both servers. This is configurable in the portal (although I can't remember from the top of my head). The same would have to be done for the environment for the web dynpro applications.
    I hope this helps a little
    D

  • Clarification on Portal eventing

    Hi,
    I found this documentation
    http://help.sap.com/saphelp_nw04s/helpdata/en/f6/7d6f4151dc5758e10000000a1550b0/frameset.htm
    This has the following text
    "All participating events must also belong to the same domain."
    I am unclear what domain is being talked of here. I am trying to use portal eventing to communicate across 2 iViews in a page one belonging to WD Java and another WD ABAP.
    Please can someone clarify.
    Regards,
    Sabarish

    Here browser feature will restrict to event in other opened session.
    session variable will be associated with entire session only it can't be overlapped with other.
    Same domain is correlating with opened session only . So all event will be triggered through current session.
    Regards,
    Ashish Gautam

  • Settings Portal eventing - WebDynpro for Abap iView communication

    To connect two WD4A's using portal eventing; what work is to be done inside the portal environment.
    All manuals on SDN provide information action to be done within WD4A, Do we need to configure/set values in the Portal environment at al...

    Hi Marco,
    Check the url:
    [help.sap.com - Client-Side Eventing|http://help.sap.com/saphelp_nw70/helpdata/EN/ce/3e98408d953154e10000000a1550b0/frameset.htm]
    Best regards,
    G. Leurs

  • Portal eventing between Java WD iview to ABAP WD iview?

    HI Experts ,
    I have requirement on which,
    The manager can select an employee from the EE Search iView (Object and Data Provider). All other iViews react on the selection and display data of the selected employee. Technically the personnel number is transferred from the search iView to the other iViews on the portal page, also to the related activity iView. This mechanism is called Eventing. The applications, started via the related activity iView, are launched with the personnel number as parameter. With other words the application, e.g. Manage Objects on Loan, can be directly started for the employee selected from the EE Search iView.
    The Employee Information page is based on WD Java whereas the Objects on Loan application described in this specification is based on WD ABAP...........Due to different technologies used how to do the Pernr number transfer between these iviews?
    If anybody have done this let me know the steps
    Thanks in Advance,
    Dharani

    Hi Dharani,
    You can use portal events to enable iViews running on the same page to communicate with each other. You just have to find out which event is fired by the WD Java iView and then you will have to register and handle the event in your WD ABAP application : http://help.sap.com/saphelp_nw70ehp1/helpdata/en/f6/7d6f4151dc5758e10000000a1550b0/frameset.htm
    You can use HttpFox (firefox plug-in) to find the details of the fired event (name, namespace...) by looking at the eventQueue parameter in the HTTP POST request.
    Regards,
    Pierre
    Edited by: Pierre DOMINIQUE on Jul 9, 2009 11:16 AM

  • Portal eventing between WD java and BSP popup

    Hi guys,
    I have a WebDynpro application that opens a BSP popup like that :
    WDPortalNavigation.navigateAbsolute(
              wdContext.currentURLElement().getEvaluationURL(),
              WDPortalNavigationMode.SHOW_EXTERNAL,
              "directories=no location=no menubar=no resizable=yes status=no toolbar=no",
              "evaluationdeformation",
              WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
              urlParam.toString()
    When the popup is closed, I want to update the content of my webdynrpo application. I tried using portal eventing but it didn''t worked because the popup doesn't seem to know its opener....
    Is anybody have an idea ?
    Thanks in advance.
    Julien.

    Hi Julien,
    have you made sure that your BSP application is using EPCF? There is a flag you need to set to X in your BSP app for this to take effect. Also, you can not add javascript to a WD app, so calling the window.opener will not make any difference. However, you can subscribe to an event raised by another application in your WD app. It is possible to raise events between windows, one being a bsp and the other a WD or portal application. Check the following threads.
    [Portal Eventing: EPCMPROXY calls between two browser windows;
    [Client side eventing between MSS teamviewer and BSP application;
    Cheers,
    Dion

  • Portal Eventing between WDP Java iView & non-WDP iView

    Dear Experts,
    I have 1 Web DynPro Java iView and 1 non-Web DynPro (using JSPDynPage and JSP) iView, both attached to a page. When Web DynPro Java iView fire a portal raise event, the portal iView did not execute the javascript function tied to the event subscribed.
    Here is the code snippet which reside in the Web DynPro Java iView that is used to fire the event
    String param = "test";
    WPortalEventing.fire("urn:com.company.Test1", "TestEvent", param);
    This the code snippet that is in the jsp page
    function notifyTest(param){ 
          // code to print param value is here
    EPCM.subscribeEvent("urn:com.company.Test1", "TestEvent", notifyTest);
    Note:
    1. When Web DynPro Java iView fire the portal event the entire page is refreshed, including the non-WDP iView.
    2. When EPCM is replaced with window.top.EPCM, the page is refreshed, it is totally hanged with progress bar.
    Can anyone help to solve this problem?
    Edited by: CloudSOmnislash on Apr 8, 2009 6:06 PM

    Kumar, Rui,
    I have all my code inside a web dynpro component. All that I have in dynpro to work with (or that's what I know so far) is a WDPortalEventing object that I can use to access the fire, subscribeEvent and unsubscribeEvent methods. I still haven't found a way to get to the actual EPCM object that the Portal runtime gives you through javascript. And even if I get there, how am I supposed to write javascript in my dynpro code and later pass the value stored in the client data bag to the web dynpro context ?
    Simon,
    I had tried a small app yesterday and it didn't work when the iViews were not assigned to the same page. I will see if I can change my code anymore and get it working. I will make fresh posts to this thread as and when I find anything that works. In the mean time, if you have webdynpro iViews that talk to each other across pages, do let me know how you are doing it!
    Thanks for your replies...
    - Navneet.

  • Can a SAP Gui iView raise a portal event?

    Hi Folks,
    Can anyone tell me if a SAP Gui iView can raise a Portal Event via the EPCF (or equivalent)? I seem to remember reading a blog on this way back but my sleep deprived mind could be deceiving me?
    Thanks a lot,
    Dan

    I don't think so. I think there was a hack a while ago about making it a target by wrapping webgui inside another frame, but not as an event raiser.

  • BSP: How copy received portal event string to ABAP-Page-Attribute variable?

    Hi,
    I am able to receive and display portal events (EPCF API) with the following code:
    <SCRIPT src="epcfproxy.js"></SCRIPT>
    <script language="javascript">
    if(window.document.domain == window.location.hostname){
    document.domain = document.domain.substring(document.domain.indexOf('.')+1);
        EPCMPROXY.subscribeEvent("urn:com.sap:BWEvents","BWiViewevent", window, "myreceiveEvent");
    function myreceiveEvent( eventObj ) {
       alert("event received:" + eventObj.dataObject );
    But now the received data is only stored in Javascript-"variables".
    How can I copy the received string to ABAP variables? These variables will be declared as Page Attribute (e.g. rec_event_data  TYPE STRING)
    Is my Javascript-solution a good way to handle portal events or are there better solutions?
    Thanks a lot.
    Regards,
    Henning

    Hi,
    yes I was able to do it.
    The code should be something like this. I can not test it at the moment.
    function myreceiveEvent( eventObj )
            document.form1.rec_event.value = eventObj.dataObject;
            document.form1.submit();
    <htmlb:form id="form1">
          <input type="hidden" name="rec_event" value="">
    </htmlb:form>
    Event Handler: OnInputProcessing
    rec_event_data = request->get_form_field('rec_event').
    Regrads,
    Henning

  • Portal Session content in BSP

    Hello,
    My BSP inside an iView is located in the xRPM content. What I now try to achieve is, to hand over the chosen project-id from the portal to the BSP - iView.
    request->get_cookies provides me with the cookie "sap-appcontext", which I think contains the portal session-id. Since BSP has it's own session-id, I somehow have to get the session - content of the portal, where I hope, the chosen project-id is stored.
    Am I on the right way?
    I would appreciate any help or suggestions.
    Thanks in advance.
    Daniel

    <i>How can I register such an event inside xRPM-content without modifying the standard-source? Or how can I find out, if there's an event fired I could use?</i>
    I see no real easy way. I have never seen the source code of xRPM, and know no developers inhouse to ask directly. Effectively portal eventing is just JavaScript code. To see if xRPM supports any events, why not look at the outputted HTML. Look for anything to do with EPCM, or search for events.
    <i>It's hard to understand, why it's not possible to access session-information of the portal from a BSP started in the same page...</i>
    What exactly session information do you wish to know. From my understanding, you have a BSP running inside the portal. Inside this BSP application you wish to know something. I assume not exactly session ids, but some other information from the portal. Maybe this helps us.
    At the low level of HTML is might be easier to understand. The portal renders the HTML page, and then starts the BSP inside an <iframe>. The BSP does not know anything about the surrounding environment. Of course you could use JavaScript to walk up the dom (document.parent) and look at things inside the other frames. But keep in mind you are in the browser, and not on the portal server, not in the ABAP stack (where BSP is). So you can only look at rendered code. And this can (and will) change per SP.
    At the end of the day it is all plain HTML in your browser, and this are what sets your limitations.
    brian

  • Java Portal Event not received correctly by ABAP Webdynpro

    We have a page that contains 2 iviews. 
    iView 1 contains the MSS Employee Search that raises portal event:
    Namespace: "urn:com.sap.mss.employeesearch"
    Name: "selection_changed"
    The second iview contains an ABAP Webdynpro program that subscribes to the Portal event. 
    The issue is that the event in the ABAP webdynpro is not being triggered.  It does get triggered if we first fire the event from the Java program, unsubscribe the event in the ABAP program them subscribe to the event in the ABAP program.  The event gets triggered at this time and the parameter can be retrieved. 
    If the event is fired a second time, nothing happens in the ABAP program. 
    The abap program works fine when another abap program triggers the same portal event.
    Also, the portal event is being picked up correctly by other SAP delivered JAVA programs.  I just cannot get a custom ABAP Webdynpro program to work...
    Any ideas, comments?
    Glenn

    Hi Glenn,
    Are you using https? Is your j2ee stack and abap stack in the same domain? In the past I have found that https can cause issues in the event communication between different applications.
    Cheers,
    Dion

  • Portal eventing and Navigation in Federated portal environment

    Hello Experts,
    We have developed our portal content in Web Dynpro Java and it has been used in portal framework.In Some of custom web Dynpro applications,we are using portal eventing for communication between different iViews on a same  Page and Portal Navigation APIs to navigate to different portal object.
    Now We want to integrate all these portal objects(Mainly Custom web Dynpro applications without EP masthead,TLN,Desktop inner page ..etc) with Oracle portal.I want to know if we can use portal eventing when applications are integrated with Oracle porta or an other non-SAP portal or is there any other way to achieve the same.
    I have gone through some of the SAP documentation and it is stated that Portal eventing will not work when applications are integrated with non-EP portals.
    Any thoughts??
    Thanks in advance.
    Thanks,
    Naidu

    Hello Koti Raddy,
    Thanks  for your quick replay.I didn't understand exactly about custom framework page that you have mentioned.I am not sure what is purpose of framework page when i want to integrate all  portal Pages(consists of Web Dynpro based iViews) in non-SAP portal.
    We are going to use Navigation panel of non-sap portal and i want to integrate SAP portal pages in Oracle portal.
    I could able to use individual web Dynpro applications Urls in Oracle portal using iFrame portlet,but portal eventing is not working with this approach.
    As far as Authentication is concerned,we dont have any issues.it is already in place.
    Thanks in advance.
    Thanks,
    Naidu

Maybe you are looking for

  • Crystal report for Balance sheet from ECC6.0 directly

    各位专家, 现在我想用水晶报表编制资产负债表,我们公司是直接连接ECC6.0 的表的.一般 ABAP 都是FAGLFLEXT表中取值的. 但应用水晶报表,我在循环取数方面遇到了困难,选择专家或公式都很难多次对一个字段取数.不知道大家有没有这方面的经验可以分享,或者有好的例子,让我参考一下. SAP 提供了一套模板,但是基于BW的,无法应用到 直接从SAP ECC6.0 表里面取数的. 谢谢 Benson

  • Upgraded Call Assistant not working

    The other day when I went to check the call assistant it required an upgrade so I let it run. Now when ever I get a call it does not show it as incoming nor does it show anything in the log. Does anyone know why it is not working?

  • DG broker config file not created at standby site

    hi, i am trying to configure dataguard for primary db(10.2.0.1) , standby is created as stby for observer i have configured a third node , i have made the TNS entires and checked the connectivity when i had issued Alter system set dg_broker_start=Tru

  • Can't Install On This Computer message...

    Hello All - A few months ago I purchased a refurbished PowerBook from the Apple website. It came with OS 10.3.9 installed, but the disks for Tiger were sent with it. (The disk states it's the PowerBook G4 OS Version 10.4 AHT Version 2.5 and disk vers

  • Need help with a serious problem!!!!

    i got a visa gift card and i put it on my account and bought some songs with it, and i guess i didnt realize how much money i had on it and bought another song. when then i went to go download a FREE app it takes me to a  billing info screen and i ca