<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Event Handler OnModelOpen do not run in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/event-handler-onmodelopen-do-not-run/qaa-p/12450133#M4662785</link>
    <description>&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1943500-onmodelopen.png" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ondrej Divis&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jun 2021 21:00:42 GMT</pubDate>
    <dc:creator>Ondrej_Divis</dc:creator>
    <dc:date>2021-06-04T21:00:42Z</dc:date>
    <item>
      <title>Event Handler OnModelOpen do not run</title>
      <link>https://community.sap.com/t5/technology-q-a/event-handler-onmodelopen-do-not-run/qaq-p/12450132</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I have a LDM with an extension attached from a shared folder. Recently, I have created a new Event Handler &lt;EM&gt;OnModelOpen &lt;/EM&gt;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?&lt;/P&gt;
  &lt;P&gt;I’m running PD 16.6.5.0(5532).&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 15:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/event-handler-onmodelopen-do-not-run/qaq-p/12450132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-06-04T15:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Event Handler OnModelOpen do not run</title>
      <link>https://community.sap.com/t5/technology-q-a/event-handler-onmodelopen-do-not-run/qaa-p/12450133#M4662785</link>
      <description>&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1943500-onmodelopen.png" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ondrej Divis&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 21:00:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/event-handler-onmodelopen-do-not-run/qaa-p/12450133#M4662785</guid>
      <dc:creator>Ondrej_Divis</dc:creator>
      <dc:date>2021-06-04T21:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Event Handler OnModelOpen do not run</title>
      <link>https://community.sap.com/t5/technology-q-a/event-handler-onmodelopen-do-not-run/qaa-p/12450134#M4662786</link>
      <description>&lt;P&gt;Hi Ondrej,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;As far as I
can tell, PD users (including me) belong to a group with ‘Read &amp;amp; Execute’ permission on the shared network folder.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1950578-pd-erros-report.png" /&gt;&lt;/P&gt;&lt;P&gt;Best
regards,&lt;/P&gt;&lt;P&gt;ca&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 14:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/event-handler-onmodelopen-do-not-run/qaa-p/12450134#M4662786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-06-21T14:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Event Handler OnModelOpen do not run</title>
      <link>https://community.sap.com/t5/technology-q-a/event-handler-onmodelopen-do-not-run/qaa-p/12450135#M4662787</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Ondrej Divis&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 09:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/event-handler-onmodelopen-do-not-run/qaa-p/12450135#M4662787</guid>
      <dc:creator>Ondrej_Divis</dc:creator>
      <dc:date>2021-06-23T09:22:44Z</dc:date>
    </item>
  </channel>
</rss>

