M3_H5_IDM_DocumentIndicator
Use this script in any M3 program which has data grid component where this script uses a green border-right color on a specific field to indicate an one or more documents connected to IDM. Based on the script argument that is configured, information for each individual row in the data grid is passed to an IDM API which enables the script to detect if there are one or more documents connected to IDM. If only one or more documents are connected to IDM, the indicator is made visible in the specific field on the data grid.
An argument usually uses these values that are separated by commas:
- The first argument pertains to the field in the data grid. The simplest way to get the name of the field is to right-click the column and click and take the value that gets displayed in Search (IES Textbox), minus the colon and add that as the first script argument.
- The second and third arguments are the type and attribute of the IDM document. This information can be found by checking on the IDM for a specific attachment.
- The fourth argument can be easily obtained by taking the Endpoint URL from Infor ION
API. To do this, navigate to
https://mingle-abc-xxx.inforcloudsuite.com/ABC_EXAMPLE
. Click documentation of any Endpoint to get the Endpoint URL, that is, to
be used including the tenant:
Examples of arguments are as follows:
- Argument to be used in 'Item. Open'
(MMS001):
ITNO,MDS_GenericDocument,MDS_id1,https://mingle-abc-xxx.inforcloudsuite.com/ABC_EXAMPLE
Argument Example Optional Field ITNO No IDM document type MDS_GenericDocument No IDM document attribute MDS_id1 No Tenant URL https://mingle-abc-xxx.inforcloudsuite.com/ABC_EXAMPLE No - Argument to be used in 'Customer. Open' (CRS610) to indicate on 'Customer Number' field on
the data
grid:
CUNO,MDS_GenericDocument,MDS_id1,https://mingle-abc-xxx.inforcloudsuite.com/ABC_EXAMPLE
Argument Example Optional Field CUNO No IDM document type MDS_GenericDocument No IDM document attribute MDS_id1 No Tenant URL https://mingle-abc-xxx.inforcloudsuite.com/ABC_EXAMPLE No - Argument to be used in 'Customer Order. Open Toolbox' (OIS300) to indicate on 'Customer
Order Number' on the data
grid:
ORNO,MDS_GenericDocument,MDS_id1,https://mingle-abc-xxx.inforcloudsuite.com/ABC_EXAMPLE
Argument Example Optional Field ORNO No IDM document type MDS_GenericDocument No IDM document attribute MDS_id1 No Tenant URL https://mingle-abc-xxx.inforcloudsuite.com/ABC_EXAMPLE No
APIs used for this H5 script include ION APIs for IDM. To know more about the available ION APIs, contact your system administrator.