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

Reg: passing wdEvent as a parameter .

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 02:34 PM

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

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 03:00 AM

    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

    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.