Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Catch event in a different program

Former Member
0 Likes
438

Hi

I have a modul pool, it's possible that in this modul-pool i catch a event raised in another function?

I've created a Z-Class with a static event and a method that raises the event

In the modul-pool i've created a local class to receive the events

In this local class i've declared a method called HANDLE_EVENT for event ... of class Z-CLASS...

i implement this method

In the modul pool i put the set handler WITHOUT FOR ADITION

there is another function (launched through XI) that call the method of the ZCLASS that raises the event

but i'm not able to link the raise of this event to the method HANDLE_EVENT of my local class in my modul pool

Hope somebody bring some light to me

Thanbks and regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
393

Hi there,

I think, what you want is not possible, cause your local class is not "alive" during the call of your zclass.

To catch the event with your local class, you need to create an object of that class, that is available in your Zclass Method, raised by XI.

regards Karl

2 REPLIES 2
Read only

Former Member
0 Likes
394

Hi there,

I think, what you want is not possible, cause your local class is not "alive" during the call of your zclass.

To catch the event with your local class, you need to create an object of that class, that is available in your Zclass Method, raised by XI.

regards Karl

Read only

0 Likes
393

I solved this issue using shared object memory

It's similar to EXPORT TO MEMORY / IMPORT FROM MEMORY but it offers more posibilities

Thanks everyone