Skip to Content
author's profile photo
Former Member

portal eventing

Hi all,

I have a problem with eventing, when the listener Web Dynpro application receives the event, the parameter sent within this event is null although it has been set not null before sending. can you please help me.

Best regards,

Badr

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Aug 22, 2007 at 06:45 PM

    Hello Badr,

    I have solved this in Portal 7.0 SP11, whit the eventing template in Dev Studio but the main concern is that thoy have to put the code in an specific way,

    <b>This is for the Sender iVew</b>

    [code]WDPortalEventing.fire(

    "urn:com.examples.eventing",

    "Send_Message",

    "Message to be send!!!!"

    );[/code]

    <b>This is for the Receiver iVew</b>

    [code]public void onActionReactPortalEventing(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject )

    {

    //@@begin onActionReactPortalEventing(ServerEvent)

    //$$begin Enterprise Portal Eventing(1866966146)

    wdContext.currentContextElement().setMessage(dataObject);

    //$$end

    //@@end

    }[/code]

    Look that you need to receive 2 parameters and one of them, the message, needs to be called <i><u>dataObject</u></i>

    Add comment
    10|10000 characters needed characters exceeded