読み取り専用。コレクションが全文検索などの検索から生成されている場合、文書コレクションを生成した照会の文字列を示します。
使用法
検索を行わずに生成されたコレクションの場合、このプロパティは空ストリングを返します。
例
文書コレクションを処理するボタンは、
NotesDocumentCollection オブジェクトをグローバル変数に割り当てます。以下の計算結果フィールドは、このグローバル変数を照会して、ソートされている場合にはその照会を表示します。
var dc:NotesDocumentCollection = requestScope.dc;
if (dc != null) {
return dc.isSorted() ? "Indexed on " + dc.getQuery() : "Unsorted collection";
}
言語間の参照
LotusScript® NotesDocumentCollection クラスの
Query プロパティ
Java™ DocumentCollection クラスの Query プロパティ