0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

rex0220 計算式プラグイン 組織選択項目の組織メンバー(TABLE_DATA版)

Posted at

計算式プラグインで組織選択項目の組織メンバーをTABLE_DATA関数でテーブルにセットします。

概要

rex0220 計算式プラグイン 組織選択項目の組織メンバーのTABLE_DATA関数版です。
テーブルにデータをまとめてセットする分、わかりやすいと思います。

※ 計算式プラグイン Ver.94 以降

2025-07-20_14h31_57.png

計算式プラグイン設定

OUSERS 関数で、選択された組織のユーザーを取得し、TABLE_DATA 関数でテーブル設定情報にまとめます。

2025-07-20_14h33_25.png

OPTION: 非同期計算, ユーザー情報

// 組織名 SINGLE_LINE_TEXT
SEL_NAME(組織選択,"text")

// 組織コード SINGLE_LINE_TEXT
SEL_CODE(組織選択,"text")

// テーブル SUBTABLE
LET(
  users, OUSERS(SEL_CODE(組織選択, "array")),
  TABLE_DATA(ARRAY_MAP(users, xx,
    DIC(
      "ユーザー選択", UINFO(xx, "setData"),
      "社員番号", UINFO(xx, "employeeNumber")
    )
  ))
)

// テーブル.ユーザー選択 USER_SELECT
// テーブル.社員番号 SINGLE_LINE_TEXT
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?