User Manual

08.14.2024

MANUAL

Developer Function: Server Script: context.UserData

## Overview Provide the ability to share data between "[Server Script](/en/manual/table-management-server-script)". ## Supported Versions 1. Pleasanter 1.1.13.0 or later 1. Pleasanter .NET Framework version 0.50.219 or later ## Properties Since it is an ExpandoObject, you can add properties with any name. ## Method There are no methods. ## Usage Example In the example below, the first server script stores the information retrieved from the database in the user data MyData, and the second server script outputs the number of data items stored in the user data MyData to the log. The first condition is checked as "Before Update" and the second as "After Update". ##### JavaScript ``` // First server script let results = items.Get(10); context.UserData.MyData = results; ``` ##### JavaScript ``` // Second server script let results = context.UserData.MyData; context.Log(results.Length); ``` ## Related Information <div id="ManualList"><ul><li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.