Adding a related program

A related program is a program that is being called from the main program. A related program is one that receives its input for further processing from the main program (or another related program).

For example, if you want to automate the process of printing a confirmed customer order, you need to first create a method that wraps the M3 Display Program, (OIS100). (OIS100) is used to create customer orders. Next, associate the program (OIS605) to automatically print the confirmed customer order. (OIS605) is an example of a related program which when chained with the main program (OIS100) gives rise to a single web service method.

  1. Open the method to which you want to add a related program.

    The details are displayed in the editor area.

  2. Select the main program (in this example OIS100) and click Add Related.

    The Select Configuration window is displayed.

  3. Select a configuration, and then click Next.
  4. Specify the M3 Server View user name and password, and then click Next.
    Note: Your M3 Server View user name and password are similar to your regular M3 login credentials.

    A list of system configurations is shown.

  5. Select a system configuration.
  6. Click Next.

    A list of M3 programs is displayed.

  7. Select the called program (in this case, OIS605) and click Finish.

    The program is displayed in the Wrapped Programs list.

  8. Open the related program and specify the panel sequence, input fields and output fields.