• 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
Qualifiers LIKE problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Qualifiers LIKE problem


  • Subject: Qualifiers LIKE problem
  • From: Greg <email@hidden>
  • Date: Thu, 7 Apr 2005 14:41:05 +1000

Hi,
I am trying to make a component with that has the alphabet at the top and it will filter the EO's based on a key. I followed the example in the EOQualifier javadoc but it seems that now records are displayed as they aren't matching the filter for some reason. I am using postgres if that makes a diff.


Any help is greatly appreciated.

Regards,
Greg

private void setFilterToLetter(String letter) {
Object args[] = { "lastName", letter };
filter = EOQualifier.qualifierWithQualifierFormat("%@ like '%@ '", new NSArray(args));
}


public NSArray displayedObjects() {
NSArray filtered = allObjects;
if (filter != null)
filtered = EOQualifier.filteredArrayWithQualifier(allObjects, filter);
return EOSortOrdering.sortedArrayUsingKeyOrderArray(filtered, sortOrderings);
}


_______________________________________________
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: Qualifiers LIKE problem
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: editing context locking
  • Next by Date: RE: Java Monitor file path problem
  • Previous by thread: Re: editing context locking
  • Next by thread: Re: Qualifiers LIKE problem
  • Index(es):
    • Date
    • Thread