cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: passing wdEvent as a parameter .

Former Member
0 Kudos

Hi All,

I have a event handler method in my view. I am calling that method in some other method in the same view based on one condition by passing wdEvent as a parameter bcozz event handler methods have wdEvent as a parameter.

for this I did

com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent1 = null;

wdThis.from_Summary_to_Individual( wdEvent1 );

Can we do like this ? But it is giving error. What could be the reason.

Is it bcozz I set it to null or other reason?

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Do you really need this parameter wdEvent for you processing?

If not create a custom method and call if from both the places.

You can create this method from the methods tab of the view.

Regards

Ayyapparaj

Former Member
0 Kudos

Move the logic into a separate method without this parameter and call this method instead of the event handler.

Armin