Re: Unable to update or make changes in the table

2006-02-09 Thread Chuck Hill
On Feb 9, 2006, at 2:44 AM, .::welemski::. wrote: Hi, Is is ok to call "defaultEditingContext" everytime I make a changes in the database? Because I can no longer make any changes in the database/table everytime I call "saveChanges" method. I have this code; Assuming that there is a St

Re: Unable to update or make changes in the table

2006-02-09 Thread Ryan Klems
I would suspect that you aren't marking the E_Person dirty in the editing context. Assuming you are using an EOCustomObject your setFName method should look something like this... public void setFName(String value) { willChange(); // <- this is the important line fname = valu

Re: Unable to update or make changes in the table

2006-02-09 Thread Geoff Hopson
Does your fetch return anything? Put a breakpoint on searchResult=EOUtilities.objectsMatchingValues(ec,"E_Person",criteria);Step past it, see what happens...Also, try putting -EOAdaptorDebugEnabled YES on your startup line, see what SQL is being generated. HTHGeoff On 09/02/06, .::welemski::. <[EMA

Unable to update or make changes in the table

2006-02-09 Thread .::welemski::.
Hi,Is is ok to call "defaultEditingContext" everytime I make a changes in the database?Because I can no longer make any changes in the database/table everytime I call "saveChanges" method. I have this code;Assuming that there is a String varialble name "Fname" and "Lname" in the session.E_Person pe