You Are Here:

Community: Developer Discussion Boards

#1 Old Question EDIT RMS - 2008-09-05, 08:57

Join Date: Jul 2008
Posts: 34
Location: Banglore INDIA
cutenik73's Avatar
cutenik73
Offline
Registered User


Can i re-edit already existing record in rms..? if yes how can i do that?

Regards
Shashi
Reply With Quote

#2 Old Re: EDIT RMS - 2008-09-05, 09:13

Join Date: Sep 2007
Posts: 502
Location: Bangalore
bhanuchandar.k's Avatar
bhanuchandar.k
Offline
Forum Nokia Champion
Hi Shashi Welcome to Forum Nokia,

You can Edit The Existing Record in record store For that you need to follow these steps:

1. Open the Record store
2. Get the Record Which you want to edit.
3. Do the modification What you want to do
4. Then set the record in the same location
5. close the record store.
Reply With Quote

#3 Old Re: EDIT RMS - 2008-09-05, 09:15

Join Date: Apr 2007
Posts: 220
amitmishra19
Offline
Regular Contributor
Hi

Yes you can edit the record in the RMS.

To achieve the same just read the record you want to edit, modify the changes you want and insert itback to the same position.

The APIs that you can use are getRecord(recID) and setRecord(int recordId, byte[] newData, int offset, int numBytes).

Hope this will help you.

Regards
Amit
Reply With Quote

#4 Old Question Re: EDIT RMS - 2008-09-05, 10:51

Join Date: Jul 2008
Posts: 34
Location: Banglore INDIA
cutenik73's Avatar
cutenik73
Offline
Registered User
Thank u....can i delete a record and still re-use the deleted record's id ..?or will the memory location of that deleted record becomes unusable..?

Regards
Shashi
Reply With Quote

#5 Old Re: EDIT RMS - 2008-09-05, 11:20

Join Date: Sep 2007
Posts: 502
Location: Bangalore
bhanuchandar.k's Avatar
bhanuchandar.k
Offline
Forum Nokia Champion
Hi,
When ever you delete the record . That record con't be reused.

The j2me Documentation says

The record is deleted from the record store. The recordId for this record is NOT reused.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
RMS data LOST problem in 3410!!! bitsonic Mobile Java General 6 2009-03-27 10:50
newbie : Writing RMS entry at Installation time--approx 200kb RMS data & 30k appsize. raxitsheth Mobile Java General 8 2008-07-27 04:30
RMS record sizes. earamsey Mobile Java General 1 2007-10-18 14:51
About RMS database secutity browndrf Mobile Java Networking & Messaging & Security 9 2007-07-27 19:45
7210 & 7250 RMS resetting problem keithmcneill Mobile Java General 1 2003-11-13 22:04

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia