Creating a CSP Class
To create a CSP class, do the following:
-
Start Studio and connect to the USER namespace.
-
Click File–>New on the Studio menu bar. Click the General category and then the Caché Class Definition icon. This launches the New Class Wizard.
-
In the first page of New Class Wizard, enter the package name, “TXML”, and the class name, “Menu”. Press the Next button.
-
In the second page of the New Class Wizard, select the CSP radio button and press the Finish button.
At this point, you will have a new CSP class, TXML.Menu, with an (almost) empty OnPage method:
Class TXML.Menu Extends %CSP.Page
{
ClassMethod OnPage() As %Status
{
&html<<html><head></head><body>>
; to do
&html<</body></html>>
Quit $$$OK
}
}