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 計算式プラグイン テーブル指定行のコピー

Last updated at Posted at 2025-04-28

計算式プラグインを使って、テーブル指定行のコピーを行ってみます。

概要

コピー開始行とコピー終了行で指定されたテーブル1の行をテーブル2 にコピーします。

2025-04-28_14h10_38.png

操作例

2025-04-28_14h17_53.gif

計算式プラグイン設定

TABLE_DATA 関数と TABLE_MAP 関数の組合せで、テーブルのコピーを行うことが出来ます。
TPFILTER で、テーブル行の指定範囲を抽出します。
TPDIC で、コピーする項目を指定します。

2025-04-28_14h12_21.png

OPTION: 

// テーブル1.番号T1 NUMBER
ROWNO(テーブル1)+1

// テーブル2 SUBTABLE
TABLE_DATA(
  TABLE_MAP(テーブル1,
    TPFILTER(AND(
      (ROWNO(テーブル1)+1)>=コピー開始行, 
      (ROWNO(テーブル1)+1)<=コピー終了行
    )),
    TPDIC(
      "番号T2",番号T1,
      "日付T2",日付T1,
      "ドロップダウンT2",ドロップダウンT1,
      "数値T2",数値T1
    )
  )
)

// テーブル2.番号T2 NUMBER
// テーブル2.日付T2 DATE
// テーブル2.ドロップダウンT2 DROP_DOWN
// テーブル2.数値T2 NUMBER
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?