Skip to Content
0
Former Member
May 27, 2014 at 02:21 PM

openForRead() must be called first!

16 Views

Hi All,

I am facing an error openForRead() must be called first! while doing update operation.

Below is my code

Employee emp = new Employee();

emp.setAge("20");

GenericList<EmployeeG> arrlist = new GenericList<EmployeeG>();

EmployeeG gDetail= new EmployeeG();

gDetail.setLastMothsalary();

arrlist.add(gDetail);

emp.update(arrlist);

emp.submitPending();

EmployeeMDB.synchronize();

Regards

Anupam