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?

オブジェクト・データの使用

単純に #( ... )# 内に 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>
Note:

このチュートリアルを次に進む場合は、ここをクリックしてください。

FeedbackOpens in a new tab