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.
- Click the Configure button or hover over the media component and click the Configure icon.
- Specify a unique Component ID. We recommend that you specify the Component ID with a Media_ prefix.
- 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.
- Specify the maximum number of documents to show on the media component.
- Click the Media Search tab and select Text area.
-
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.
- In the Query field, paste the copied query.
-
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}
-
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.
-
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.
-
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.
- 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.
- 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.
- To save the configuration for the media component, click Save.
- To ensure that the media component you added and configured is applied, click the Save button on the application.