Qualifiers LIKE problem
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