Widget API Help

Hello

Where can I get documentation on all the API availabale for widgets and how to use them?

Thanls

Davy

Hello

The Widget API documentation is up-to-date.  You can specify what plugin you use Web? (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 few entries in the XML file and then tooling will recognize it.

You must add these sub-elements of the element in the file "library.xml".

The find feature allows for searching PIM data
The message feature allows for accessing the Email message store

Visual Studio Web plug-ins, this "library.xml" file usually located in the "C:\Program Research In Motion\BlackBerry Widget Packager\docs\library.xml" default installation path

In Eclipse plug-ins, Web "[Install Path]\plugins\net.rim.browser.tools.wcpc_1.0.0.xxxxxxx\wcpc\library.xml.

Once you add these entries, "blackberry.find" and "blackberry.message" must appear in the tooling.

Turns out that this bug was my fault

Tags: BlackBerry Developers

Similar Questions

  • Widget API Find: regex case sensitive does not work

    I try to use the blackberry.find and the blackberry.pim.Contact Widget API to search for a contact.

    I need the contact can be found if the specified filter string is anywhere in the field, regardless of case.  (I need the query to be case insensitive).

    I have a contact, field firstName = 'Norman '.

    I use method REGEX (the only one that might work in this case, I think), with these expressions regex to match "Norman":

    «. * Norm.*' matches

    «. * norm.*"does not match

    So I tried the regex (? I) indicator in the expression, and the discovery does not at all.

    var fe = new blackberry.find.FilterExpression("firstName", "REGEX", ".*(?i)norm.*"); // causes blackberry.pim.Contact.find() to fail
    

    The API doc says "Please refer to java.lang.String.matches () API for more information on the creation of the regular expression correct... "Well, case has been there for some time.

    Case is not supported? If not, well... which sucks.

    I had asked one of the guys on the team who had some difficulty getting case capacity for work.  It came with a work around that is just a bit hacky, but did the trick

    var hack = "";
    var searchText = searchField.value;for (var i = 0; i < searchField.value.length; i++)
    {
      hack = hack + "[" + searchField.value[i].toLowerCase() + searchField.value[i].toUpperCase() + "]";
    }
    
    var fe = new blackberry.find.FilterExpression("firstName", "REGEX", hack + "[a-zA-Z_0-9_\\s]*");
    
    var contacts = blackberry.pim.Contact.find(fe, "firstName", null, null, true);
    

    They created a character set which contained both lowercase and uppercase letter.

  • Buddy API HELP

    I just downloaded Buddy API for Director 11 (windows) and it does not work for me. I downloaded the file and place "Buddy API Help.chm', 'Buddy API Xtra.x32' and ' read me.txt in" C:\Program Files\Adobe\Adobe Director 11\Configuration\Xtras. I also added #namePPC: 'Buddy API Xtra', #nameW32: 'Buddy API Xtra.x32' down the xtrainfo.txt file.

    I made a new project and baptized "test.dir" and this saved in a filder called 'test' on the desktop. I placed a button on a frame and added the code:

    ' on mouseUp me
    baOpenFile (the moviePath & "test.txt", "normal")
    end

    I've created a text file named "test.txt" and this recorded in the test on the desktop folder.

    Then, I saved a projector of the project in the same folder.

    When I click on the button, nothing happens? WHAT I AM DOING WRONG?


    Change it, films, list of the Xtras, it will be probably called "Buddy API
    Xtra.

    When you say that you press the button and "nothing happens." Don't you
    What does it literally mean? Or do you have an error message any? If
    you have not added BuddyAPI in the projector, you should get an error
    claiming that baOpenFile is not available (or maybe a less useful)
    "script error").

    If you have not yet found which I assume that you are using a
    #flashComponent button and you need to enter in the Properties Inspector
    Flash component tab and replace the "eventPassMode" #passAlways in
    in order to make the button work.

  • BlackBery Widget API: FilePropertiesObject

    Hello

    I use webplugin for eclipse to develop applications BlackBerry Widget on Windows Vista 32 bit system.

    1 > the file object API documentation mentions a function getFileProperties that returns the object FileProperties. I'm not able to find any documentation on the members of the FilePropertiesobject.

    2 > while developing java script code in eclipse, all the javascript API functions appear as error and are marked as not defined. However, the code compiles and runs and job functions. Is this normal? The ToolTip does not work.

    Thank you

    1 > documentation of the API file object mentions a function getFileProperties that returns the object FileProperties. I'm not able to find any documentation on the members of the FilePropertiesobject.

    Yes, this one is not respected in the documentation... We have new versions of the API documentation which include now this API every day now.  For now, here's a quick rundown on what she has in her.

    ReadOnly property dateCreated from Date

    ReadOnly property Date dateModified

    ReadOnly property chain directory

    ReadOnly String fileExtension property

    ReadOnly property Boolean isHidden

    ReadOnly Boolean isReadonly property

    ReadOnly String mimeType property

    ReadOnly property number size

    2 > while developing java script code in eclipse, all the javascript API functions appear as error and are marked as not defined. However, the code compiles and runs and job functions. Is this normal? The ToolTip does not work.

    This is just the editor Eclipse JavaScript being 'smart' where he can't find the definition of the functions API BlackBerry since they are integrated into the operating system.  We have no code help in the tool yet, but will be a feature, we add must fix the undefined warnings, you get

  • Blog Widget RSS help

    I downloaded and plugged the RSS Blog Widget on a page of my site and add the RSS URL flow for the widget. However, it does not in my blog when I saw the site. Should I see my blog in preview? Thank you!

    Publish the site as a place for essay on BC, then check the flow of the Blog.

    Thank you

    Sanjit

  • Phone call API Help

    Hi all

    I have a few Questions

    (1) is it possible to make a call from a third party application without inoking the phone user interface. That is, is it possible to display the application user interface when the call is made, do not redirect me to standard phone UI. I should call internally.

    (2) is it possible to hide the number which is called, showing that the name of the person you are calling.

    (1) none

    (2) no

  • Working with PHP in Widgets

    Hi, I have just a few questions about PHP with Widgets:

    1. I've read in a few places that you can use PHP in Widgets, but when I tried to include an index.php in my Widget, it notified me that he has not been supported. So I guess I must have my PHP stored on a remote server and bind it using an anchor for example. (Also white list my field).

    If it works, I'm still able to access those Widget API? I have a Javascript with a few Blackberry Menu API file and would like to know if these still work when they are on my remote server.

    2. If I have a remote PHP file and a remote JS file does not work, how I would approach to access a local copy of the JS file that I compiled with the widget?

    I ask these questions because I have a lot of dynamic pages, I'd like to see on my Widget, but would also have the API Widget at hand, as well for menus and other.

    Thank you!

    1. I've read in a few places that you can use PHP in Widgets, but when I tried to include an index.php in my Widget, it notified me that he has not been supported. So I guess I must have my PHP stored on a remote server and bind it using an anchor for example. (Also white list my field).

    Correct... you can not add a PHP page directly in the Archives of your widget.  You can either make it in your widget by white first listing of the URLS in the file config.xml elements and then going to your page via an anchor tag or the definition of the location.href via JavaScript.

    You can also call your PHP via AJAX scripts if you use them to turn the pieces of HTML or data.

    If it works, I'm still able to access those Widget API? I have a Javascript with a few Blackberry Menu API file and would like to know if these still work when they are on my remote server

    Yes, you are still able to access your Widget API from your pages side server.  Each API you wish to access must have its id function declared for the field in the white list.  For example, if your page is located at 'http://www.foo.com' and you want to have access to the API of blackberry.ui.menu... your config.xml element will look like the following:

    http://www.foo.com" subdomains="true">
      
    
    

    This will allow any page that is loaded from the www.foo.com field to access the API JavaScript menu.  This allows you to place the functional parts of your widget where they make sense for your application.

    There is another parameter config.xml that you will be probably interested as well.  You can define your own custom for a BlackBerry Widget header value.  It is thus on your side server PHP code, you can check to make sure that your real widget hitting your PHP script.  The attribute is called "rim: header ' and is located in the root element.  You can consult the Guide to the developer for further details if you are interested.

    2. If I have a remote PHP file and a remote JS file does not work, how I would approach to access a local copy of the JS file that I compiled with the widget?

    Number 1) will work, but you can also do what you ask for (2).  Your PHP page of code on server side, you have white listed and displayed in the widget, has access to your local resources of the widget.  It is quite convenient for common resources that you do not want to draw on the network such as images, css, and JavaScript.

    You can link to these resources by setting their path in your HTML to 'local:///myimage.png '.  The "local: / / /" is a local path that begins at the root of archive widget.  For example if you want to load an image from the local widget it would look like the following:

    
    

    I hope this helps

  • using variables with a widget

    With the help of CP4

    I have a var defined by the user (varX) in CP4 with a value of 0

    I'm trying to change the value of varX using a custom widget question (AS3)

    Changing varX = 4

    I then need to pick up varX and post it on another slide, or even another static widget


    track in my custom widget

    MovieClip (root) .varX = 4;

    later in another slide using a text field I

    $$varX$ $

    However, it shows 0

    is there a way to change a user-defined or system var with a custom widget

    Although MovieClip (root) .varX; can operate, right that you want to use the widget API and use mainmov instead of Michael.  You might have a synchronization problem where a variable/object is not instantiated yet.  To be honest, the widget API template provided by Cp is very basic.  If you develop widgets, I highly recommend Widget factory by Infosemantics.  They took the widget API to the next step and it's free.  It is much easier to work with...

    Jim Leichliter

  • How can I move on re - api-ms-win-downlevel-ole32-l1-1-0.dll for my windows 2010 starter

    Everything worked perfectly last night when I put my computer, when I get to the office this morning, I couldn't open my word documents and my internet browser explore disappeared somehow! When I try to open any word document it gives me this error: "the program can't start because api-ms-win-downlevel-ole32-l1-1-0.dll is missing on your computer." Try reinstalling the program to fix this problem. "Please how I solve this problem, I need to get back to work as soon as POSSIBLE!

    Microsoft has released new improvements in the Windows API help developers to properly and securely load external libraries. For more information, visit the following Microsoft Web pages:

    SetDefaultDllDirectories

    (http://msdn.microsoft.com/en-us/library/hh310515 (vs.85) .aspx)

    AddDllDirectory

    (http://msdn.microsoft.com/en-us/library/hh310513 (vs.85) .aspx)

    RemoveDllDirectory

    (http://msdn.microsoft.com/en-us/library/hh310514 (vs.85) .aspx)

    The following files are available for download from the Microsoft Download Center:

    Update for Windows 7 (KB2533623)

    Collapse this includes this image

    Download the Windows6 package. 1 KB2533623-x 86.msu now.

    (http://www.microsoft.com/downloads/details.aspx?FamilyId=c79c41b0-fbfb-4d61-b5d8-cadbe184b9fc)

    Update for Windows 7 for x 64-based systems (KB2533623)

    Collapse this includes this image

    Download the Windows6 package. 1 KB2533623-x 64.msu now.

    (http://www.microsoft.com/downloads/details.aspx?FamilyId=146ed6f7-b605-4270-8ec4-b9f0f284bb9e)

    Update for Windows Server 2008 R2 for Itanium (KB2533623) systems

    Collapse this includes this image

    Download the Windows6 package. 1 - KB2533623 - ia64.msu now.

    (http://www.microsoft.com/downloads/details.aspx?FamilyId=c7c99b35-84d3-4428-a91d-917386e8f0b6)

    Update for Windows Server 2008 R2 x 64 Edition (KB2533623)

    Collapse this includes this image

    Download the Windows6 package. 1 KB2533623-x 64.msu now.

    (http://www.microsoft.com/downloads/details.aspx?FamilyId=c841c22c-3459-4c18-9bc9-53d76c375ab4)

    Update for Windows Vista (KB2533623)

    Collapse this includes this image

    Download the Windows6 package. 1 KB2533623-x 64.msu now.

    (http://www.microsoft.com/downloads/details.aspx?FamilyId=208ec0a7-611e-420b-bc5a-85ef6721ec78)

    Update for Windows Vista for x 64-based systems (KB2533623)

    Collapse this includes this image

    Download the Windows6 package. 0-KB2533623-x 64.msu now.

    (http://www.microsoft.com/downloads/details.aspx?FamilyId=f40d2228-612f-4857-ad19-1111466ab52f)

    Update for Windows Server 2008 (KB2533623)

    Collapse this includes this image

    Download the Windows6 package. 0-KB2533623-x 86.msu now.

    (http://www.microsoft.com/downloads/details.aspx?FamilyId=16277ab2-c39d-4c61-bfce-3a1ed64aab02)

    Update for Windows Server 2008 for the Itanium (KB2533623) systems

    Collapse this includes this image

    Download the Windows6 package. 0-KB2533623 - ia64.msu now.

    (http://www.microsoft.com/downloads/details.aspx?FamilyId=30923e0a-4e33-46ff-86b6-277e90d0db3a)

    Update for Windows Server 2008 x 64 Edition (KB2533623)

    Collapse this includes this image

    Download the Windows6 package. 0-KB2533623-x 64.msu now.

    (http://www.microsoft.com/downloads/details.aspx?FamilyId=755cab42-2ce6-499a-bb8e-e5f1c17ce8ad)

    Release date: July 12, 2011

    For more information about how to download Microsoft support files, click the number below to view the article in the Microsoft Knowledge Base:

    119591

    (http://support.microsoft.com/kb/119591/)

    How to obtain Microsoft support files with services online

    Microsoft has scanned these files for viruses. Microsoft used the most current virus detection software that was available on the date on which the files were posted. The files are stored on secure servers that prevent any unauthorized files.

  • 2.2 updated: Homescreen Widget

    Verizon has identified the following the 2.2 update:

    New tips, shortcuts and assistance from a homescreen widget to help users better navigate their phone.

    Where exactly is this widget? I was not able to find it. I'd like access to something like that.

    I guess (on your homepage) Menu button > Add > Widgets > get such widget? That's my guess.

    : Edit: homepage I mean one of the 5 main windows on your phone.

  • Interface API - menu of the bottom and the entry dialog box?

    Hello!

    It would be preferable if a widget is very similar to a native application on BlackBerry so I am just wondering if there is something like an entry dialog box?

    Like 'Please enter a location"'_' (OK)

    Another thing I would really like to: in some applications like BlackBerry map or calendar, there is a standard menu on the bottom of the screen. Is there a Widget API for this?

    Kind regards

    Alex

    The jump on a fixed positioned div is something you will see on a real device as well.  This is a limitation of the BlackBerry browser when scrolling with content in a fixed position.

    From what you describe, sounds like you want as the toolbar which is available on the device of the storm that allows you to add 4 buttons at the bottom of the screen.  We do not currently have an API available that you activate the toolbar of the storm.

    However, I have seen others accomplish this effect even by an array of the size of the screen and then have a scrolling div statement positioned to the upper part of the screen and then the cells for the buttons at the bottom of table.  That would be usable for touchscreen and trackpad/trackball devices.

  • How to quit an Application Widget

    Hello

    I read on

    Event application object

    In BB widget api docs. I tried gently to the widget by trapping the output between the use of javascript functions. I used the sample code of script written in the doc.

    
    

    I added the feature element in the config.xml file.

    But nothing happens when I get out of the application with the button exit on Simulator.

    Did you call trapForApplicationExit() from somewhere? Just put this code example in your script will not as magically turn you call trapForApplicationExit() - probably of any function you have written to handle the load of the document.

    Note that you need to activate two features for the above script at work - blackberry.app and blackberry.app.event. Also remember, as I just said in your other thread, as if the script/page is served from a remote server (instead of being local for the widget), you will need to have the feature elements contained in the element of relevant access.

  • Since a widget network connection status

    Hello

    I am the design using a widget that uses google gears api for sqlite db.

    Is there any method of api standard blackberry that will detect the wherther the device is online or offline?

    Imagine that I have to update information in the db of the server via an http connection - is it possible to standart to detect if it is possible?

    Thank you

    blackberry.system.hasDataCoverage)

    check the widget API available here... http://www.BlackBerry.com/developers/docs/widgetapi/

  • Try to export using IOM API via tcExportOperationsIntf

    Hi all

    I wrote a custom code for exports of components to IOM API Help and I am able to take exports from

    Research, resources, process form and process definitions.

    But I'm not able to export role, resource, Access Policy, policy on the approval and debugging has been established that

    ExportOperationsIntf.findObjects (Type, Name); Returns null for role, resource, Access Policy, policy on the approval.

    If I try to research role, resource, Access Policy, political approval using OOTB Deployment Manager export then I can see my components required, but the API, I am not able to do.

    I tried to give the name as * DemoRole * and "TestDemoRole" [name], but it didn't work.

    Fact ExportOperationsIntf.findObjects (Type, Name); data only works for resouce?

    All the world is facing this problem?

    IOM Env = 11.1.2.2.0

    Thank you

    Rahul

    The categories should match while yours are slightly poorly named.

    You can get a list of available categories using the following code snippet:

    tcExportOperationsIntf = dm.getService (tcExportOperationsIntf.class) operations;
    Categories collection = operations.retrieveCategories ();
    for (String category: categories)
    System.out.println (Category);

    For reference, in OIM 11 g R2 PS2, the following categories may be used:

    -CustomResourceBundle
    -eventhandlers
    -Form process
    -CertificationDefinition
    -Organization
    -RiskConfiguration
    -ITResource
    -NOTIFICATIONTEMPLATE
    -PasswordPolicy
    -RequestDataset
    -DataObjectDef
    -CertificationConfiguration
    -Metadata role
    -User group
    -PrepopAdapter
    -Process
    -Plugin
    -ITResourceDef
    -Resources
    -EmailDef
    -TaskAdapter
    -SystemProperties
    -ApplicationInstance
    -GenericConnector
    -GTCProvider
    -Rule
    -User metadata
    -CatalogDefinition
    -ApprovalPolicy
    -Job
    -Jar
    -Metadata Org
    -Search
    -Task
    -ErrorCode
  • Need help to create a dashboard to count altogether.

    I have a dashboard that shows the top of page 20 more high VM that are about to run out of disk space.  Is there a way to create an another dashboard that would give a county that just to display a number?  For example, the great metric can be something as something more than 90% of this number.  The dashboard would then show a number as 15 VM is over 90%.  How do I create a total number or is it still possible in vCenter Ops?  Thank you

    Screenshot.jpg

    Hello

    hope you can work with my dashboard.

    Generic dashboard has been configured only with a couple of virtual machines. Just one example of the possibilities for you.

    I think that a ' Top-N-analysis ' Widget will help you more than a "card of the Moor!" There are only the TOP 20 VM use the data store humor.

    This is the configuration for this widget:

    hope that s what you need.

Maybe you are looking for