Please enable JavaScript to view this site.

Altova MapForce 2020 Professional Edition

The example implements two event callbacks for MapForceControl custom events to show the principle:

 

<!-- ----------------------------------------------------------- -->
<!--  custom event 'OnDocumentOpened" of MapForceControl object  -->
<SCRIPT FOR="objMapForceControl" event="OnDocumentOpened( objDocument )" LANGUAGE="javascript">
  // alert("Document '" + objDocument.Name + "' opend!");
</SCRIPT>
 
<!-- ----------------------------------------------------------- -->
<!--  custom event 'OnDocumentClosed" of MapForceControl object  -->
<SCRIPT FOR="objMapForceControl" event="OnDocumentClosed( objDocument )" LANGUAGE="javascript">
  // alert("Document '" + objDocument.Name + "' closed!");
</SCRIPT>

© 2020 Altova GmbH