User Manual

08.14.2024

MANUAL

Developer Function: Server Script: group.ContainsDept

## Overview Determine whether the "group object" in the "[Server Script](/en/manual/table-management-server-script)" contains the specified "[Depts](/en/manual/table-management-choices-text-depts)". ## Syntax ``` group.ContainsDept(deptId) ``` ## Return Value If the specified "[Depts](/en/manual/table-management-choices-text-depts)" is included, it returns true.; if not, it returns false. ## Usage Example The following example checks whether the "[Group](/en/manual/table-management-choices-text-groups)" with group ID 1 contains the "[Dept](/en/manual/table-management-choices-text-depts)" of the logged-in user. ##### JavaScript ``` let group = groups.Get(1); if (group.ContainsDept(context.DeptId)) { context.Log('contains'); } else { context.Log('not contains'); } ``` ## 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> <li><a href="/en/manual/table-management-choices-text-groups">Table Management: Editor: Item Detail Settings: Option List: Group</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/group">Group Management Function</a><span>10.08.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.