User Manual

10.04.2024

MANUAL

Developer Function: Server Script: dept

## Overview This is an object for reading "[Depts](/en/manual/dept)" information in "[Server Script](/en/manual/table-management-server-script)". It is retrieved using the Get method of the "depts object". ## Properties |No|Property name|get|set|type|Description| |:----|:----|:----|:----|:----|:----| |1|DeptId|Yes|No|int|Department ID| |2|DeptCode|Yes|No|string|Department code| |3|DeptName|Yes|No|string|Department name| ## Method |No|Name|Description| |:---|:---|:---| |1|[GetMembers](/manual/server-script-dept-get-members)|Get the "user object" of the users who belong to the group. | ## Usage Example In the example below, the "dept object" of the department to which the logged-in user belongs is retrieved, and the department code and department name are output to the log. ``` let myDept = depts.Get(context.DeptId); if (myDept) { context.Log(`${myDept.DeptCode},${myDept.DeptName}`); } ``` ## Related Information <div id="ManualList"><ul><li><a href="/en/manual/table-management-choices-text-depts">Table Management: Editor: Item Detail Settings: Option List: Departments</a><span>08.13.2024 up</span></li></ul></article> <ul><li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article> <ul><li><a href="/en/manual/dept">Department Management Function</a><span>08.13.2024 up</span></li></ul></article> <ul><li><a href="/en/manual/server-script-depts">Developer Function: Server Script: depts</a><span>08.14.2024 up</span></li> <li><a href="/en/manual/server-script-dept-get-members">Developer Function: Server Script: dept.GetMembers</a><span>08.14.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.