File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Record management system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Record management system" Watch "Record management system" New topic
Author

Record management system

Salil Khanwalkar
Greenhorn

Joined: May 28, 2004
Posts: 3
Hi,
I have created a .pdb file for my palm application. Now i want to open and add some records in it using rms. My code to add and save record is...

if (c == addCommand) {
mainForm.append(tf); // text field
}
if (c == saveCommand) {
text = tf.getString();
System.out.println(text);
byte[] bytes = text.getBytes();
try {
recordStore = RecordStore.openRecordStore("D:\\names.pdb",false);
recordStore.addRecord(bytes,0,bytes.length);
} catch (RecordStoreException rse) {
rse.printStackTrace();
} catch(IndexOutOfBoundsException ioe) {
ioe.printStackTrace();
}
}
if(c == exitCommand) {
destroyApp(false);
notifyDestroyed();
}

No record is being added..into names.pdb
How to open and add records in it.

Regards,
Salil.
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
"Record store" in Palm OS is completely different from that in J2ME. You cannot access and parse Palm pdb files from J2ME. You cannot copy (or backup) the J2ME record store like a file either.


Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
Hi,

Does http://www.javaworld.com/javaworld/jw-05-2002/jw-0531-palm.html link help in anyway to us?

Regards,
Maulin
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
Originally posted by Maulin Vasavada:

Does http://www.javaworld.com/javaworld/jw-05-2002/jw-0531-palm.html link help in anyway to us?


Probably not. You can read it yourself. It talks about how to create a special kind of MIDP-RMS-compatible PDB files from the PC side Java conduit. You can then open the PDB from MIDP using the RMS name. There is still no way to access generic PDB files from MIDP. Also, the PDB format for RMS is not an open API -- it may or may not work for a given Palm device. Notice that article was written in 2002, a VERY long time ago for J2ME.
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
from the PC side Java conduit.

I guess I missed that critical part Sorry about that.

Thanks
Maulin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Record management system