07-07-2010 08:34 AM
i m using persistent storage for storing data in objectlists...i insert data...and now iwont to deleteselected data from objectlist...hw to delete selected item 4m objectlist..
plz help me
thanks in adv...
07-07-2010 08:47 AM
I believe your answer includes two things that you need to do.
1. Since you said you are storing the data of the ObjectListField, you have to manually maintain your data. That said, when you remove an item from the ObjectListField, remove it from your data as well and then persist your data again.
2. To remove an item from the ObjectListField, use the delete method with the index of the item that you want to remove. such as:
How are you storing your data? If it is a vector, you can do