Well I perturbed the situation by removing 4 of the 6 WODisplayGroups, using 
the following kind of code (reverted back to ERXDisplayGroup for testing), 
small improvement, so big picture still is wrong.

NSMutableArray<Accounts> sortAccts = new NSMutableArray( theOwner.toAccounts() 
);
return (NSArray)_Utilities._sortEOsUsingSingleKey( sortAccts, "accountName");

public static NSMutableArray _sortEOsUsingSingleKey( NSMutableArray<?> array, 
String aKey ) throws NSComparator.ComparisonException  {
        NSArray orderings = new NSArray( EOSortOrdering.sortOrderingWithKey( 
aKey, EOSortOrdering.CompareAscending ));
        EOSortOrdering.sortArrayUsingKeyOrderArray(  array, orderings );
        return array;
}
************************************************************************************
        public ERXBatchingDisplayGroup<Transaction> curTrans;
        curTrans.setObjectArray( theOwner.transaction() );

still throws. I look at "curTrans.queryBindings().toString() );" before the 
failed call

         {endMonth = 2010-04-01 00:00:00 Etc/GMT; startMonth = 2010-03-01 
00:00:00 Etc/GMT; }

However ERXBatchingDisplayGroup  throws:

attempt to generate SQL for com.webobjects.eocontrol.EOKeyValueQualifier (date 
>= $startMonth) failed because the qualifier variable '$startMonth' is unbound

<date> is a <NSTimestamp> in the model.

And here's the ERXBatchingDisplayGroup <curTrans> in the debugger:

<er.extensions.batching.ERXBatchingDisplayGroup 
datasource=com.webobjects.eoaccess.eodatabasedatasou...@2eb80f1c 
delegate=Class: 'com.webobjects.appserver.WODisplayGroup$Delegate' Object: 
<null> sortOrdering=(<class com.webobjects.eocontrol.EOSortOrdering(date 
compareDescending)>) qualifier=null localKeys=null 
insertedObjectDefaultValues={} numberOfObjectsPerBatch=99>

************************************************************************************

I changed the fetch to use the objects in
         theOwner.transaction()
instead of also searching for the match of the primary key "acctId" along with 
the dates, isn't this a good change?
I will need to carry on to other pages.

----
Baiss Eric Magnusson
http://www.CascadeWebDesign.com



 _______________________________________________
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]

Reply via email to