• 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
Re: Filtering a non-EO in a display group
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filtering a non-EO in a display group


  • Subject: Re: Filtering a non-EO in a display group
  • From: Ted Archibald <email@hidden>
  • Date: Mon, 05 Mar 2012 15:33:55 -0600

Wouldn't you just reset the display group with something like:

_array = ERXArrayUtilities.filteredArrayWithQualifierEvaluation(_yourArray, _yourQualifier);
dg().setDataSource(ERXEOControlUtilities.dataSourceForArray(_array));

On Mon, Mar 5, 2012 at 1:31 PM, Pascal Robert <email@hidden> wrote:
I have a case where I have to use a non-EO (aka a plain Java object) in a display group because the non-EO holds the results of a calculation and other stuff. Everything works fine, and that non-EO also have a reference to a EO. Everything works fine, except for one thing. I need to filter the displayed objects by modifying the qualifier based on a user action, but the qualifier don't remove anything.

So, when the user action is called, I do this:

   if (filterDateForTransactions == null) {
     filterDateForTransactions = new NSTimestamp();
   }
   dg().setQualifier(FakeManifestItem.MAIN_TRANSACTION.dot(Transaction.DATE_END).before(filterDateForTransactions));
   dg().updateDisplayedObjects();

FakeManifestItem is the non-EO, and I added a ERXKey (MAIN_TRANSACTION) to the Transaction EO class. But when this is called, the array stays the same. Anyway to get this to work on non-EO?


 _______________________________________________
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

 _______________________________________________
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

References: 
 >Filtering a non-EO in a display group (From: Pascal Robert <email@hidden>)

  • Prev by Date: EOQualifier proper fetch across to-many?
  • Next by Date: Re: Filtering a non-EO in a display group
  • Previous by thread: Filtering a non-EO in a display group
  • Next by thread: Re: Filtering a non-EO in a display group
  • Index(es):
    • Date
    • Thread