Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRISOpens in a new window, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions pageOpens in a new window (login required).

Hands-On Exercise 4

generated description: handson.gif

The best way to understand what's happening with the globals ^PersonD (for data) and ^PersonI (for indices) is to try it yourself in your mydatent routine.

  • Add a line to the main procedure that calls the store procedure after display.

  • Add a line to the $$validPhone function that checks to see if the phone number already exists in the phone index.

  • Copy the store procedure (from the Step-by-Step Guide) into your routine.

  • Compile and run the routine, and store one person's data.

  • Look at the globals. In the Management Portal, in the SAMPLES namespace, click System Explorer > Globals. Find the entries for ^PersonD and ^PersonI, and click View for each one.

  • Run the routine again, and store a few more people. Look at the globals again, especially ^PersonI.

For instructions, click below.

generated description: stepbystep.gif

FeedbackOpens in a new window