External links column renderer
Parameter
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:
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:
'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
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.
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'.