How to specify a path to store file in Blackberry JDE? - blackberry

Dear Friends, Can anyone tell me how to store a file in a blackberry simulator.Actually i m using blackberry jde4.6.I created one simple application in that application i created one edit field and one button if we click the button then the content in the file should store as file i don't how to set a path.If u have any idea how to set path to store data please explain.
regards,
s.kumaran.

Look at the JDE documentation for javax.microedition.io.file.FileConnection and javax.microedition.io.file.FileSystemRegistry.listRoots().

Related

Appcelerator IOS: Download a file and open it in another app

What I want my app to do:
1.Download a .fmp12 file (filemaker database file) from my website
2.Open the file using Filemaker Go (so the database end up being saved in the FMGO data directory)
Possible or not ?
If possible, how do I do that ?
I can download the file but I don't know how to open it in filemaker go.
I've never done it myself , but there might be a way.
I wanted to do something like that at a time but in the end I choose something else.
Those links might help you :
inter-App communication https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.html
App groups ( you must allow them in your app capabilities)
https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html
I hope it helps .
I think the closest you can get on Titanium is using Mads Moller's TiSocial module: https://github.com/viezel/TiSocial.Framework

OpenERP Reports always in PDF

I'm new in OpenERP and I'm starting to know the application.
I hope you allow me to post this kind of questions on the forum.
Whenever I issue any listing or report in OpenERP, the application generates a PDF file to be opened or downloaded. Is there any way to make these listings and reports directly into a browser window so I can print them directly from the browser instead of download/open PDF files?
Thank you very much
Paulo Matos
[https://code.launchpad.net/~openerp-india/openerp-india/web_pdf_viewer-pga
You can use this module to open directly in browser.
Just copy this module to your web/addons folder of openerp web
Hope its work

Drupal 7 - add metadata to file on upload

I want to let users fill some metadata information i have created while uploading files.
I use file entity and media module and i have created a few fields for the image file type. For instance some of the fields are : Location, category, Title etc.
I can see and complete those fields if i navigate to "admin/content/media". But i would like users to be able to view and fill those fields when they upload their images.
I can't find anything in permissions table for that or any other setting. Can someone give some light?
thank you in advance
I managed to find something that works. Actually, i downloaded the dev versions of media module (link) and file entity module (link). The new versions enable users to edit the custom fields when they upload new files.
Hope this information helps someone else too!

RoR: Get file (attachment) name/location

In my app I want users to be able to associate a file(s) they have on their desktop/DropBox with a specific item, but I don't want/need them to be able to actually attach the file...I just want to get the file name and location and save that in my database. Then when I display the item I'll hyperlink to the location captured. Can someone point me to an example(s) of how to accomplish this? I looked at the JQuery File Upload (http://blueimp.github.com/jQuery-File-Upload/) but as I mentioned don't actually need to upload the file...so this should be something super easy.
Thanks for your time and assistance.
You can try and get value of file input, but you'll fail.
See this jsfiddle.
All I'm getting is the fake path
C:\fakepath\134.png
And there's certainly no C:\ drive on Mac OSX. :)
I guess, this is because of security restrictions. You shouldn't know (or care) about user's filesystem in a web app.

Config file to change values within an app

I'm having a problem meeting a requirement for an Java app I'm developing. My client must be able to deploy the app to multiple BES servers without the need to resign the code (or have any interaction with the developers). Currently the web address of one of their BES servers is hard coded into the app but they require the ability to change this value at will prior to deployment. (it can be assumed they will administrate any BES server the app is deployed from)
I've tried attaching a text file to the project which is read by the app but this is packaged along with the app, meaning it can't be manually edited (as far as I'm aware), I've also tried having a custom property in the JAD file but this needs resigned after any change.
Am I doing any of these approaches wrong or is there a better solution I'm missing?
Also, is it possible to deploy a simple text file to a BlackBerry via the BES to a specific file location? If so I could have my app read this file which would solve the problem?
Thanks,
Implement custom attachment handler in your application.
And send email with an attached xml-config file to BlackBerry device.
User opens the received message and selects the custom menu item provided by attachment handler.
And you can parse this xml config and act accordingly.
An easier way is to use a user defined ItPolicy to provide the configuration information you need.

Resources