Creating Data Service using MI
- On the application, click the Manage Data Services icon.
- In the Data Services Configuration window, click + Add.
- Specify a name for the data service. See Naming recommendation for data services.
- Optionally, provide a description for the data service.
- To create a transaction, click + Add data service and select API transactions.
- Specify the name of transaction.
- In the Type field, select MI.
-
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.
Note: The possibility to show more than 100 records should only be used in data grids. You should not increase number of returned records for the index list. -
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. To use user related information as input, select User Context as the source, and the user data you need to use in Source Field.
- 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}. - Click Save in the Data Services Configuration window.
- Click the Save button on the application.