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?

CSP:Object タグ HTML

ページに追加した HTML を見てみましょう。

<csp:object> タグは、name、classname、および objid の 3 つの属性を持っています。式であるため objid の値が #( ... )# で囲まれているということに注目してください。

—ShowTimes.csp—
ShowTimes.csp
<html> <body>
<csp:class encoded=1>
<csp:query 
        name="Times" 
        classname="Cinema.Show" 
        queryname="ShowTimes"
        P1='#($Get(%request.Data("FilmID",1)))#'>

<csp:object 
        name="Film" 
        classname="Cinema.Film" 
        objid='#($Get(%request.Data("FilmID",1)))#'>

<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>
FeedbackOpens in a new tab