Creating the Sample

How to:

This topic describes how to create the sample namespaces, databases, and data for use with the iWay Application Adapter for MUMPS.


Top of page

x
Procedure: How to Create Sample Namespaces and Databases
  1. On the taskbar on the Windows desktop, right-click the Cache Cube icon, then click System Management Portal from the pop-up menu.
  2. Under System Administration in the System Management Portal window, click Configuration.
  3. Under System Configuration in the Configuration window, click Local Databases.
  4. In the Local Databases window, click Create New Database.
  5. In the Database Wizard window, in the field labeled Enter the name of your database, type IWAYS.
  6. In the field labeled Database directory, click Browse to navigate to and select the sample path to the named database, C:\InterSystems\Cache\Mgr\IWAYS, then click Next.
  7. In the Initial Size (MB) field in the Database Wizard window, type 10, and click Next.
  8. In the next window, click the Use the default resource, %DB_%DEFAULT radio button, and click Next.
  9. In the final Database Wizard window, click Finish.
  10. In the Local Databases window, under Create New Database, select IWAYS in the Name column, and click Edit.
  11. In the Maximum Size (MB) field in the Database Properties window, type 50 and in the Expansion Size (MB) field, type 10.
  12. In the Configuration window, under System Configuration, click Namespaces, and then click Create New Namespace.
  13. In the New Namespace window, in the field labeled Name of the namespace, type IWAYS.
  14. From the drop-down list for the field labeled Select an existing database, click the Associate Database named IWAYS.
  15. In the New Namespace window, click Save. You are returned to the Namespaces window. The newly created namespace, IWAYS, appears in the list of namespaces in the window.

Top of page

x
Procedure: How to Load Sample Data

Follow the steps below to load sample data.

  1. Right-click the Cache Cube Cache Cube Icon icon located on the taskbar and select System Management Portal.

    System Management Portal Routines Dialog Box

  2. The System Management Portal dialog box opens. Under the Data Management task list, click Globals.

    System Management Portal Global Dialog Box

  3. Select the Namespace, for example, IWAYS, and choose Import from the pull-down menu.

    System Management Portal Import Namespace Option

  4. In the Import Globals dialog box, click Browse to search for the global import file.

    Import Globals Dialog Box

    You can find the global input file in the following directory:

    \Install\SampleGlobals
  5. Click OK.

    Open - Windows Internet Explorer Window

  6. An Item box opens displaying a number of existing or non-existing files. Click Select All to ensure that all files are selected and click Import.

    Import Globals Items Dialog Box

    The results of your import screen are displayed in the following image.

    Note: To return to the System Management Portal, click [Home] on the left side of the screen.

To repeat the global import procedures for all .gbl and .go files, look in the ..\Install\SampleGlobals directory and click Globals in the Data Management task list.

Data Management Task List Window

The list of Globals in the Namespace appear, as shown in the following image.

List of Globals in the Namespace Window

To view one of the sample globals loaded in the previous step, select the primary subscript and click the 57501 link.

Viewing Sample Globals Window

The contents of the PT Global for subscript 57501 are displayed, as shown in the following image.

PT Global Contents Window



Example: Sample Request Document

A request may contain empty Subscript nodes to indicate a wildcard, in which case the service returns all globals in the specified range. If an incomplete set of subscripts is provided, the server assumes wildcards for those subscripts. For example,

<tns:GetGlobals xmlns:tns="http://schemas.ibi.com/iwmumps/services"
location="Mumps/GetGlobals">
  <tns:Namespace>SITEREG</tns:Namespace>
  <tns:Global>BI</tns:Global>
  <tns:Subscritps>
    <tns:Subscript></tns:Subscript>
    <tns:Subscript>461748</tns:Subscript>
  </tns:Subscritps>  
</tns:GetGlobals>

would match and return all of these globals:

^BI(2,461748,0)
^BI(2,461748,100)
^BI(2,461748,101)
^BI(2,461748,122)  
^BI(2,461748,122,1,0)
^BI(2,461748,122,1,0,0)
^BI(2,461748,122,1,2,0)

iWay Software