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 計算式プラグイン 組織情報をテーブルへセット

Posted at

rex0220 計算式プラグインで、組織情報をテーブルへセットしてみます。

概要

組織選択項目で選択された組織のID,コード,組織名をテーブルにセットします。

2025-04-10_10h51_21.png

計算式プラグイン設定

OINFO 関数を利用する場合は、「ユーザー情報」をチェックします。

2025-04-10_10h53_36.png

OPTION: ユーザー情報

// 所属する組織 SUBTABLE
TABLE_DATA( // テーブル作成
  ARRAY_MAP(OINFO(SEL_CODE(組織選択,"array"),"id,code,name"),x,
    LET(w, SPLIT(x,","), // カンマ分割
      DIC(
        "組織ID", ARRAY_GET(w,0), // ID取得
        "組織コード", ARRAY_GET(w,1), // コード取得
        "組織名", ARRAY_GET(w,2) // 名称取得
      )
    )
  )
)

// 所属する組織.組織ID SINGLE_LINE_TEXT
// 所属する組織.組織コード SINGLE_LINE_TEXT
// 所属する組織.組織名 SINGLE_LINE_TEXT

SEL_CODE の実行例

SEL_CODE(組織選択,"array") -> ["総務部","sales","dev"]

OINFO の実行例

OINFO(SEL_CODE(組織選択,"array"),"id,code,name") -> ["3,総務部,総務部","1,sales,営業部","2,dev,開発部"]

SPLIT の実行例

SPLIT("1,sales,営業部", ",") -> ["1","sales","営業部"]

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?