This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Record management system

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
author
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from the PC side Java conduit.

I guess I missed that critical part Sorry about that.

Thanks
Maulin
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!