Are you sure this is what isn't working for you? Perhaps a typo?
String cityWildcard = "lub";
NSArray args = new NSArray(cityWildcard + "*");
EOQualifier qual1 = EOQualifier.qualifierWithQualifierFormat("city
caseInsensitiveLike 'lub*'", null);
EOQualifier qual2 = EOQualifier.qualifierWithQualifierFormat("city
caseInsensitiveLike %@", args);
boolean qual1EqQual2 = qual1.equals(qual2);
result: qual1EqQual2 => true
In any case, you should probably be using %s for strings instead of
[EMAIL PROTECTED] %@ is for objects, where %s is for strings.
http://developer.apple.com/documentation/DeveloperTools/Reference/WO541Reference/com/webobjects/eocontrol/EOQualifier.html Ramsey On Nov 10, 2008, at 4:31 PM, Awbrey Hughlett wrote:
Why does this work for matching the word "Lubbock":
EOQualifier.qualifierWithFormat("city caseInsensitiveLike 'lub*'",
null);
qualifierWithQualifierFormat?
and not this: String cityWildcard = "lub"; NSArray args = new NSArray(cityWildcard + "*"); EOQualifier.qualifierWithFormat("city caseInsensitiveLike %@", args);Am I missing something? I read the webobjects reference documents on this and they didn't point out the problem. If it makes any difference, I am using webobjects 5.3 andWonder. Can anyone help please? Thanks, Awbrey _______________________________________________ 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/rgurley %40mac.comThis email sent to [EMAIL PROTECTED]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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]
