Adding documents and images in the media component

The media shown in the component is stored in Infor Document Management(IDM). IDM links are built in the IDM application. To get the IDM link, search for a document and select Enter query manually.

  1. Click the Configure button or hover over the media component and click the Configure icon.
  2. Specify a unique Component ID. We recommend that you specify the Component ID with a Media_ prefix.
  3. Click the General Settings tab, specify the Component Heading. The specified component heading is displayed as the media component heading. To enable the translation keys, enclose the name in <> and do not include spaces.
  4. Specify the maximum number of documents to show on the media component.
  5. Click the Media Search tab and select Text area.
  6. From Infor Document Management, copy the query for the document.
    To get the IDM query, search for the document in IDM and select Enter query manually.
  7. In the Query field, paste the copied query.
  8. Change the values that must be taken from other components with this expression:
    {componentID.SourceField}
    For example, to get the customer number from a field in the index list called IndexList_Customers, use this expression:
    {IndexList_Customers.CUNO}
  9. Click the Interactions tab and click + Add. By default, the media component contains two interactions in order to use its two default buttons, Download and Launch.
    Source Component

    To show a document in the media component, select a source component that triggers this interaction. Select the media component, other components, or the application.

    Component Element

    Optionally, select a button from the list to identify which part of the source component may trigger the event. You can only select buttons that are added in the selected source component. Component element is only used when you use a button as part of the interaction.

    Event
    Select an event that triggers the media component. The event can be when the media component, other components, or the application loads, is selected, refreshed, or when a search field is used.
    Operation

    You must select document as the operation in the media component to display images and components.

    Note:  If you select the application as the source component, the Load event and Read operation are automatically selected.
  10. Click the Toolbar tab and click +Add to add buttons in the media component. Select from any of these toolbar options:
    • Standard button: This is a preconfigured button with label, style, and icon.
    • Custom button: Selecting this option allows you to configure your own custom button.

    By default, the media component contains two button: Download and Launch.

  11. Specify this information to configure the custom button:
    ID

    Specify an ID for the button. For reference, see Naming recommendation for components.

    Label

    Specify the name of the button to display in the component. To enable the translation keys, enclose the name in <> and do not include spaces.

    See Configuring translations.

    Style

    Select the button style: Icon only, Text only, or Icon+Text.

    Icon

    If you select Icon, or Icon+Text from the Style field, select an icon from the Icon list.

  12. To separate buttons with a vertical line on the component, select +Add and then Separator. You can rearrange the order of the buttons and separators by clicking the vertical dots in the row and drag the row up or down in the list.
  13. To save the configuration for the media component, click Save.
  14. To ensure that the media component you added and configured is applied, click the Save button on the application.