On Mar 29, 2011, at 5:49 AM, Theodore Petrosky wrote: > I find that i have a boolean that is bound to the 'checked' of my WOCheckBox: > > wo:WOCheckBox checked = "$theGridItem.globalUpdate" / > > Originally I thought it was because I had an AjaxObserveField to watch the > checkbox, so I deleted it. No Joy. so as long as the WOCheckBox is there, I > have this issue. theEC.updatedObjects() believes that all the entities have > been updated. > > The globalUpdate attribute is a boolean (intBoolean) in my postgresql backend. > > Am I screwing this up?
Probably. :-) You could override the setter and log out the original and new value and see if that shows anything. An object being in the updated list just indicates that it _may_ have changed. So either the value is getting changed, or WOCheckBox is needlessly setting the Boolean to the exact same value. Chuck > --- On Mon, 3/28/11, David Avendasora <[email protected]> wrote: > >> From: David Avendasora <[email protected]> >> Subject: Re: changed objects >> To: "Chuck Hill" <[email protected]> >> Cc: "Theodore Petrosky" <[email protected]>, [email protected] >> Date: Monday, March 28, 2011, 4:31 PM >> Or, I believe, an MS SQL Server DB >> with Date columns as locking attributes... >> >> Dave >> >> On Mar 28, 2011, at 2:26 PM, Chuck Hill wrote: >> >>> If all the objects are in that list, then all have >> been changed. You might have a floating point value >> that is getting altered due to a formatter (e.g. the scale >> is different). >>> >>> Chuck >>> >>> >>> On Mar 28, 2011, at 11:16 AM, Theodore Petrosky >> wrote: >>> >>>> OK I thought I did this before but I can not think >> of how I did it. >>>> >>>> I have an EC made with: theEC = >> ERXEC.newEditingContext(); >>>> >>>> I then get a list and use a displayGroup to >> display it in a table. I want to make a few edits, then ask >> the EC for the changed objects. >>>> >>>> NSLog.out.appendln("checkAltered >> == " + theEC.updatedObjects()); >>>> >>>> updatedOjbects returns all the objects in the >> array. I just want the ones that were altered. Is there a >> way? >>>> >>>> Ted >>> >>> -- >>> Chuck Hill >> Senior Consultant / VP Development >>> >>> Practical WebObjects - for developers who want to >> increase their overall knowledge of WebObjects or who are >> trying to solve specific problems. >>> http://www.global-village.net/products/practical_webobjects >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Do not post admin requests to the list. They will be >> ignored. >>> Webobjects-dev mailing list ([email protected]) >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com >>> >>> This email sent to [email protected] >> >> -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
