×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    7

    [J2ME] ChoiceGroup & RMS problem

    Hello and welcome

    I hope You will help me because I just can't think up or find an solution for my rather simple [ but complex ] problem . What I would like to know is how to delete the record from RMS. It sounds simple, but let me give You some background, my program is creating user profile and it stores details in RMS, it work just fine, You can load details which were put before killing application etc. The problem lays here: name of profiles are put in a choiceGroup, when I want to delete the profile it works for.. let's say first record, or third one, but when I add next one I can't delete it. It is all because wrong RecordID, is there any way to get the recordId or to delete the record from RMS knowing just some phrase?

    my code looks like this:

    Code:
    public void profilRmsRemover( ) throws RecordStoreException{
        rs.deleteRecord(ldr.getSelectedIndex()+1);
       ldr.delete(ldr.getSelectedIndex());
        rs.closeRecordStore();
    }

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: [J2ME] ChoiceGroup & RMS problem

    I'd suggest you use a separate record store for each profile. Then you can access them by name,

    Graham.

Similar Threads

  1. J2ME Choicegroup image element problem
    By Wilts in forum Mobile Java General
    Replies: 2
    Last Post: 2010-10-23, 15:41
  2. J2ME multiple choicegroup problem
    By lentotski in forum Mobile Java General
    Replies: 2
    Last Post: 2009-06-07, 15:35
  3. Replies: 8
    Last Post: 2008-07-27, 03:30
  4. ChoiceGroup & ItemStateListener
    By teoem in forum Mobile Java General
    Replies: 12
    Last Post: 2006-06-02, 08:04
  5. 7210 & 7250 RMS resetting problem
    By keithmcneill in forum Mobile Java General
    Replies: 1
    Last Post: 2003-11-13, 21:04

Posting Permissions

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