Creating Data Service using MI

  1. On the application, click the Manage Data Services icon.
  2. In the Data Services Configuration window, click + Add.
  3. Specify a name for the data service. See Naming recommendation for data services.
  4. Optionally, provide a description for the data service.
  5. To create a transaction, click + Add.
  6. Specify the name of transaction.
  7. In the Type field, select MI.
  8. Click the Properties tab and specify this information:
    Program
    To view the list of API programs, click the browse icon and select from the program list.
    Transaction
    To view the list of valid transactions, click the browse icon and select from the transaction list.
    Max Number of Records
    Specify the maximum number of transaction records to display. The default value for the maximum number of records is 50.
  9. Click the Input tab and specify this information:
    Source
    If input is required, select a component or dialog from which the input value is retrieved. To be displayed in the source list, the components and dialog windows must exist with component IDs. If a source is not yet in the source list, create a source and specify a component ID.
    Source Field
    Select a field from the source you specified to use it as an input.
    Value
    You can specify a hard-coded value such as a number or a letter. You can also customize the input value based on which record is selected by specifying the Source and the Source field in the {componentID.SourceField} format in the Value column.
    For example, a data service is required to show the basic information about the items in a form component. The information shown in the form is based on which item is selected in the index list that contains a list of items. The component ID of the index list is IndexList_Items. The configuration of the data service must be:
    Program
    Select MMS200MI.
    Transaction
    Select Get.
    Source
    Specify IndexList_Items.
    Source field
    Specify ITNO.
    We recommend that you use Value instead of specifying a source and source field when the input is a search query where you combine static data with an input from another component. For example, ITNO: {IndexList_Items.ITNO}.
  10. Click Save in the Data Services Configuration window.
  11. Click the Save button on the application.