Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 46
Registered: ‎02-16-2011
My Device: 8300>9000>9700>9900>Z10
My Carrier: Vodafone

Webworks copy and paste

Hi, i'd like to be able to allow users to copy information to the clipboard by pressing a button in a webworks app and have it pastable in other apps etc.
Does anyone know how this might be possible?
PS, this is for playbook and smartphone ideally
Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Webworks copy and paste

This is sorely missing from the Webworks API for PlayBook.

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
New Contributor
Posts: 6
Registered: ‎03-26-2011
My Device: Playbook
My Carrier: none

Re: Webworks copy and paste

So I just implemented copy/paste for my webworks app.  Huge thanks to Will Robertson for posting up the solution!  

http://www.willw.net/enabling-copy-and-paste-in-a-webworks-app-for-the-blackberry-playbook/

 

Apparently, all you have to do is change a couple settings in a configuration file from 'false' to 'true' to allow selecting and copy/paste.  Then, after you compile and deploy your app, you should get this functionality within all apps that you compile.  I just implemented it for my app and it works great (at least on the simulator).

 

Basically, just make sure the following two environment variables are set to true in the file "path_to_your_sdk/bbwp/AirAppTemplates/src/blackberry-tablet.xml"

 

<env var="WEBKIT_CONTEXT_MENU_SUPPORTED" value="true"/>

<env var="WEBKIT_SELECTION_SUPPORTED" value="true"/>

 

Regular Contributor
Posts: 97
Registered: ‎06-16-2009
My Device: Not Specified

Re: Webworks copy and paste

Can this be done in Webworks for BlackBerry?

New Contributor
Posts: 6
Registered: ‎03-26-2011
My Device: Playbook
My Carrier: none

Re: Webworks copy and paste

yes, this is for webworks for blackberry playbook.  

Highlighted
Retired
Posts: 518
Registered: ‎07-18-2011
My Device: Bold
My Carrier: Rogers

Re: Webworks copy and paste

On a blackberry the user should always have access to the copy and paste options from the BB Menu.



1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)