> try following the example again but write the page with a CSP extension,,
then call http://localhost/csp/<namespace>/classname.csp. -

How will I create a CSP page based on a CSP class? I mean, for example, in
the Form Wizard this class doesn't appear. So, I can't create a CSP
page...??

Is there another way, like using the INCLUDE tag? But this tag includes just
phisical files, isn't it?

My classe definition is the following:



Class User.Mostra Extends %CSP.Page [ ClassType = , ProcedureBlock ]
{

ClassMethod OnPage() As %Status
{
Set med=##class(User.T1).%OpenId(%request.Get("OBJID"))
Set beg=med.Begin
Set gap=med.Gap
Set end=med.End
Do med.%Close()
 &html< <html>
              <head>
              </head>
              <body>
              <form name="form" method="post" action="">
 >
Write "</table>",!!
Write "ID: "_(%request.Get("OBJID")),!!
Write "<table border=1>",!
For z=beg:gap:end {
    Write "<tr>",!
    Write "<td><input type='radio' value='"_z_"' name='horario'></td>"
    Write "<td>"_$zt(z,2)_"</td>"
    Write "<td>&nbsp;&nbsp;&nbsp;</td>"
    Write "</tr>",!
}
Write "</table>",!!
&html< </form>
             </body>
             </html>
 >
Quit $$$OK

 }

}






Thanks
Leonardo



Reply via email to