Completed OnPage Method
All we need to do is add two lines of code:
The first calls the CompleteOrder method, which we will add to the Utils class in a moment.
The second places a thank you message on the page.
—TicketConfirm.OnPage—
TicketConfirm.OnPage
ClassMethod OnPage() As %Status
{
&html<<html>
<head>
</head>
<body>>
Do ..CompleteOrder()
Write "Thank you for using Caché Cinema!<br>",!
&html<</body>
</html>>
Quit $$$OK
}
We will put the CompleteOrder method in Cinema.UtilsOpens in a new tab. Let's look at the method.