On Nov 10, 2008, at 3:58 PM, Chuck Hill wrote:
On Nov 10, 2008, at 1:31 PM, Awbrey Hughlett wrote:
Why does this work for matching the word "Lubbock":
EOQualifier.qualifierWithFormat("city caseInsensitiveLike
'lub*'", null);
and not this:
String cityWildcard = "lub";
NSArray args = new NSArray(cityWildcard + "*");
EOQualifier.qualifierWithFormat("city caseInsensitiveLike %@",
args);
This is not just doing string catenation. Try this:
NSArray args = new NSArray(cityWildcard);
EOQualifier.qualifierWithFormat("city caseInsensitiveLike [EMAIL PROTECTED]",
args);
Chuck
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 and
Wonder. 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/chill%
40global-village.net
This email sent to [EMAIL PROTECTED]
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
That gave an error:
Error: java.lang.reflect.InvocationTargetException
Reason: Lexical error at line 1, column 28. Encountered: "*" (42),
after : ""
Stack trace:
File
Line#
Method
Package
_EOQualifierParserTokenManager.java
1019
getNextToken
com.webobjects.eocontrol._private
_EOQualifierParser.java
1002
jj_ntk
com.webobjects.eocontrol._private
_EOQualifierParser.java
501
parseValueList
com.webobjects.eocontrol._private
_EOQualifierParser.java
651
RelOpExpression
com.webobjects.eocontrol._private
_EOQualifierParser.java
594
Expression
com.webobjects.eocontrol._private
_EOQualifierParser.java
872
parseLogicalExpression
com.webobjects.eocontrol._private
EOQualifier.java
941
qualifierWithQualifierFormat
com.webobjects.eocontrol
ListingSearch.java
58
setSearchResults
com.findthemlistings.pages
ListingSearch.java
33
awake
com.findthemlistings.pages
WOComponent.java
862
_awakeInContext
com.webobjects.appserver
ERXComponent.java
55
_awakeInContext
er.extensions.components
WOApplication.java
1962
pageWithName
com.webobjects.appserver
WOAction.java
98
pageWithName
com.webobjects.appserver
DirectAction.java
31
searchAction
your.app
NativeMethodAccessorImpl.java
NA
invoke0
sun.reflect
NativeMethodAccessorImpl.java
39
invoke
sun.reflect
DelegatingMethodAccessorImpl.java
25
invoke
sun.reflect
Method.java
585
invoke
java.lang.reflect
WODirectAction.java
128
performActionNamed
com.webobjects.appserver
ERXDirectAction.java
335
performActionNamed
er.extensions.appserver
WOActionRequestHandler.java
240
_handleRequest
com.webobjects.appserver._private
WOActionRequestHandler.java
142
handleRequest
com.webobjects.appserver._private
WOApplication.java
1306
dispatchRequest
com.webobjects.appserver
WOWorkerThread.java
173
runOnce
com.webobjects.appserver._private
WOWorkerThread.java
254
run
com.webobjects.appserver._private
Thread.java
613
run
java.lang
I have been reading this website for information:
http://developer.apple.com/documentation/LegacyTechnologies/
WebObjects/WebObjects_4.5/System/Documentation/Developer/WebObjects/
Topics/ProgrammingTopics.1d.html
It is rather old, but I figured the same principles applied to
something this simple. ??
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/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]