cancel
Showing results for 
Search instead for 
Did you mean: 

Implement Eventing in Webdynpro

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member192434
Active Contributor
0 Kudos

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

Answers (5)

Answers (5)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks for your responses.,..but the question which I have is I can implement all this by creating an Action and tieing it to the UI Element like button or others....

Looking forward to your reply.

Former Member
0 Kudos

Hi Anil,

go through this doc..it might hlp u:

[http://help.sap.com/saphelp_nw04s/helpdata/en/5d/64a0ed34c59e4c9754be5c0759c7c0/frameset.htm]

[http://help.sap.com/saphelp_nw04s/helpdata/en/47/455a7080f81962e10000000a114a6b/frameset.htm]

Regards,

Khushboo

Former Member
0 Kudos

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.

[]

Regards

Raghu

Former Member
0 Kudos

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

Former Member
0 Kudos

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