Skip to Content
author's profile photo Former Member
Former Member

Data transfer from EPCF events

I have a regular(non-web dynpro) iView which is firing event & sending data using client data bag. It uses EPCF to send the event.

EPCM.raiseEvent(bla bla bla);

EPCM.storeClientData( XYX);

I have 2 more listener iViews on the same page. One of the iViews is a regular iView which uses JavaScript & subscribe to the event. Then gets the data using

EPCM.loadClientData("XYZ","ABC");

Everything is working fine on this iView. I get the event as well as parameters from sender iView.

I have another iView which a web dynpro iView. This web dynpro iView also subscribes to the same event & tries to read the data. Inside my web dynpro iView, I am able to get the event but the IWDCustomEvent event object does not contain the data/parameters transferred by the Sender iView. How can I read the data stored in the client data bag inside my web dynpro iView? If it's not possible then is there a workaround which DOES NOT REQUIRE CHANGING THE SENDER iView?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2005 at 01:02 AM

    Hi, Sam:

    There is a solution.

    in your web dynpro, you can define an action with a parameter "dataObject". Remember, the name of parameter must be "dataObject". and type is String

    then you can subscribe this action.

    In you non-web dynpro iview,you can use EPCM.raiseEvent(namespace, name, dataObject) to call this action, the 3rd parameter of EPCM.raiseEvent is the data you will transfer to the web dynpro iview.

    When EPCM raise event, it can pass the dataObject to web dynpro

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2005 at 05:54 AM

    When u raise event from the sender Use the following syntax:

    EPCM.raiseEvent(namespace,eventname,dataObject);

    Here this dataObject is the parameter u want to pass to the webdynpro.

    From webdynpro side u can access the parameter in the eventhandler which u create while subscribing the event.

    This dataObject will be automatically passed to the eventhandler... so u can access that.

    Try it out and please let me know the status.

    Thanks & Regards,

    Sirisha.R.S.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2005 at 02:41 PM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.