This is the README file for SAMPLES-ObjectScript. The end of the file has setup instructions.
Use or operation of this code is subject to acceptance of the license available in the code repository for this code.
SAMPLES-ObjectScript is meant for use with the InterSystems IRIS Data Platform. This code sample is intended to be used with the ObjectScript Tutorial.
ObjectScript folder contains 10 files:
RightTriangle.clsis a simple example of a class definition with a few methods.
Examples.clscontains all the examples of methods shown throughout the tutorial.
DataEntry#.clsfiles (1-4) contain the solutions to exercises 1-4.
Lookup#.clsfiles (5-7) contain the completed solutions to exercises 5-7.
Person.clsa simple example of a persistent class.
To set up the sample:
Make sure you have docker and git installed.
# docker-compose build # docker-compose up -d
This will run IRIS in docker container with port for Control Panel on 52791 and will import all the code into SAMPLES namespace. 3. Open the terminal to IRIS with:
# docker-compose exec iris iris session iris USER>zn "SAMPLES" SAMPLES>w ##class(ObjectScript.Examples).DoubleByVal(2) 4
Work with tutorial