• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ERProfiling -> ERXBatchingDisplayGroup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERProfiling -> ERXBatchingDisplayGroup


  • Subject: ERProfiling -> ERXBatchingDisplayGroup
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Wed, 24 Mar 2010 14:28:12 -0700

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.EODatabaseDataSource@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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: ERProfiling -> ERXBatchingDisplayGroup
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: WODisplayGroup selection methods and notification
  • Next by Date: Direct Action Question
  • Previous by thread: Re: StackOverflowError & _NSWeakMutableArray
  • Next by thread: Re: ERProfiling -> ERXBatchingDisplayGroup
  • Index(es):
    • Date
    • Thread