Skip to content

Share Code

Overview

This is a function to share the code of "Server Script". Checking the Share check box in the "Server Script" conditions will load the code at the beginning of other server scripts.

Limitations

  1. At run time, the code to be executed is generated according to the TryCatch and Functionalize settings of each server script, and the shared code is inserted at its beginning.
  2. The TryCatch, Functionalize, and //debug// (see Debug) settings are not applied to a server script with the "Shared" check box turned on.
  3. If you want to apply TryCatch or Functionalize to a server script with the "Shared" check box turned on, write a try-catch clause or an anonymous function directly in the code. However, because this creates a block scope, the calling server script may not be able to reference the code, so verify it thoroughly.

Supported Versions

  1. Pleasanter 1.1.37.0 or later
  2. Pleasanter .NET Framework version 0.50.261.0 or later