I Got My Clipboard

  • 39
  • 1
  • Question
  • Updated 6 months ago
  • Doesn't Need an Answer
  • (Edited)
Google recently implement the new Async Clipboard API in Chrome 66 so I had to give it a try with QuickBase.

This application demonstrates you can copy any text to the clipboard with the click of a button:



I Got My Clipboard ~ View Record

https://haversineconsulting.quickbase.com/db/bnpjas7yc?a=dr&rid=1

Clicking the "Copy to Clipboard" button on the record will place the following formatted text onto the clipboard:

Salvador Duke
Ap #811-1129 Lorem, Street
Rangiora, SI 6438

Pastie Database
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=654

Notes:

(1) Copying QuickBase data from the clipboard may well save manual processing steps if you have a downstream program which can receive the pasted data.

(2) The same Async Clipboard API used in the demo to copy text from a fields in a single record to the clipboard could also copy text from multiple records to the clipboard. Even non-record information such as users, permissions or audit information could be copied to the clipboard.

(3) The same Async Clipboard API used in the demo can be used to paste data into QuickBase along with any formatting and parsing that would be needed.

(4) Additional information on using the Async Clipboard API can be found here:

Unlocking Clipboard Access

https://developers.google.com/web/updates/2018/03/clipboardapi

(5) There are other methods to manipulate the clipboard with JavaScript however the Async Clipboard API is on a standards track:

Clipboard API and Events
https://www.w3.org/TR/clipboard-apis/#async-clipboard-api
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 27,784 Points 20k badge 2x thumb

Posted 7 months ago

  • 39
  • 1
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 52,908 Points 50k badge 2x thumb
Thx for sharing that tip.  I can see where that can be useful.
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 27,784 Points 20k badge 2x thumb
That is an understatement. You could copy an entire blob of CSV to the clipboard or gather up all the user info for an application and place this info into the clipboard.

Likewise, you can take contents of the clipboard (perhaps taken from another application) and process the clipboard contents to parse out fields values into a form or a blob of CSV data to import into a table.
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 52,908 Points 50k badge 2x thumb
I agree, It's a really interesting way to have a low tech powerful data transfer method between QuickBase and another system in either direction.  I'm thinking now about my clients who are on mainframe systems to consider the opportunities.
Photo of Sam

Sam

  • 10 Points
Can you paste into grid edit?