Child pages
  • Maintenance Mode

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

While the onOpen event handlers of pre-import and post-import hooks are being executed, any output printed with application.output will be redirected to the import log, which you can see in the Servoy Admin Page.

A simple example

Suppose you have a solution called "import_sample_01", with two modules called "before_import_01" and "after_import_01". The "before_import_01" module has the following onOpen event handler:

{{function onBeforeImportSolutionOpen()
{
application.output("Method executed before solution import.");
}}}

The "after_import_01" module has the following onOpen event handler:

{{function onAfterImportSolutionOpen()
{
application.output("Method executed after solution import.");
}}}

If you export this solution together with its two modules, and then you import it throught the Servoy Admin Page, in the import log you should see the lines

{{info Executing pre-import hook module 'before_import_01'.
info Method executed before solution import.}}

before any message related to the actual solution import, and also you should see the lines

{{info Executing post-import hook module 'after_import_01'.
info Method executed after solution import.}}

after all messages related to the actual solution import.