Caché Web Services QuickStart Tutorial
Compiling and Populating the Sample Application
After you've installed the sample Caché application compile the classes and then populate Contact
with sample data.
Open the class in Studio.
on the Studio Menu Bar.
Once you have successfully compiled Contact
you can populate them with data. Run the population utility from Terminal. Complete the following steps for Contact
and then for PhoneNumber
Launch Terminal from the Caché cube.
At the Terminal prompt, use the ZN
command to switch to the namespace containing your classes. For example, if the Terminal opens in SAMPLES
and your classes are in USER
, do the following:
Next, use the populate utility to create a few instances of Contact
. Here is the command to create five instances:
Note that the command requires that your provide the package name along with the classname using the PackageName.ClassName
's first argument, 5 in this case, specifies the number of instances to create. Passing a 1 in Populate
's second argument causes the utility to provide feedback as it creates each instance.
You cannot create instances of PhoneNumber
before you create instances of Contact
. This is because the two classes form a parent-child relationship with Contact
as the parent. Each PhoneNumber
instance must belong to a Contact
© 1997-2019 InterSystems Corporation, Cambridge, MA