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?

クエリ・データの追加 2

同じ方法を使用して結果セットから他の値 CategoryNameLength、および Rating を取得します。すべてのデータを 1 つのテーブル・セル、つまり、1 対の <td></td> タグの間に入れることに注意してください。データ要素のテキスト・ラベルも <b></b> タグで囲んで、ページ上で目立つようにします。

完成したメソッドは以下のとおりです。

—TopPicks.csp—
TopPicks.csp
<html> <body>
<h2><font color="#0000FF">Today's Top Picks</font></h2>
<table border=0>
<csp:query name="FilmList" classname="Cinema.Film" queryname="TopFilms">
<tr>
    <td>
    <b>#(FilmList.Get("Title"))#</b><br>
    #(FilmList.Get("Description"))#<br>
    <b>Genre</b>
    #(FilmList.Get("CategoryName"))#
    <b>Length</b>
    #(FilmList.Get("Length"))#
    <b>Rating</b>
    #(FilmList.Get("Rating"))#<br> <br>
    </td>
    <td></td>
</tr>
</table>
</body></html>
FeedbackOpens in a new tab