Good evening!
I'd like to know how to execute a method in a CSP that writes the content of
my page. The following example I got from a CSP class, but I don't want use
a CSP class. I want a CSP page. A question about CSP classes: to execute
them, I type in the browser: http://localhost/csp/<namespace>/classname.cls.
Does this class creates some kind of phisical file, such as a csp file? I
mean, the classname.cls exists just in my database (definition of the class)
or I can edit the file, if it exists?

The example is:

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