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

Similar Messages

  • Why my hp simple pass website login does not work with firefox latest version ?

    I have the latest version of firefox version 16.0.1 and my hp simple pass website login does not show up like it worked in IE9.

    I updated all the add ons already and I already reinstalled the HP simple pass after I installed firefox. I think that the new firefox is not yet compatible with the software (HP simple pass)

  • Tabbed selection screen with AT SELECTION-SCREEN ON events does not work

    I have a selection screen with 3 tabs fields on each tab have AT SELECTION-SCREEN ON field events.  
    If you are on tab 1 and select a variant that populates fields on all tabs and then click the execute button ABAP does not seem to recognize that the field has changed when it executes AT SELECTION-SCREEN ON field event unless you physically go to each tab.
    I can work around this by:
    1) moving all of the AT SELECTION-SCREEN ON field events in a AT SELECTION-SCREEN OUTPUT event.  This is not efficient and it potentially opens me up to other problems.
    2) changing the selection screen to remove the tabs and have all of the fields on 1 screen.  This makes for a very long screen.
    Is there any way to have ABAP check all tabs?
    Thanks,
    Jerry

    I finally got it to start.   Let it sit and tried and it wouldn't but then I tried again and it did.  How do I blow the dust out?   I think it must be something with the heat since that comes up alot. 
    I will do it, I love my Mac.

  • Portal 309 does not work ...

    gurus,
    i've installed 9iAS 10220 on windows 2000 with 817 database.
    i have the following problems -
    1. apache would crash in couple of seconds after etting started -
    fixed it by commenting the following in oracle_apache.conf -
    # include "D:\ORACLE\ora9ias\Apache\Apache\conf\mod__ose.conf"
    2. now i type the url in browser as follows -
    http://hchangla.us.oracle.com:80/pls/portal30
    and nothing happens ....... after a while i get an error saying
    the server may be down ...
    3. i logged in the database thru SQL*PLUS portal30 user and
    everything seems ok ....
    can't understand .... whay i can't access portal ....
    ideas ...... anyone .......?
    thanx a bunhc
    hero

    Hello!
    I use the java version 1.4.2_17.
    I detected the inconsistences regarding the java parameter settings within Config Tool.
    Because I am on Windows X86 Platform I changed the values of "Max heap size (in MB)" equal to the values of
    u2013Xmx2048 for server and dispatcher. 
    Unfortunately this does not solve my problem.
    When I log into the portal I get the following error:
    Portal-Runtime Error:
    Ausnahme bei der Verarbeitung des Requests; senden Sie die ID der Ausnahme an Ihren Portaladministrator
    Ausnahme-ID 05:24_21/03/11_0001_8812350
    Weitere Details zu dieser Ausnahme finden Sie in der entsprechenden Protokolldatei
    How can I find the appropriate log file?
    The main problem still is the the disp+work process that getting yellow and after a while again green.
    This interuptes the portal functionality of course...

  • EP6 SP9 - 'Personalize Portal' link does not work

    Hi,
    We've just installed EP6 SR1 SP9 and applied patch 4.
    The portal seems to work fine, except for one thing:
    The 'Personalize' link on the top right, above the TLN, doesn't seem to work.
    When clicking the link, nothing happens. No popup, no error message, nada
    Has anyone seen this before, or can give me a guidance where to look for?
    With kind regards,
    Robin van het Hof
    Message was edited by: Robin van het Hof
    - Marked topic as a question -

    Hi Robin,
    i'm afraid you did not understood Hassan right, so I'd like to clarify thinks for you. By default the super_admin_role does not provide an user (i.e. J2EE Administrator) to personalize the portal. In order to do this a user must posses a role which contains the workset "Portal Personalization", (which is not the case for the super_admin_role).
    So, you have the option to assign the role "eu_role" to the user J2EE Adminstrator (or to any other user which would like to  personalize the portal). The other option is to edit the users role (i.e. super_admin_role) and add the workset com.sap.portal.portal_personalization.
    Just try those two options on your portal.
    If you do not need all the iviews from eu_role and do not want to change the standard super_admin_role, i would recomend to create a new role which includes only the workset mentioned and assign it to every user who wants to personalize the portal.
    Hope this helps,
    Robert

  • Window.event does not working in Firefox 4.0 and also window.event.ctrlKey ?

    hi,
    I'm using Microsoft virtual earth map 6.2 (bing Map) in my application.On map showing number of images.On Each image there is onClick event that select image if user press left mouse button while holding Ctrl key .For this I wrote java-script function where I'm using Window.event.button (To check mouse button) and window.event. ctrlKey(To check control key) But these both are not working in Firefox 4.0 ,the same is working in Firefox 3.6X version perfectly.
    Thanks

    The same problem is in Firefox 5.0 version too

  • Onbeforeunload event does not work correctly!

    Hi friends,
    we use the ApEx 3.2,
    I changed the page templete as
    </script>
    <script type="text/javascript">
    window.onbeforeunload = function(){
    confirmLogOut('Are you sure to want to exit ?');
    </script>
    #HEAD#
    </head>The code is not operated correctly when I close the window and select the ok button,the page not redirected to login page.
    Also when I close the window and select cancel button,the page is closed!
    <script language="JavaScript" type="text/javascript">
    function confirmLogOut(msg){
    var answer = confirm(msg);
    if (answer){
    location.href='&LOGOUT_URL.';
    else {
    location.href=location.href;
    </script>in both cases the window is closed
    regrads
    Edited by: sak on Mar 5, 2012 5:42 PM

    Hello John Wu, as you mentioned, i have solved my issue in your directions...
    have you ticked the checkbox "Terminating" for the end event?
    add a notification
    task after the intermediate event to check whether the
    intermediate event is working or not

  • Column order in ALV using in portal environment does not work

    Hello,
    I set the columns order of an ALV table ( in WD ABAP ).  For one portal user these settings are not applied. ( columns seems to be in random order )  For the other users it works fine. I tried to see the differences between the portal users, but did not find anything.
    I guess it is some portal user personalization setting problem.
    Anyone knows how to fix this?
    Thanks,
    Tamas

    Tamas,
    I think user has done some personalisation or if you are Netweaver 701 you can rearrange the columns in a table
    Thanks
    Bala Duvvuri

  • Intermediate Message Event does not work correctly

    Hello everyone
    I did a test about intermediate message event, i want to realized a business scenario
    1) start event
    2)parallel split
       branch A........ Intermediate Message Event
       branch B.........Human Activity Task
    3) end event
    In this case above, when process is start, a human activity would be created in
    UWL view, at same time, this intermediate event is waiting for external WebService Call.
    I triggered this webservice(for intermediate event), but this process is not terminated,
    and  human activity still in UWL view.
    Could you please tell me why?

    Hello John Wu, as you mentioned, i have solved my issue in your directions...
    have you ticked the checkbox "Terminating" for the end event?
    add a notification
    task after the intermediate event to check whether the
    intermediate event is working or not

  • Please help ..... simple JAX-WS Example does not work

    I tried out the simple Calculator Example described at http://weblogs.java.net/blog/vivekp/archive/2006/12/webservices_in.html (Vivek Pandey's Blog).
    and got following error message typing apt ...:
    error: Could not get TypeDeclaration for: jaxws_calc.Calculator_Add in apt round
    : 2
    Problem encountered during annotation processing;
    .\jaxws_calc\jaxws\Add.java:11: incompatible types
    found : javax.xml.bind.annotation.XmlAccessType
    required: javax.xml.bind.annotation.AccessType
    @XmlAccessorType(XmlAccessType.FIELD)
    In the code of the Add.java and the AddResponse.java there are only XMLAccessTypes/XmlAccessorTypes.
    My system property java.endorsed.dirs is set to C:\Programme\Java\jre1.6.0\lib\endorsed
    I copied the folowing jars in this directory (as the Java Web Services Developer Pack 2.0 had described) and some additionally from the jwsdp 2.0:
    dom.jar
    jaxp-api.jar
    jaxb-api.jar
    jaxp-api.jar
    jaxws-api.jar
    sax.jar
    xalan.jar
    xercesImpl.jar
    Can you tell me what else I have to do to avoid this mistake?

    Can u give the step that u hav done? & the code plz..?
    I did the same example, & it worked well...

  • A simple one: Save function does not work when a client is trying to save a form on his desktop i cr

    Hi, i have created a simple form in live cycle designer with just some fields the cleint can enter infomartion into.
    when ever they then open the PDf to fill in the fields, they can never save it, it seems to be the case everytime i make a form in live cycle designer. the documnet has no security settings on, and i cannot find anywhere else to enable/disable saving the documnet.
    Can anyone help?
    thanks.

    Ben,
    You are half correct with your thinking. The problem is two fold. The basic Adobe Reader program will only allow a user to view a form in all reality. Yes you can fill it in and print it, but saving the completed form is not something Reader is allowed to do on its own. The exception to this is having a Reader Extended form. A reader extended form has been given additional rights that allows the basic version of reader to perform additional tasks, that normally require Adobe Acrobat to accomplish. In order to be able to save your completed form you will need to either open the form with Adobe Acrobat, or reader extend the form first if you are going to do the same thing with Reader.

  • In WPF When Row Virtualisation is enabled the highlighting of rows on SelectedCellsChanged event does not work properly

    I have written code on SelectedCellsChanged that highlights the rows corresponding to cells selected. When I select few cells in wpf data grid it selects corresponding rows. But When I scroll down/up, it automatically selects some random rows every time.
    But when I set EnableRowVirtualization to false in data grid it works properly. I can not keep virtualization set to false as data is huge it and impacts performance of the grid. So I need both of them working together. Please provide some solution for this
    issue I need it urgently.

    I think you errouneously posted your question on the Project forum which is dedicated to the Microsoft scheduling and planning enterprise application.
    Please go to the
    WPF TechNet forum.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Double clicking on a photo or event does not work

    I have to click quickly 3-6 times a photo or event to successfully open it.
    I rebuilt the database and I also deleted the iPhoto preferences file without success.
    I have no problem with the double click in my other app.
    The problem is the same with the trackpad or mouse.
    I use iPhoto 9.6 and OSX 10.10.1 on a MacBook Pro.
    Thanks

    Check your  trackpad settings and possibly slow down the click speed (or speed it up).  Another user had the same problem and solved it thru the click speed settings.

  • Getting nuts! simple onSubmit process but does not work...

    hello.
    once again my little problem:
    on page 1 i have a report. every row has a link:
    http://192.168.255.20:7777/pls/htmldb/f?p=116:21:3135390112602440240:END_TASK:::END_ID:22
    where END_ID:22 gives the id of the row to a textfield on page 21 which is launched.
    on page 21 there is a small "report" of only the chosen row to give us again the details of the chosen row.
    there are additionally 2 buttons, button END_ID which stores the id that we've got through the link's URL, and another textfield P21_AUFTRAGSDAUER i can enter some stuff into.
    and there's a submit button that submits the page (NO redirection or something like that).
    now on the same page 21 i created an onSubmit process which should update the chosen row. it's launched after all verifications and stuff, and its source is
    update wartungs_auftraege
    set status=2,
    time_spent = :P21_AUFTRAGSDAUER
    where auftrags_id = :END_ID
    and now there's the strange thing: while in
    time_spent = :P21_AUFTRAGSDAUER
    the placeholer :P21_AUFTRAGSDAUER is replaced correctly with the entered value, :END_ID in
    where auftrags_id = :END_ID
    is ALWAYS replaced with 1, although it shows the correct value that was passed through the link's URL! i just don't get it anymore! i've taken a look at the source code, and both inputs look the same:
    <INPUT TYPE="text" NAME="p_t01" SIZE="30" MAXLENGTH="2000" VALUE="22" id="END_ID" >
    <INPUT TYPE="text" NAME="p_t02" SIZE="30" MAXLENGTH="2000" VALUE="21" id="P21_WARTUNGSDAUER" >
    i'm getting nuts with that, i'm trying since 2 hours to solve this problem... :(((
    please help me, anyone! thanks...

    the END_ID item was created by using the create-element-wizard. its source type is set to (i try to translate it from german)
    used alternative source: only if current value of session is NULL
    source type: ITEM (application or site element name)
    source value:
    END_ID
    standard value:
    &END_ID.

  • Popups: Navigation from view to window does not work

    Hi,
    I open a second window as popup. This window has 2 views embedded, displaying view1 first. On some actions I would like to navigate to view2.
    Defining an outbound plug on view1 and an inbound plug on view2, connecting them and firing the outbound withith the onaction works absolutely fine.
    However, for some reasons I would like to avoid a direct navigation, but would like to navigate from view1 to the popupo window and from there to view2 (or maybe another view, ofcourse also embedded in the same popup window). Unfortunately I fail on this scenario - I can fire the view-to-window plug, but the destination on the window side (handle in method) is never reached.
    Since the same concept works fine on non-popup windows I wonder whether a navigation from view to embedded window does not work for popups?
    Any idea?

    Hi Yashpal,
    no, just one window.
    The first link is view1 -> window, the second window -> view2.
    I.e., I fire in the view the outbound plug, which is connected with its window.
    In the window I fire an outbound plug, which is connected to view2.
    In theory this should work - for non-popup windows I do not have any problem at all, however, for popup windows the navigation from view1 to the window is not processed.
    In the meantime I played a little bit further: Instead of firing a navigation from view1, I now fire an event defined in the component contoller, on which an event method is registered within the window. Doing so, I reach the window, which I didn't reach via the navigation link. Once in the window, firing to view2 works just fine ...
    Hope the issue is a bit clearer now. Also I found a solution, I am surprised that the simpler way via navigation does not work.

Maybe you are looking for