# Copy link
This action ensures that the URL of the selected BaseBean is copied to the operating system clipboard. Note that not the currently displayed URL is copied, but the detail view URL of the record.
It can be used freely for each module and also in different views
such as main
, detail
, or subpanel
are displayed.
Below is an example configuration of the action.
File name: copy_url.xml
<?xml version="1.0" encoding="UTF-8"?>
<action>
<label>L-GLOBAL-CO-COPY_URL</label>
<info default="true" />
<icon default="true" />
<min_beans>1</min_beans>
<max_beans>1</max_beans>
<views>
<view visible="true">detail</view>
</views>
</action>
In this example, the action is only executed for the one record which is currently displayed in the
Detail View. At this moment it is technically not possible,
specify multiple data sets in one URL. Because of this, the action is limited to
max_beans = 1
.
The action displays an information toast if the save in the clipboard was successful. In the event of an error, a corresponding Error Toast is displayed.