Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 248
Registered: ‎11-23-2009
My Device: Not Specified

How to delete all records in a recordstore?

Hi All

 

is there a way i can delete all the records in my recordstore? something like a reset?

 

i tried RecordStore.DeleteRecord("MyRecordStore");

 

But when i create a new recordstore with the same name, the records are still there!!

 

i want to create a new blank recordstore with the same name but with all fields having null value. Can someone please help  me here?

 

Thanks,

Saket

 

Developer
Posts: 950
Registered: ‎06-22-2010
My Device: 9550

Re: How to delete all records in a recordstore?

[ Edited ]

 

RecordStore.deleteRecordStore(recordStoreName);

 

Sorry I missread the Thread.

It is used for delete RecordStore.

Thanks

Nitin

------------------------------------------------------------------------------------
Press Kudo to say thank to developer.
Also Press the Accept as solution Button when u got the Solution.

Developer
Posts: 248
Registered: ‎11-23-2009
My Device: Not Specified

Re: How to delete all records in a recordstore?

RecordStore.DeleteRecord(RecordStoreName) should delete a recordstore right?

 

but why does it so happen that when i create a new recordstore with the same name after performing the above operation i can view the records in the recordstore???

 

Thanks,

Saket

Developer
Posts: 950
Registered: ‎06-22-2010
My Device: 9550

Re: How to delete all records in a recordstore?

RecordStore.deleteRecordStore(RecordStoreName): will delete the RecordStore.

And you can create a newone with Same Name.

I think U should not have not that type of Problem.

try it.

And Let me Look at my Side.

B'coz in my previous Project, I used this, I was not getting any Problem.

------------------------------------------------------------------------------------
Press Kudo to say thank to developer.
Also Press the Accept as solution Button when u got the Solution.

Developer
Posts: 30
Registered: ‎02-02-2012
My Device: 9780
My Carrier: DU. UAE

Re: How to delete all records in a recordstore?

Hi,

 

  I am also facing same problem. My application is working on OS 4.5 to 7. All other devices except 7 OS is deleting the recordstore. I dont know why it is  not deleting from teh reocrd store. please help me.

 

Thans 

  meera