Discussions

 View Only
  • 1.  I Got My Clipboard

    Posted 05-12-2018 04:09
    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


  • 2.  RE: I Got My Clipboard

    Posted 05-13-2018 23:05
    Thx for sharing that tip.  I can see where that can be useful.


  • 3.  RE: I Got My Clipboard

    Posted 05-13-2018 23:23
    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.


  • 4.  RE: I Got My Clipboard

    Posted 05-13-2018 23:27
    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.


  • 5.  RE: I Got My Clipboard

    Posted 06-21-2018 04:20
    Can you paste into grid edit?


  • 6.  RE: I Got My Clipboard

    Posted 03-05-2019 16:01
    Doesn't seem to work, I clicked on copy on your demo "https://haversineconsulting.quickbase.com/db/bnpjas7yc?a=dr&rid=1" and nothing happens :(


  • 7.  RE: I Got My Clipboard

    Posted 07-15-2019 22:51
    Linking to a solution that seems easy to implement
    https://community.quickbase.com/quickbase/topics/copy-to-clipboard-button