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
New Contributor
sertoltof
Posts: 7
Registered: ‎06-17-2013
My Device: Developer
My Carrier: 8172660366

Adding a WebWorks-Community-API extension to a project

I've been working on this for about 3 days now. I downloaded the webworks APIs here : https://github.com/blackberry/WebWorks-Community-APIs

 

All I want is to use the FileUpload API with my BlackBerry 7.1.0 webworks app. The instructions on the GitHub are wrong, and the instructions for adding a custom extension here:https://developer.blackberry.com/html5/documentation/using_javascript_extensions_1866976_11.html are nightmarishly difficult to decipher. 

 

Right now what I've tried is adding the webworks/io folder and the library.xml to a new folder in my SDK extensions called "blackberry.io.FileUpload". I then try to use the functions like a regular extension by calling webworks.io.FileUpload in my project. The feature IS included in my config.xml. However, every time I get the same error; that it "can't find variable: webworks".

 

Has anyone successfully pieced together how to add one of these API's to their project? 

Please use plain text.
New Contributor
sertoltof
Posts: 7
Registered: ‎06-17-2013
My Device: Developer
My Carrier: 8172660366

Re: Adding a WebWorks-Community-API extension to a project

Nevermind, I think I figured it out. For anyone else who wants to know this is a little bit clearer of a tutorial: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Building-a-BlackBerry-WebWorks-J...

 

The problem with the tutorial on the blackberry site is, I don't think it ever explicitly states that you have to package the library, AND the .java files together into a .jar file, and then have only that .jar in your extension folder. It shows only 1 jar at the very bottom, but the instructions never tell you. 

Please use plain text.
Developer
peardox
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Adding a WebWorks-Community-API extension to a project

Sadly there are some extensions which don't follow the rules

 

I suggest reporting it to @twindsor (guthib / twitter)

 

Dropped you in it again Tim (look on the bright side = working again)




Click the like button if you find my posts useful!
Please use plain text.