Skip to Content
avatar image
Former Member

Implement Eventing in Webdynpro

Hello,

When u create methods in the controller...there are 2 options to select ...either Event or Method...I have used the option method ....but what is event handler and how it used in webdynpro...?

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 13, 2008 at 04:15 AM

    Hi Anil

    Event handlers allow the separation of static and dynamic code in a page. The layout processing deals with the static data, while the event handlers deal with the dynamic data.

    For more details just check this link

    for Event Handler

    http://help.sap.com/erp2005_ehp_03/helpdata/EN/9b/ac1e3a0088e042e10000000a11402f/frameset.htm

    for Action

    http://help.sap.com/erp2005_ehp_03/helpdata/EN/bf/50953fc405330ee10000000a114084/frameset.htm

    Thanks

    Anup

    Edited by: Anup Bharti on Oct 13, 2008 6:16 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 13, 2008 at 05:35 AM

    hi!

    If you choose event handler method, you can subscribe to any event of any visible controller (the controllers you defined as required controller for the actual controller).

    you can give name and return type of this method.and you can pass parameter by pressing new and then provide parameter of your choice .

    thanks

    vishal

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 13, 2008 at 06:19 AM

    Hi Anil,

    first an event in componetn controller of WD project.

    then create a methode which will fire that event.

    eg.

    wdThis.wdFireEventFire<event>();

    now create an eventhandler in view in which u want to handle this particular event.

    hpe it will hlp u

    Regards

    Khushboo

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 13, 2008 at 04:06 AM

    Hi

    Just create one context variable and assign its type boolean.

    When u crate event say push and click on properties in event assign that variable u created

    Regards

    Ruturaj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 13, 2008 at 05:48 AM

    Hi,

    The event handlers deals with dynamic data, take the example of creating a confirmation window, confirmation window will be created at runtime with specified buttons say ok and cancel. These ok and cancel buttons are eventhandlers and they can be invoked on click of button on confirmation window. For code example see my post in the following link.

    [pop-up-window-on-click-of-save-button]

    Regards

    Raghu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 13, 2008 at 06:23 PM

    Hi Anil kumar

    The Web Dynpro component can use the following properties

    of the Web Dynpro component interface:

    1. Context (for mappings)

    2. Methods (for calls)

    3. Events (for communication)

    4. Interface views (for embedding)

    Events :By a dashed edge giving a direction; the edge is labeled with the event and, optionally,

    with the method in which the event is triggered. The edge determines the trigger

    direction.

    i hope you got the ans....

    Regards...

    Ramprasad

    Edited by: Ramprasad K on Oct 13, 2008 8:24 PM

    Add comment
    10|10000 characters needed characters exceeded