Re: Grouping and aggregating EOs like GROUP BY

2006-04-12 Thread Anjo Krank
Am 13.04.2006 um 00:09 schrieb John Huss: What is the best way to group and aggregate an array of EOs, essentially accomplishing the same thing as an SQL "group by" clause. I already see that using raw sql is usually not the "best" way. If not raw sql, then how is this accomplished? I've used

Re: Grouping and aggregating EOs like GROUP BY

2006-04-12 Thread Chuck Hill
Hi John, On Apr 12, 2006, at 3:09 PM, John Huss wrote: What is the best way to group and aggregate an array of EOs, The first thing you need to recognize is that an aggregation over a group of EOs results in raw data, not an EO. essentially accomplishing the same thing as an SQL "group b

Re: Building a component action URL

2006-04-12 Thread Chuck Hill
Have Practical WebObjects? There is a hyperlink example in chapter 7. You probably don't want to build the URL,WOContext does that, see componentActionURL(). All your component has to do is to check context().elementID() against request().senderID(). If they are equal, the action is for t

Building a component action URL

2006-04-12 Thread Ricardo Parada
Hi, How does someone build a url programatically to invoke a component action? Similar to the way WOHyperlink works. I need to build this url. And when the user clicks on it the component actions gets called. Any ideas where to start? Thanks Ricardo Parada

Re: Best Design Practice

2006-04-12 Thread wojingo
Owen McKerrow wrote: Hi All, Below are 2 methods that do the same thing, that is return an array of active objects from a relationship. In this case I have a Group which has many PostiionSets, some of which are active and some of which are not. What Im wondering is which of the 2 methods

Re: Best Design Practice

2006-04-12 Thread Chuck Hill
Owen, I think you are mixing up EOF operations and making this more complex than it needs to be. Let me see if I can simplify it. On Apr 12, 2006, at 4:59 PM, Owen McKerrow wrote: Say you go to the database not realizing that the objects are already cahced, does WO then just do the sor

Re: Best Design Practice

2006-04-12 Thread Owen McKerrow
Further question. Say you go to the database not realizing that the objects are already cahced, does WO then just do the sort and filter on the these cahched objects in memory ? What happens if you have 1/2 the objects in memory and the other 1/2 still need to be retrieved from the DB ? Wh

Re: Best Design Practice

2006-04-12 Thread Sacha Michel Mallais
On Apr 12, 2006, at 4:09 PM, Owen McKerrow wrote: I have been using the first method but after talking with a college yesterday Im wondering if the second way may be quicker. The in-memory will stil require a trip( or several to the DB ) to get the position sets, and then have to do the sort

Best Design Practice

2006-04-12 Thread Owen McKerrow
Hi All, Below are 2 methods that do the same thing, that is return an array of active objects from a relationship. In this case I have a Group which has many PostiionSets, some of which are active and some of which are not. What Im wondering is which of the 2 methods is better and or qui

Grouping and aggregating EOs like GROUP BY

2006-04-12 Thread John Huss
What is the best way to group and aggregate an array of EOs, essentially accomplishing the same thing as an SQL "group by" clause. I already see that using raw sql is usually not the "best" way. If not raw sql, then how is this accomplished? I've used ERXArrayUtilities.arrayGroupedByKeyPath befo

Re: webobject-dev archives

2006-04-12 Thread Ondra Cada
Theodore, On 12.4.2006, at 22:23, Theodore Petrosky wrote: I want to search for specific issues before asking here. Where can find a searchable archive (like cocoa-dev)? In my experience, www.wodeveloper.com and wodev.spearway.com/cgi-bin/ WebObjects/WODev are both just great. --- Ondra Čad

Re: Help with Qualifier and NSKeyValueCoding.NullValue

2006-04-12 Thread Art Isbell
On Apr 11, 2006, at 6:58 AM, Kieran Kelleher wrote:            NSMutableArray endQualifiersArray = new NSMutableArray( endEqualsNullQualifier );            endQualifiersArray.addObject( endGreaterThanNowQualifier );            EOQualifier endQualifiers = new EOOrQualifier( endQualifiersArray );    

Re: webobject-dev archives

2006-04-12 Thread David Holt
http://lists.apple.com/mailman/listinfo/webobjects-dev There's a search function at the top of the page. http://www.omnigroup.com/developer/mailinglists/webobjects-dev/ for the OmniGroup list. Also: WOCode has older archives for the OmniGroup lists merged into one search (at least I think tha

Re: webobject-dev archives

2006-04-12 Thread Geoff Hopson
http://wodeveloper.com/ covers the omni list as wellOn 12/04/06, Theodore Petrosky < [EMAIL PROTECTED]> wrote:I want to search for specific issues before asking here. Where can find a searchable archive (likecocoa-dev)?Ted__Do You Yahoo!?Tired of spam

Re: webobject-dev archives

2006-04-12 Thread Jaime Magiera
On Apr 12, 2006, at 4:23 PM, Theodore Petrosky wrote: I want to search for specific issues before asking here. Where can find a searchable archive (like cocoa-dev)? Apple provides a list search... http://search.lists.apple.com/ Jaime ___ Do not po

webobject-dev archives

2006-04-12 Thread Theodore Petrosky
I want to search for specific issues before asking here. Where can find a searchable archive (like cocoa-dev)? Ted __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___

Re: Help getting 2 instances of the same sub-component on a page

2006-04-12 Thread Chuck Hill
On Apr 12, 2006, at 10:19 AM, Baiss Eric Magnusson wrote: I have a sub-component, which is put on a page as: 1) StartMonthDayYearTime and 2) EndMonthDayYearTime public NSTimestamp value; In the wod: StartMonthDayYearTime: MonthDayYearTime {

Help getting 2 instances of the same sub-component on a page

2006-04-12 Thread Baiss Eric Magnusson
I have a sub-component, which is put on a page as: 1) StartMonthDayYearTime and 2) EndMonthDayYearTime public NSTimestamp value; In the wod: StartMonthDayYearTime: MonthDayYearTime { value = editClass.startTime; } EndMonthDayYearTime: Month

Help with Qualifier and NSKeyValueCoding.NullValue

2006-04-12 Thread Kieran Kelleher
Hi, I need some help please.Fig 1 shows the code. Fig 2. shows the log output where I am getting a class cast exception in private eoaccess class. Now, if I take out the endEqualsNullQualifier element out of the construct and replace the endQualifiers in the total qualifier with just the endGreater

Re: XCode 2.2 and WO 5.2.4

2006-04-12 Thread Kieran Kelleher
AFAIK, you need WO 5.3 for XCode 2.2. You might as well go to the latest releases which, so far, seem pretty stable OS X 10.4.5 / Java 1.4.2_09 / WO 5.3.1 / XCode v2.2.1 And don't forget to edit your XCode preferences to use EOModeler for ".eomodeld" files. Regards, Kieran On Apr 12, 2

XCode 2.2 and WO 5.2.4

2006-04-12 Thread Pascal Robert
We are planning our upgrade from OS X 10.3/WO 5.2.3/XCode 1.5 to OS X 10.4/WO 5.2.4/XCode 2.2 and we always get this error when we import a project on our test server : Internal Error Method : build settings Don't invoke this method when build configurat