Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

The OnPage Method

Next we change the contents of the OnPage method as follows:

ClassMethod OnPage() As %Status
{
    &html<<html>
    <head>
    </head>
    <body bgcolor="#FFEEEE">>

    // invoke Showmenu to display the menu
    Do ..ShowMenu("/xml/menu.xml")

    &html<</body>
    </html>>
    Quit $$$OK
}
Note:

We have hard-coded the path name for the XML menu document to /xml/menu.xml. Make sure you use a path that matches where you have stored your XML menu document.

FeedbackOpens in a new tab