Skip to main content

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 tab