オブジェクト・データの使用
単純に #( ... )# 内に Title など、Film オブジェクトのプロパティを配置することで、これらを使用することができます。
<b>Today's Show Times for #(Film.Title)#</b>
この Film オブジェクトを使用後にクローズすることについては、心配する必要はありません。Caché が自動的にオブジェクトをクローズします。
—ShowTimes.csp—
ShowTimes.csp
<html> <body>
<csp:class encoded=1>
<csp:query
name="Times"
classname="Cinema.Show"
queryname="ShowTimes"
P1='#(%request.Data("FilmID",1))#'>
<csp:object
name="Film"
classname="Cinema.Film"
objid='#(%request.Data("FilmID",1))#'>
<font color="#0000FF" size="+2">
<b>Today's Show Times for #(Film.Title)#</b>
</font>
<table cellpadding=5>
<tr>
<td><b>Time</b></td>
<td><b>Theater</b></td>
</tr>
<csp:while condition="Times.Next()">
<tr>
<td>#(Times.Get("StartTime"))#</td>
<td>#(Times.Get("TheaterName"))#</td>
</tr>
</csp:while>
</table>
</body> </html>