Copy to Clipboard
  • 16 Apr 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Copy to Clipboard

  • Dark
    Light

Article summary

Since 2.22.4, it’s possible to add copy to clipboard capabilities to Comflow tables.

  • Two new options for list segments: Enable Copy Row and Show Copy Rows Button.
  • Option Enable Copy Row will enable a right click action on list rows. The new action will copy what is displayed on the row in the client to the user's clipboard.
  • Option Show Copy Rows Button will enable and thereby display a copy rows action for the entire list. The new action will copy what is displayed on all row in the client to the user's clipboard.
  • Copied text will be in a format that can be copied into Excel or other spreadsheet applications.
  • Two external script libraries are used to enable copy to clipboard. SheetClip.js formats copied text in a standardized format with tabs and new line breaks. clipboard.js adds formatted text to the user's clipboard.

New options for list segments

copy-to-clipboard1

New actions for list segments in client

copy-to-clipboard2

New attributes

Segment in the PML has two new attributes: showCopyRowAction and showCopyRowsAction.

New constants

There are two new constants in metadata id CACORE, each for the two new actions: menu.copy.to.clipboard.constant and tooltip.copy.rows.constant.


External resources

  • SheetClip.js - The Javascript used to format copied text in a standardized format with tabs and new line breaks.
  • clipboard.js - The Javascript library used to add formatted text to the user's clipboard.



Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.