Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

カスタム検索ページの例

Contact.csp に追加された <csp:search> タグの属性を変更して、以下のようにします。


<csp:search name="form_search" classname="CSPTutorial.Contact"
  Where= "Name" select="Name,ContactType" options="popup,predicates" 
  onselect="update" order="Name"/>

この変更によって、既定の検索ページが以下のように変更されます。

  • 検索ページは、Contact Name フィールドで検索を実行します。

  • 検索結果にはそれぞれ、Name および ContactType フィールドが表示されます。

  • 検索ページに、検索述語のドロップダウン・リストが表示されます。

  • 検索結果は、Name フィールドを基準にして並べ替えられます。

変更後の検索ページは以下のとおりです。

generated description: searchmod120142

FeedbackOpens in a new tab