Hi all,
I want my component MovimientosAlmacen_com to catch the "Importar" event from other component FileInterface_comp, so I put the event in the interface controller of FileInterface_comp, then in the wdDoInit() method of my component controller I put this code:
IWDEventId eventId = wdThis.wdGetFileInterfaceInterface().WD_EVENT_IMPORTAR; IWDEventHandlerId eventHandlerId = wdThis.WD_EVENTHANDLER_ON_IMPORTAR; wdComponentAPI.addEventHandler(eventId,eventHandlerId);
But when I try to run my application, it gives me the error:
java.lang.IllegalArgumentException: EventId(Importar) does not belong to Component(net.ebpartners.sky.MovimientosAlmacen_comp, 32656196)
So, my question is, can this be done?, can I catch an event from a different component?
Thanks in advance
Daniel