開発者向け機能:サーバスクリプト:view.FilterNegative
## 概要
「viewオブジェクト」の「FilterNegative」です。[サーバスクリプト](/ja/manual/table-management-server-script)で項目を否定の条件でフィルタする際に使用します。
## 前提条件
[否定フィルタを使用する](/ja/manual/table-management-filter-use-negative-filter)のチェックがオンになっていることが必要です。
## 使用例
以下の例では、分類Aを否定の条件でフィルタします。
##### JavaScript
```
view.Filters.ClassA = '東京都中野区';
view.FilterNegative('ClassA');
```
### 使用前
![image](https://pleasanter.org/binaries/d01b007eb6f64b68baeedf779bcbfc0e)
### 使用後
一覧画面で自動的にフィルタがセットされ、否定の条件でレコードが表示されます。
![image](https://pleasanter.org/binaries/a1999e34bf9441c9a95d7b58be8358f0)
## 対応バージョン
|対応バージョン|内容|
|:--|:--|
|1.3.21.0 以降|機能追加|
## 関連情報
<div id="ManualList"><ul><li><a href="/en/manual/table-management-filter-use-negative-filter">テーブルの管理:フィルタ:否定フィルタを使用する</a><span>06.03.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/server-script">Developer Function: Server Script</a><span>08.14.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/faq-server-script-log">FAQ: I want to output the error log of a server script</a><span>08.14.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />