11-19-2009 08:57 AM
Hi
Where can I get documentation on all the availabale APIs for widgets and how to use them?
Thanls
Davy
Solved! Go to Solution.
11-19-2009 09:33 AM
I have been looking here but it seems out of date:
Iit says to use the features below but the blackberry message doesn't exist. I
<feature id="blackberry.message" version="1.0.0"/>
<feature id="blackberry.identity" version="1.0.0"/>
<feature id="blackberry.find" version="1.0.0"/>
I tried the code below and it failed on the first line.
var message = new blackberry.message.Message(); //fails here
message.toRecipients = "1-555-555-5555";
message.subject = "Hello";
message.body = "World";
message.send();
Any help appreciated
11-19-2009 12:23 PM - last edited on 11-19-2009 12:24 PM
Hi There,
The Widget API documentation is up to date. Can you specify which Web Plug-in you are using? (Eclipse or Visual Studio)
There is an XML file that was distributed with the tooling that is not up to date. You need to add a couple entries into the XML file and then the tooling will recognize it.
You need to add these sub elements to the <features> element found in the "library.xml" file.
<feature id="blackberry.find" version="1.0.0.0" required="true">The find feature allows for searching PIM data</feature> <feature id="blackberry.message" version="1.0.0.0" required="true">The message feature allows for accessing the Email message store</feature>
In the Visual Studio Web Plug-in, this "library.xml" file can typically be found in the default install path of "C:\Program Files\Research In Motion\BlackBerry Widget Packager\docs\library.xml"
In the Eclipse Web Plug-in "[Install Path]\plugins\net.rim.browser.tools.wcpc_1.0.0.xxx
Once you add these entries, "blackberry.find" and "blackberry.message" should appear in the tooling.
Turns out that that bug was my fault ![]()
11-19-2009 06:13 PM
Thanks, that did the trick.
Any more of these I should look out for/ ![]()
Davy
11-19-2009 09:06 PM
The other items that I know of are all listed in the known issues/release notes that were posted.. ![]()
Cheers,
11-20-2009 05:14 AM
ha ha - Yeah, I suppose I should read that.
Thanks
11-20-2009 12:49 PM
Hi there. I'm toying with the Push Demo Widget example, but I'm having trouble running it. I get it packaged up and installed in a simulator just fine, but at runtime blackberry.push is undefined. I've doublechecked that the <feature/> elements in config.xml are correct. Do I need to do something on the device (simulated) to enable/allow use of the blackberry.* APIs? BTW, I get a similar result when I run other Widget examples (ex. PIM widget example).
Here are some environment details:
Windows 7 32-bit
Widget Packager version 1.0.0.5.
MDS 4.1.4 simulator
9500 simulator with OS version 5.0.0.252.
Any ideas?
Thanks for the help,
CD
12-06-2010 10:13 PM
Did you ever get past this and if you did could you post the solution?
Thanks