User Manual

08.13.2024

MANUAL

Table Management: Server Script

## Overview By using the "「Server Script」" function, you can achieve conditional branching and complex calculations with simple code that could not be achieved with the conventional "[Script](/en/manual/table-management-script)" function executed on the client side. Also, unlike the "[Script](/en/manual/table-management-script)" function executed on the client side, the "「Server Script」" function is executed at the timing of adding/updating records by importing or operations by API. ## Operation Procedure ![image](https://pleasanter.org/binaries/59a1b7a580464ba8ae71d7579e1345ef) With the table open, click "Manage" > "[Table Management](/en/manual/table-management)" from the navigation menu. *This will not be displayed to users who do not have "Site Administration Permission". ![image](https://pleasanter.org/binaries/8c188bbb23384a93a66ff4bb97e1ae72) Click the Server Script tab from Table Management to open it. ![image](https://pleasanter.org/binaries/9f27fe7d6ca94d41b624ade3bfc41457) |Item name|Description| |:---|:---| |Title|Arbitrary script title| |Script|Arbitrary script| |Timeout|Specify server script timeout in milliseconds(*)| |Conditions|Select conditions to execute| *ServerScriptTimeOutChangeable in "[Script.json](/en/manual/script-json)" can be specified by enabling it (true). ## Setting Example Set a server script to be executed before creating a new record. ![image](https://pleasanter.org/binaries/98193edfe8064ac4806a977a2083047a) ・[Execution timing for each object](/manual/server-script-conditions) ## Sample Code Here, insert a value into each item. ```Javascript model.ClassA = 'Test'; model.DescriptionA = 'Test'; model.NumA = 123; model.CheckA = true; ``` ## Execution Result Enter only the title and click the Create Record button. ![image](https://pleasanter.org/binaries/6b6aa5821e9c45b0a06280aecd774598) A script that specifies before creation as the execution condition for the server script is executed, and the specified values ​​are inserted into each item before the record is created. ![image](https://pleasanter.org/binaries/8ec1a1d6c72a49719a592268d9d243e7) ## Related Information <div id="ManualList"><ul><li><a href="/en/manual/script-json">Set Parameter: Script.json</a><span>10.02.2024 up</span></li></ul></article> <ul><li><a href="/en/manual/table-management">Manage Table</a><span>10.02.2024 up</span></li></ul></article> <ul><li><a href="/en/manual/table-management-script">Table Management: Script</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.