コンテンツにスキップ
「プリザンター入門」発売中!

開発者向け機能:サーバスクリプト:view.OnSelectingWhere

概要

viewオブジェクトのOnSelectingWhereです。サーバスクリプト拡張SQLOnSelectingWhereを動的に指定する際に使用します。

使用例

以下の例では、ユーザID 3 以外のユーザに Name が SelectingWhereName の拡張SQLを適用します。

JavaScript
1
2
3
if (context.UserId !== 3) {
    view.Filters.OnSelectingWhere = 'SelectingWhereName';
}
JSON
{
    "Name": "SelectingWhereName",
    "SpecifyByName": true,
    "OnSelectingWhere": true,
    "CommandText": "([Issues].[Status]=900)"
}

対応バージョン

対応バージョン 内容
1.2.2.0 以降 機能追加

関連情報