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

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.

  • 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

  • Cannot save BlackBery Widget in Visual Studio Plugin 2.0

    Hi all

    I have just installed the Visual Studio Plug in 2.0 and have created a new project:

    New project => Blackberry-online BlackBeryWidget

    First of all - the documentation on how to debug etc from the widget home page shows that you create a new Web site.  I'm doing the right thing here?

    When I try to save I get an error: unable to complete the operation.  Without this interface taken in charge.

    I'm doing something wrong?

    Thank you

    Hello

    Documentation on the start page for debugging is to debug a Web site.  Beta 1 does not yet support the debugging of JavaScript for Widgets.  So if you have an ASP.NET project you want to debug, these instructions will show you how to debug using the BlackBerry browser in the Simulator.

    Can you list the following information so that we may be able to reproduce your problem:

    -Version of Windows (Vista, XP, 7, 32-bit or 64-bit)

    -Version of Visual Studio 2008

    -When you installed visual studio, you said that you were a developer c#, VB developer or Web Developer

    -In your settings "Options-> projects and Solutions" you "Always" display the Solution and/or "Save new projects when created" checked or unchecked

    Thank you

  • 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

  • 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/

  • 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

  • Widget - function replaceVariable() crashes

    Hello

    Anyone who has successfully used the movieHandle.replaceVariables () function provided by the Widget API. I'm trying to use it, but it hangs on a variable findRoot is not defined.

    Please let me know if you have used before.

    Thank you!

    Yves

    Yves,

    I had too many problems to use the replaceVariables() function in myTBEDefaultTextAsVariable widget.  The task was to read an existing user Cp variable and use it as default text with another text entry area.  I gave up on the Widget API and thought it would be easier to write my own funciton.  Nothing fancy... just a standard split function, then using cpGetValue to get the value of the variable.

    if (myString.indexOf("$$") != -1)  {
         ary = myString.split("$$");
         varValue = mainmov.cpGetValue(ary[1]);
    
         // suffix or append any text the user might have put in the Second TEB field besides the variable
         if (ary[0].toString().length != 0 && ary[2].toString().length == 0) {
              varValue = ary[0].toString() + varValue;
         }
         else if (ary[0].toString().length != 0 && ary[2].toString().length != 0) {
              varValue = ary[0].toString() + varValue + ary[2].toString();
         }
         else if (ary[0].toString().length == 0 && ary[2].toString().length != 0) {
              varValue += ary[2].toString();
         }
    
         // Set the text of the TBE field
         curSlide.getChildByName(itemName).EditField_txt.text = varValue; //movieHandle.replaceVariables();
    
         //set variable attached to TBE field
         mainmov[ItemXML.m_associatedVariableName.toString()] = varValue;
    
    }
    

    HTH,

    Jim Leichliter

  • How to read the BB PIN of a web page (JS?)

    Hello

    I think that this question has been asked many times before, but I was unable to find a clear answer. Any help will be really appreciated!

    I develop mobile web site (not to be confused with the Widget of BB and/or WebWorks BB app). I'm trying to find a way to read the PIN BlackBerry directly on a page.

    After reading BB OS 6.0 JavaScript Reference, I still wonder if it's possible. Reading HTTP header is not an option, I guess that the majority of my visitors is BIS users.

    If it is not possible, can someone from RIM to confirm? This could completely change my approach to the implementation.

    Thank you in advance.

    Nathan.

    NB Please do not point me towards WebWorks/Widget API - to the best of my knowledge I can't use these JS extensions directly on a web page served by browser.

    Hi Nathan,

    The PIN is accessible only from a WebWorks via JavaScript application.  Can't access it directly from the browser for security reasons.

  • Catch the inevitable back with Javascript

    Is it possible to catch the back key pressed event? I found the link by using the Widget API, would continue to operate the javascript even when I'm not using this api? My pure html code & javascript, is there another way to do it?

    Are you looking for to attempt to capture the back press on in the general browser and not in a widget?

    You can only intercept the key precedent by using JavaScript in a Widget/WebWorks application using the API in the link you posted.  There is no way to do this in the browser in general.

  • What is the JS/jQuery function should I call to sort a column in an IR?

    Hi guys,.

    Given that this no longer works in APEX 5.0: how you trigger sort column of the item page APEX interactive report?

    I'm looking for the function that is called when you press the button to sort on a column to place the call in a dynamic Action.

    What function is called and how when you press the button in the image below?

    Thank you

    Digital

    I don't know why you (or someone else) so go out of your way to disassemble the main features of the IR. Literally everything you have (or had) to do was to tell users how to use the controls that is given to them. What is the punishment by clicking on a column header to sort something out or use the format > dialogue sort? I don't understand. Here are the easy commands that work in singles. What you (or they) win by this control in duplicate?  Why is it important if he doesn't "Executive"? Does this mean that if something is or was bad, you should keep just bad? They shouldn't have to learn to work well with their tools?

    Look, I'm all in favour of offering more control over widgets (API and) such as IR and I have provided my share of hackery. I don't see much justification here.

    Then gReport using was quite clear and the markup was simpler, at apex 5, is more complex. The principle is much the same, a lastcolumnid is defined and a direction, then the sortorder is called in the _columnOrder. You cannot use _columnOrder unless you set lastColumnId on the widget and I wouldn't do that as I do not change the internal state. So I just use the call syntax used in turn. Your selection list will select the columns of ir apex for this (since you need the id)

    var irw = apex.jQuery("#myReport_ir").data("apex-interactiveReport"); -- retrieve widget instance
    -- trigger the action
    -- f01: column id. In apex 5 these are by default generated ids, f02: desc/asc
    irw._action("COLUMN_ORDER", {f01: irw.lastColumnId, f02: "DESC" });
    

    Do with what you want and use at your own risk. It is not supported and could very well break flat-out more down the line. Not to mention that you (or someone else) have to maintain it and still understand it later.

  • EchoSign API: Register Widget

    The use case is when a user opens a session on our site, we want to make the form w9, reporting of the form with the name and address of the user. It seems to me that I can put only mergefieldinfo when you create the widget. Once the widget is created, the mergefieldinfo can not be changed. So if I instantiate the widget once again, it's always the name and the address of the same user. This makes it impossible to share widget W9 between users. My question is what is the best practice for creating a template like w9 and ask users to sign their own w9, with their name and their address provided for them? Thank you!

    Hi, Will,

    If you want the mergefield always change depending on the details of the user once the Widget is created, then work around this problem, you just need to change the values in the parameter can re - run the code and can then share the url (if you use the Widget to create URLs via API).

    Let me know if that helps!

    Kind regards

    -Usman

  • Redirecting to site after the widget is signed using REST API

    Hello

    I would basically users to aim at a widget EchoSign then back to our external site after the signing. I tried to use this:

    https://secure.echosign.com/public/docs/restapi/v2#resource_widgets

    to generate a widget with a redirect url, but I can't specify a widget I have already created. Instead, I'd give it two fields:

    'formFieldLayerTemplates' => array(
           'libraryDocumentId' =>MY_WIDGET_ID
    ),
    'fileInfos' => array(
           'documentURL' => array(
                'url' => 'PATH_TO_ORIGINAL_WIDGET PDF/test.pdf',
                     'name' => 'test.pdf'
           ),
    ),
    

    I use PHP fwiw.

    The widget looks ok for the first few pages, and then all the fields begin to be extinguished by a page. Looks like there should be an easy way to tell just the API to use the widget that I have already created the basis for all this.

    Is this possible?

    After the widget is signed, but techinically it isn't over until the user confirms their email also happens the redirection. Is it possible to set up the redirection at this time?

    Thank you!

    Hi James,

    Please contact support about your query. They should be able to help you with this.

    Thank you

    Jat

Maybe you are looking for