Skip to main content

Creating a CSP Class

To create a CSP class, do the following:

  1. Start Studio and connect to the USER namespace.

  2. 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.

  3. In the first page of New Class Wizard, enter the package name, “TXML”, and the class name, “Menu”. Press the Next button.

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