cancel
Showing results for 
Search instead for 
Did you mean: 

problem in accessing IWDEventHandlerId

Former Member
0 Kudos

Hi,

i am using a method which takes IWDEventHandlerId as a parameter, I have this code in place

IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();

IWDEventHandlerInfo eventHandlerInfo = controllerInfo.findInEventHandlers("deleteException");

from here i am not able to get IWDEventHandlerId.

If i do typecasting like

IWDEventHandlerId eventHId = (IWDEventHandlerId)controllerInfo.findInEventHandlers("deleteException");

then it breaks.

Can any body help?

Thanks

Mayank

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi Mayank,

You can get IWDEventHandlerId using constants in IPrivate<VIEW_NAME> interface. There are couple of static final variables with format:

public static IWDEventHandlerId WD_EVENTHANDLER_....

.

Best regards, Maksim Rashchynski.

Answers (0)