Hello,
I have developed application in NetBeans using VMD, which add, edit, view and delete record using RecordStore. I can successfully add and view RecordStore. I am finding difficulty to Edit/Delete Record.
To Edit(Update)/Delete, I maintained new form, used ChoiceGroup.Popup, which retrieve IDs from Record-Store. Here what I am getting problem. Popup can show IDs of stored Records. But when I am Inserting Record and then immediately go To Edit/Delete Form, Pop-up is not showing that added ID. But When I press END button of emulator and start again application, that newly added record can be seen.
Here Code Which I used to retrieve IDs in Popup.
try {
RecordEnumeration renum = rms.enumerateRecords(null, null, false); //rms is RecordStore object.
int id;
while (renum.hasPreviousElement()) {
id = renum.previousRecordId();
cg.append(String.valueOf(id), null);
}
} catch (Exception e) {
}