Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
New Developer
_novice_
Posts: 2
Registered: 11-15-2009
Accepted Solution

BlackBery Widget API: FilePropertiesObject

Hello,

 

I am using webplugin for eclipse for developing BlackBerry Widget application on Windows Vista 32 bit system.

 

1> The API documetation for File Object mentions a function getFileProperties which returns FileProperties object. I am not able to find any documentation on members of the FilePropertiesobject.

 

2> While developing java script code in eclipse, all javascript functions from the API appear as error and are marked as undefined. However, the code compiles and runs and the functions work. Is this normal ? Also the tool tip does not work.

 

Thank You

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,555
Registered: 10-16-2008
My Carrier: Rogers

Re: BlackBery Widget API: FilePropertiesObject

1> The API documetation for File Object mentions a function getFileProperties which returns FileProperties object. I am not able to find any documentation on members of the FilePropertiesobject.

Yes that one was missed in the documentation.. We have new versions of the API docs that now include this API any day now.  For now here is a quick rundown on what it has in it.

 

 

readonly  property  Date   dateCreated

readonly  property  Date   dateModified

readonly  property  String   directory

readonly  property  String   fileExtension

readonly  property  Boolean   isHidden

readonly  property  Boolean   isReadonly

readonly  property  String   mimeType

readonly  property  Number   size

 

 

2> While developing java script code in eclipse, all javascript functions from the API appear as error and are marked as undefined. However, the code compiles and runs and the functions work. Is this normal ? Also the tool tip does not work.

This is just the Eclipse JavaScript editor being "smart" where it cannot find the definition of the BlackBerry API functions since they are built into the OS.  We do not have code assist in the tooling yet, but will be a feature we are adding that should resolve the undefined warnings you are getting

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
New Developer
_novice_
Posts: 2
Registered: 11-15-2009

Re: BlackBery Widget API: FilePropertiesObject

Thank You for the prompt reply :smileyhappy:

Please use plain text.