cancel
Showing results for 
Search instead for 
Did you mean: 

Event Handler OnModelOpen do not run

0 Kudos

Hi,

I have a LDM with an extension attached from a shared folder. Recently, I have created a new Event Handler OnModelOpen on this extension with a simple welcome message and further output window instructions in order to help users editing this model correctly. Well, whenever I open this model, the handler it’s not executed. I get no message at all. No error, nothing. Will anyone image why?

I’m running PD 16.6.5.0(5532).

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi Ondrej,

All handlers work fine when I created them. If I save and close the model, when I open it, the EventHandlers don´t work anymore. I’ve tried OnModelSave, as you suggested, and the MsgBox (for instance) displays as expected, initially, and stops showing up after the model is closed.

This behavior just happens when the extension is attached to the model. If I do create the extension ‘embedded’, all handlers work fine, all the time. If I attached the extension from a local computer folder (not from the shared network folder) all handlers work fine, all the time, as well.

PD 16.6.5.0(5532) is installed on a Windows Virtual Machine and the shared network folder (holding the file extension) is in another Windows Virtual Machine. I’m sorry but I don’t have another computer or another PD version available that I can use for testing.

As far as I can tell, PD users (including me) belong to a group with ‘Read & Execute’ permission on the shared network folder.

Best regards,

ca

Ondrej_Divis
Contributor

It worked for me even if I started PD in vmware and put the extension on my physical computer. If you are able to reproduce it, I suggest reporting it to SAP as a bug.

Ondrej Divis

P.S. I really don`t recommend using MsgBox in event handlers. If the handler shows only welcome message, then it might be ok, but when it does something more I had a really hard times until I found, that all the trouble was caused by using MsgBox inside handler.

Ondrej_Divis
Contributor
0 Kudos

It works for me on PD 16.6.9.0 (and PD 15.3.0.3248 too). See attached screenshot. How about other handlers (OnModelSave for example)? Do they behave the same? Have you tried your extension on different computer (with different installation of PD)? Can you try it with newer version of PD?

Regards,

Ondrej Divis