Sending and viewing user messages and diagnostics

During portal runtime, any errors that are noted by the portal system are logged. Your scripts can also explicitly log or display messages using these APIs:

  • Debugging APIs:
    • LogMessage explicitly sends messages to portal diagnostics for debugging. You can also see the messages in the Windows Event Viewer. Portal diagnostics is explained in your portal administration guide.
    • LogError sends error messages to portal diagnostics for debugging. You can also see the messages in the Windows Event Viewer.
  • Debugging messages:
    • ShowMessage displays a message without requiring the user to dismiss it.
    • ShowModalMessage displays a message and requires the user to acknowledge it before continuing.
  • Messages requiring more sophisticated user interaction:
    • ShowModalSitePage displays a page where the user can perform some action.
    • CloseModalSitePage is called from the script of the modal page to close the page.