On Mar 24, 2010, at 2:28 PM, Baiss Eric Magnusson wrote:

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

Is there any chance that the key in the curTrans dictionary should be named $startMonth (with the $)? I've never used these...


<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 would think so.


I will need to carry on to other pages.

Sounds like an old British movie.  Carry On WebObjects


Chuck

--
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/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to