On Jun 13, 2010, at 8:33 PM, Theodore Petrosky wrote: > > > userList = User.fetchDistinctUsers(timeListEC, > User.IS_ACTIVE.eq(true).and(User.ETIMES.dot(ETime.JOB).dot(Job.PROJECT).eq(theProject())), > null); > userListDG.setObjectArray(userList); > > I have a repetition fed with this > > UserListRep : WORepetition { > list = userListDG.displayedObjects; > item = theUserListItem; > index = session.index; > } > > The userList if perfect... however I have a row of my table like this: > > <td><webobject name = "AmountOfTime" /></td> > > WOD > > AmountOfTime : WOString { > value = theuserlistitem.etim...@sum.amountoftime;//valid > numberformat = "##.##"; > }
Hi Ted, Does User.ETIMES.dot(ETime.JOB).dot(Job.PROJECT).eq(theProject()) work? If theUserListItem.etimes produces an array, wouldn't that path produce an array of Projects instead of a single project for the qualifier comparison? What does your theUserListItem.etimes() array look like before you try to sum its amountOfTime attribute? Ramsey > > the Value displayed is the sum of "ALL" entries in the ETime table for ALL > projects/jobs. > > I was expecting that: > value = theuserlistitem.etim...@sum.amountoftime;//valid > would only display the sum.amountOfTime for the row (theUserListItem) > displayed... > > am I doing something wrong? > > Ted > > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40mac.com > > This email sent to rgur...@mac.com
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com