External links column renderer

Abstract

Represents one or more external link attributes as an icon that follows the constructed external link when clicked.
Note: This renderer can only be applied to tuples, not to entire business objects.

Parameter

images/download/attachments/106960961/27-07-_2022_14-38-50-version-1-modificationdate-1658928438441-api-v2.png

Owner type defines the business object type that has the 'External link' attribute. In this example, a shipment. All with matching field name is an optional regular expression which picks the external link attributes from all fields with matching name. In the example above, all fields starting with 'ext_'.

Example

A portal grid is to represent external links of broadcasts. It is assumed that two different external link types (Dynamische Aufzählungen) have been created in the system:
DEFAULT and SOME_OTHER_LINK.

The data grid is filled using a tuple search behaviour and the Grid: Füllen action:

images/download/attachments/106960961/27-07-_2022_14-56-06-version-1-modificationdate-1658928469403-api-v2.png

Besides the ID, the two external link attributes are loaded as projection 'link_SOME_OTHER_LINK' and 'link_DEFAULT'.

The data grid gets three columns with the data fields 'id', 'link_SOME_OTHER_LINK' and 'link_DEFAULT' matching the search.
For the two link columns, an 'External Links' column renderer is configured in the 'Column' category in each case:

images/download/attachments/106960961/27-07-_2022_15-09-08-version-1-modificationdate-1658928489806-api-v2.png
'Shipment' is specified as the type, since this is the type of the original link owner.
The regular expression for field names remains empty.

Test configuration

images/download/attachments/106960961/27-07-_2022_15-06-23-version-1-modificationdate-1658928480230-api-v2.png

As can be seen in the image above, the corresponding icons for the external links are displayed correctly. When the icon is clicked on, the corresponding external link will be opened.

Multiple/all external links in one column

The example is now extended by a fourth column, which should represent all external links from the shipment tuple.
The column does not need a data field for this. Only an 'External links' column renderer is deposited.

images/download/attachments/106960961/27-07-_2022_15-13-56-version-1-modificationdate-1658928501105-api-v2.png

Again with the 'Shipment' type, but this time with a regular expression that is supposed to represent all links whose projection names (field names) start with 'link_'.

If the sample configuration is tested again, the fourth column titled "All" represents both 'DEFAULT' and 'SOME_OTHER_LINK'.

images/download/attachments/106960961/27-07-_2022_15-17-01-version-1-modificationdate-1658928510204-api-v2.png