Portal Eventing now working!!

Hi ,
I am following sap link for portal eventing: http://help.sap.com/saphelp_nw04/helpdata/en/cf/18721b4079334cac4a3bd3862b185b/frameset.htm
1)I am facing problem passing data from Sender to Listener iview , however when i hardcode the value in Listener iview then it shows value(it suggest that portal eventing is taking place but data is not passed)
2)Is there a problem with Namespace. from where i can find namespace of my webdynpro application ?
Thanks in Advance,
Regards
Hemant

Hi,
Please post some code on how you have done this.
There aren't a lot of relevant logging on the server, since the portal eventing is done client side on your browser using javascript.
Dagfinn

Similar Messages

  • Portal event not working

    Hi,
    I am try to handle portal event in my WD ABAP i view. The event is fired by WD Java team viewer iView in MSS. What I want is when someone select an employee from team viewer iview from MSS, my WD ABAP iview should react accordingly.
    I check SAP note 1112733 for corresponding solution to handle event but it didnt worked. My WD ABAP application is not able to subscribe to the event.
    I wrote the following code in WDINIT method of my view
    DATA: l_api_component  TYPE REF TO if_wd_component,
            l_portal_manager TYPE REF TO if_wd_portal_integration,
            view TYPE REF TO if_wd_view_controller.
      l_api_component = wd_comp_controller->wd_get_api( ).
      l_portal_manager = l_api_component->get_portal_manager( ).
      view ?= wd_this->wd_get_api( ).
      l_portal_manager->subscribe_event(
    portal_event_namespace = 'urn:com.sap.mss.employeesearch'
    portal_event_name      = 'selection_changed'
    view                   = view
    action                 = 'RECIEVE_EMP_DATA' ).
    and the code written in event handler method is:
    METHOD onactionrecieve_emp_data .
      DATA: evt_name TYPE string.
      DATA lo_nd_gc_event_data TYPE REF TO if_wd_context_node.
      DATA lo_el_gc_event_data TYPE REF TO if_wd_context_element.
      DATA ls_gc_event_data TYPE wd_this->element_gc_event_data.
      DATA lv_event_string LIKE ls_gc_event_data-event_string.
    navigate from <CONTEXT> to <GC_EVENT_DATA> via lead selection
      lo_nd_gc_event_data = wd_context->get_child_node( name = wd_this->wdctx_gc_event_data ).
    get element via lead selection
      lo_el_gc_event_data = lo_nd_gc_event_data->get_element(  ).
    get single attribute
      lo_el_gc_event_data->set_attribute(
        EXPORTING
          name =  'EVENT_STRING'
          value = 'before handle' ).
      evt_name = wdevent->get_string( name = 'PORTAL_EVENT_NAME' ).
      IF evt_name = 'selection_changed'.
        lv_event_string = wdevent->get_string( name = 'PORTAL_EVENT_PARAMETER' ).
    get single attribute
      lo_el_gc_event_data->set_attribute(
        EXPORTING
          name =  `EVENT_STRING`
          value = 'handled' ).
      ENDIF.
    ENDMETHOD.
    In debugging mode, I am not able to go inside my event handler method.
    Please help why this event is not getting handled .
    Thanks
    Vishal Kapoor

    >
    Jon MB wrote:
    > Hi Thomas
    >
    > Please, can you confirm the restriction above applies to the following scenario?
    >
    > - We have an ECC system with the following URL: ecchost.domain.suffix
    > - We have a portal with the following URL: portalhost.subdomain.domain.suffix
    >
    > We have configured the portal for domain relaxing and SSO is working fine.
    >
    > Each system is under the same domain (domain.suffix), but in different subdomains.
    >
    > Shoudl this be the cause of ABAP WD applications not working? Is there any way to fix this without changing the URLs?
    >
    > Thanks in advance,
    > Jon
    I'm not a portal consultant, so I can only related the requirement from the WDA side that the domains must be the same. I don't know if the domain relaxation on the portal sise will take take of the subdomain.  My guess is that if you are having problems, that it doesn't.  You would probably need to ask this question in the portal forum or discuss with a portal consultant.
    > Is there any way to fix this without changing the URLs?
    I don't know of any.
    >Shoudl this be the cause of ABAP WD applications not working?
    What do you mean, not working?  Is the portal eventing just not work or are you not able to load the WDA applications at all.

  • Simple WD4A Portal Eventing does not work

    Hello togehter,
    I'm trying to get a simple Portal Eventing to work with two WebDynpro ABAP components. I read several threads as well as a blog from Thomas Jung about this but still have no eventing. What am I doing wrong? I think that it might be only a little obstacle but I can't get it. So what I didi is:
    1.) Created 1st WD4A application with a button and an action behind that button:
    DATA: l_api_component  TYPE REF TO if_wd_component,
            l_portal_manager TYPE REF TO if_wd_portal_integration.
      l_api_component = wd_comp_controller->wd_get_api( ).
      l_portal_manager = l_api_component->get_portal_manager( ).
      l_portal_manager->fire(
        portal_event_namespace = 'urn:my.namespace'
        portal_event_name      = 'test_event'
        portal_event_parameter = 'testValue' ).
    2.) Created 2nd WD4A application with the following code in the WDDOinit-Method:
    DATA: l_api_component  TYPE REF TO if_wd_component,
            l_portal_manager TYPE REF TO if_wd_portal_integration,
            view TYPE REF TO if_wd_view_controller.
      l_api_component = wd_comp_controller->wd_get_api( ).
      l_portal_manager = l_api_component->get_portal_manager( ).
      view ?= wd_this->wd_get_api( ).
      l_portal_manager->subscribe_event(
        portal_event_namespace = 'urn:my.namespace'
        portal_event_name      = 'test_event'
        view                   = view
        ACTION                 = 'CATCH_EVENT' ).
    and an action.
    method ONACTIONCATCH_EVENT .
      data: EVT_NAME type STRING,
            evt_parameter type string.
      EVT_NAME = WDEVENT->GET_STRING( NAME = 'PORTAL_EVENT_NAME' ).
      if EVT_NAME = 'test_event'.
        evt_parameter = WDEVENT->GET_STRING( NAME = 'PORTAL_EVENT_PARAMETER' ).
        DATA:
          ls_text TYPE if_main=>element_main,
          node_main TYPE REF TO if_wd_context_node,
          elem_main TYPE REF TO if_wd_context_element.
        node_main = wd_context->get_child_node( name = `MAIN` ).
        evt_parameter = 'IT WORKED'.
      else.
        evt_parameter = 'did not work'.
      endif.
      ls_text-text_receiver = evt_parameter.
      node_main->bind_element( ls_text ).
    endmethod.
    3.) FInally I created two iViews (for each WD4A application) and a page, linked the iViews in the page and made a preview. Unfortunately nothing happend in the second iVIew with the 2nd WD4A application in it.
    Any help?
    Thanx in advance
    Matthias

    Hello,
    thanks for your answers. But the problem is not yet solved, the link gives nothing new for me.
    To amend my first post:
    After having created and activated my both small WD4A applications, I created 2 similar iViews (iViews for WebDynpro -> and chose WD ABAP) in my portal. Both iViews have the same namespace (which is SAP - is this ok?) and no application parameter.
    Then I created both a Standard SAP page and a WebDynpro proxy page and added the 2 iViews as deltalink. The page and the iViews have the same prefix (but this is not important, isn't it?).
    --> In both pages the portal eventing does not work
    The ABAP server and the Portal server are the same machine and I call the portal with the full qualified domain name:
    http://<servername>.<domain>:50000/irj/portal
    When I test my WD4A applications in se80 I get the path http://<servername>.<domain>:8000/sap/bc/webdynpro/sap/z_event_receiver?sap-language=EN
    so this is the same domain.
    I even have an entry in my hosts-file for
    <myInternalIp>  <servername>.<domain>
    - Do I have to specify the domain explicitly in addition when integration the WD4A applications in the portal?
    - Is there a correlation between the Portal Event namespace, the namespace of my iViews and page and the domain name of my server?
    - Does the portal event namespave to have the prefix urn: or not?
    Thanks again in advance

  • Apple Remote Events Not Working

    I have an internal drive with OS X Client 10.3.9 and a fresh install of the same OS X Client on an external hard drive. Apple Remote Events, though turned on in System Preferences, does not function across my local network when booted on either of these drives.
    With a 2nd internal drive, I've got OS X Server 10.3.9 and when booted under this OS version, Apple Remote Events works as it should.
    Any ideas how I can enable the proper functionality of Apple Remote Events on OS X Client?
    QuickSilver Dual 1GHz   Mac OS X (10.3.9)  

    I have discovered that an apostrophe character in the machine name created a mismatch between the network identity name and the actual name. "Ken Goff's Computer" was converted to "Ken-Goffs-Computer.local" by OS X 10.0 when I first set up my computer.
    Changing the computer name to anything without the apostrophe and then editing the network name substituting dashes for spaces between words in the name fixed it.
    Remote Apple Events now works across the network.
    QuickSilver Dual 1GHz   Mac OS X (10.3.9)  

  • 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

  • Webdynpro proxy page and portal event

    Hello there,
    is it possible to capture the event from employee search iview into my custom webdynpro ABAP iview?
    Since it occurs to me that when a portal page is developed as a "Default page template" I am able to capture the event whenever manager clicks on any employee in the list.  But when i create a page with "Web dynpro proxy page" template, I cannot subscribe to the event.
    We are trying to use employee search ivew and general data iview provided by SAP plus a custom WDA iview.  But when I do a default page template, I am able to caputre the event but general data iview does not show any data...and when I use the proxy page template...I get data in general data iview but I am not able to capture the event....and my custom WDA iview does not show anything...
    Employee search iview (previously known as team viewer) and general data iview are standard SAP iviews.
    any ideas...
    appreciate the help!
    Thanks....
    J.

    Hi Srivastava,
    The scenario is like this....
    page lay out:
    Team viewer iview here----provided by SAP
    General data iview here-----provided by SAP
    my WDA iview here-----custom iview
    if the page template is default template....I get data in my WDA iview for selected employee in the team viewer...but I go not get any data in General data iview
    if the page template is web dynpro proxy page...i do not get any data in my WDA iview...but i get data in general data iview...
    after debugging this thing...i found that for webdynpro proxy page...the portal event is not getting caught in my WDA iview...
    how to subscribe to a portal event if the iview is embedded in  a page which is using web dynpro proxy page template...
    Just want to share this...that portal eventing is working fine...if the my iview is embedded in a page which is using default page template...
    any ideas????
    anyone???
    Thanks...

  • Portal Eventing calls BAPI  -  result FAILURE!

    Hi All,
    I have an interesting delima.
    BAPI_SALESORDER_GETSTATUS - using portal eventing to set "Salesdocument" model/mapped context value. When executing Bapi, no results display in my table (mapped to the output values).
    In further testing, I added an InputField that was mapped to "Salesdocument" to see that it was being set properly before the Bapi execution. That worked so I could see that portal eventing was working correctly. Still no results though.
    When I changed the "onEnter" event of the InputField to use my method that executes the Bapi, then the results showed up just fine. It appears that somehow the results only display if a InputField submits the value it is looking for.
    Any ideas on how to get the results to display? I thought maybe it had to do with the data type, but the context only asks for a string value.
    Max reward points for the person(s) who help me the most.
    Much Thanks,
    Cameron

    Hi Cameron,
    If I understand you correctly, the parameter <i>dataObject</i> in the action handler <b>onActionGetSalesDocument</b>
    refers the value the you want to pass to the Import parameter <i>SALESDOCUMENT</i>.
    If yes, then try doing the following two modifications.
    Define a new parameter <i>dataObject</i> of type <i>String</i> for the method <i>execute_Bapi_Status_Details_GetList</i>
    Change the action handler onActionGetSalesDocument as follows.
    public void onActionGetSalesDocument(IWDCustomEvent wdEvent, String dataObject)
      wdContext.currentContextElement().setSalesDoc(dataObject);
      wdThis.wdGetStatusDetailComponentController()
    .execute_Bapi_Status_Details_GetList(dataObject);
      wdThis.wdFirePlugToDetailView();
    Add a line of code to the execute_Bapi_Details_Getlist as follows:
    public void execute_Bapi_Status_Details_GetList(String dataObject){
    try{
          <b>wdContext.currentStatusDetailsModelElement()
    .setSalesDocument(dataObject);</b> 
        wdContext.currentStatusDetailsModelElement()
    .modelObject().execute();
          <b>wdContext.nodeOutput().invalidate();</b> 
    }catch(Exception e){
          <b>wdComponentAPI.getMessageManager.raiseException(e.getMessage(), true);</b>
    Bala

  • Portal Eventing only within Workset?

    Hello,
    I heard that Portal Eventing would only work within one workset or portal page. Is that true? I never found any documentation about that. And is it true that the string for urn can have any content as long as all communicating iviews use the same urn?
    Regards,
    Josef

    Hi,
    Yes, Portal Eventing would work within iviews on the same page (however, the iviews don't have to be from the same kind for example PAR & Web Dynpro).
    URN & event name are used to identify the event.
    See http://help.sap.com/saphelp_nw04s/helpdata/en/4a/0ba9409ecd1314e10000000a1550b0/frameset.htm for more details.
    Regards,
    Omri

  • Portal Eventing or FPM - navigate to diff comp controller view and ....

    Hi,
       The query is simple, i guess -
    From a particular component controller ( not from its view ) how can i navigate to a view of different component controller.
    Also how can i navigate to diff view ( within the same controller ) by the same controller.
    I tried Portal Eventing and FPM -
    WDPortalEventing.fire( "urn:com.sap.xss.hr.per.tw.bank.overview.Vc...Overview.Eventing","send","N");
    and at receiver
    WDPortalEventing.subscribe("urn:com.sap.xss.hr.per.tw.bank.overview.VcPerBankTWOverview",
         "send", wdThis.wdGetPortalEventAction() );
    it didn't worked.
    Also tried FPM after creating an FPM view , but need inputs from you to link it in event links as target.
    ECC6.0 - mysaperp2005.
    EP7
    THanks,
    Regards,
    Ankit

    Vishwas.. / Chaitanya -
    Thanks for the reply -
    -   I want to navigate to CompB's view from Component Controller A ( not frm the view ).
    - Another query was - how can i get to View2 of comp controller A via Comp Controller A itself. 
    Your answers were helpfull but i need some more info..
    The forums link u mentioined had some body mentioned this -
    " 2 ways to do this...
    The first way:
    1) Create a separate window in Comp B for each view that you need to navigate directly to (an interface view is created for each window)
    2) Embed the multiple interface views of Comp B into Comp A
    3) Use a separate outbound plug in Comp A for each Comp B interface view
    AFTER STEP 2 ON STEP 3 HOW CAN I HAVE AN OUTBOUND PLUG FROM COMP CONTROLLER A ( not from the view ). i.e., outbound plug from Comp A to the Comp B inteface view
    Lokesh -
    Trying same namespace didn't worked , - i guess Portal eventing might work between views , but here i have a component controller and a view.

  • 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

  • Portal Events in web dynpro

    Hi All,
    I have created two web dynpro application iviews on the same page.
    Now there is a button on the first application and when that button is pressed then I am triggering an event TRIGGER from it using method FIRE.
    There is a text edit element on the second application.
    I have registered the event TRIGGER in the second application in method WDDOINIT using method SUBSCRIBE_EVENT and assigned an action RECEIVE to it.In the method ONACTIONRECEIVE I have set data to be displayed in the text edit element.
    However the above scenario is not working.
    In methods subscribe_event and fire there is a parameter to be passed which is PORTAL_EVENT_NAMESPACE.What exactly is this parameter and what value to be passed to it.
    Please provide any source code if any.
    Thanks in advance
    Aman Gupta

    Hi Aman,
    If you are still not able to do the Portal eventing then to make portal eventing work you should access portal using FQDN (fully qualified domain name).
    Check Sap help for [Fully Qualified Domain Names |http://help.sap.com/saphelp_nw70/helpdata/en/67/be9442572e1231e10000000a1550b0/content.htm] also check the SAP note 654982.

  • Portal Eventing JSP TreeView

    I am trying to refactor a piece of code that was originally designed using HTMLB to create a tree view role menu that invokes an event in another iView.
    My question is, can portal eventing be done with traditional  JavaScript as opposed to using HTMLB? We are not using WebDynPro for this project.
    I would like to use a jsp treeview to re-engineer the existing htmlb tree structure, but wanted to get some feedback on the options...thanks

    Hi Ryan,
    > whether or not the eventing
    > has to be done on the server side
    The eventing between iViews is done by EPCF, and this is, as said, a pure JS framework. Often it might be senseful for the iView which gets "informed" by some other iView about some event with some event data, to use this data and to refresh itself. This depends on the concrete use case.
    Having this said, it is obviously totally independent if you usue EPCF from some portal HTMLB-JSP, a "pure" JSP without HTMLB or a BSP - all of these things end up in HTML with the possibility to include JS - the EPCF calls.
    See http://help.sap.com/saphelp_nw04/helpdata/en/82/04b340be3dff5fe10000000a155106/frameset.htm for further details.
    > Can all of this be done without post backs
    > to the server,
    As said before, the eventing through EPCF works on client side, but in many cases it makes sense to refresh some iView with some data sent by the event.
    Imagine a List-Details iView combination. The user has one iView with a list of products and another iView with the details of one product. By choosing one product in the list iView, this iView could raise an event, which is subscribed by the details iView, for example passing some product-ID. Now it would make sense to refresh the details iView with the ID given. The alternative would be to load all details data and only to show up the chosen details and to switch on the event. Two disadvantages: It's much harder to code and you may have a very long transmission/network time for the inital call of this iView.
    > without using htmlb using JSP not BSP
    See above, it's independent from the HTML-Layer.
    > can you store a result set in a client side object,
    > like a cookie, and if so, how?
    For sure, somehow you can (at least some representation). But here I'm unsure again, in which direction this question aims, if this is really helpful.
    Hope it helps
    Detlev

  • Portal eventing - setting CKey manually?

    Hi,
    I need to create my own "team viewer" and in this respect, I need to mimic the standard team viewer of MSS 60.1.20 (for EP6.0, SP16).
    I've succeeded in coding the JavaScript for my viewer. However when the user initially logs in, the iViews that usually resond to the portal eventing of the team viewer does not load properly, because the CKey attribute in the request has not been set in the right way (actually, this is done in JavaScript, but somehow it does not work properly ).
    Hency, I've been looking for a way to set the CKey attribute manually in Java. But I cannot find any documentation for this and the closest I've been up until now is to read the CKey attribute through:
    CKey.getRequestKey()
    No method allows me to set the CKey or to manipulate the key returned by the method.
    Any suggestions?
    Kind regards,
    Rasmus Ørtoft

    Hi Rasmus
    Have you found a way to do this yet?
    I made an iView that sends a teamviewer event to the standard MSS iViews and it works if I put in a delay to make sure the receiving iViews have loaded before I fire my event.
    This works pretty well, but it seems that if you set some kind of cookie or databag before fireing the event, then I wont have to do my delay work-around.
    How did you solve it?
    Cheers,
    Jacob Vennervald

  • What is portal eventing?

    Hi Gurus,
    If anybody has good documentation on portal eventing please send it to shakthigin @yahoo.co.in
    or please give me the links to the document.
    Thanks in Advance,
    Dharani

    Hi,
    Here are those
    a good blog Portal Eventing; A Solution for Global Peace and Harmony?
    http://help.sap.com/saphelp_nw04/helpdata/en/37/8ca9409ecd1314e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/f6/7d6f4151dc5758e10000000a1550b0/frameset.htm
    portal Eventing
    a very good pdf... but dont know why its not working now https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/how%20to%20use%20the%20portal%20eventing%20for%20web%20dynpro%20iviews.pdf
    this is also
    https://media.sdn.sap.com/html/submitted_docs/Best_Practices/EP/documentation/How-to_Guides/32_HowTo_Use_portal_eventing.pdf
    how to use portal eventing a good pdf   https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60d7d690-0201-0010-e581-9c4fc69cec0e
    PradeeP

  • WSRP and portal eventing

    Hello,
    we have a remote portlet running on JBoss-portal (producer). The portlet is accessed from the SAP EP 7.0 (consumer) via WSRP.
    Now the question: Is it possible to forward portal events to the remote portlet?
    I know the WSRP 1.0 standard doesn't support this, but I thought about writing a portal component which receives the event and passes it on to the remote portlet as a "normal" parameter. But I'm not sure how to trigger the WSRP-calls form my component.
    Any suggestions/ideas?
    Thanks a lot for your help!
    Heiko

    Hi Heiko,
    Here is the response I got from development:
    Client side eventing is indeed not supported in WSRP.
    It is technically possible to extend our ProxyPortalComponent but it requires deap knowledge in the architecture.
    The concept of WSRP is to propagate the portlet's functionality using WSRP protocol logic, i do not fully understand the question in that case. it is eaither:
    a. to reflect the portlet's functionality (URLS) as they are (with the modification of URL rewriting done by the protocol)
    b. alter the portlet functionality to contain the event as a request parameter.
    in both cases straight forword usage is required and no 'hacking' can do the work.
    Let me know if the developer did not understand your question, or if you need some more information.
    Hope this helps.
    Daniel

Maybe you are looking for

  • Related to PO Versions

    While working on PO versions I found entries in EREV, CDHDR, CDPOS..... But when i Check in se 37 for FM      "BBP_PD_PO_GETDETAIL"  and   'BBP_PD_CTR_GETDETAIL'  or cheked for table   'E_VERSION '   or Transaction BBP_PD I didnt found anything.... N

  • I have iphoto 7.1.5 and need to upgrade to use icloud.  I have Mac osX 10.7.5.  Which upgrades and in what order?  Thank you.

    I have a Macbook 10.7.5.  Just got an iphone 4s and need to upgrade the iphoto on Macb to use icloud.  Can you tell me how to go about it?  That is, which upgrades do I need and in what order?  Thank you

  • AP Rogues 'On Network'

    We see several Rogue APs in our network which are, according to WCS, not 'On Network'. However, most of them do turn out to be 'On Network': their MAC address appears as connected&active in a switch port. I wonder if this is because the 'On Network'

  • Idocs missing from source system

    Hello, I am trying to extract data from R3 to BW. I am getting an error message in BI, No idocs arrived from the source system. In SM58 system showing the message 'No service for system SAPECC, CLIENT 800 IN INTEGRATION DIRECTORY'. Please help on thi

  • Hardening userid/password in scripts

    Hi all, I have backup scripts that contains expdp system/passw full=y . How do I hide the password so that other users can not see it? I am thinking of compiling as exe it in perl or are there other ways to do this in linux of windows? Can you share