Forums
S3 Customization/Development
Using wildcard in DME query
Author
Messages
hnguyen
New Member
Posts: 2
2/21/2006 9:48 PM
Does anyone know how to use wildcard in DME's query? For example, I'd like to search in vendor table for all records where vendor's name starts with "SM"
In Structured-Query-Language, I can enter the followed statement in a query using the percent sign (%) as wildcard to get the result that I wanted.
"Select vendorname From vendor Where vendorname = 'SM%'"
The statement above would returned all vendors where vendor's name starts with 'SM'
Thanks,
Phillip Feller
Basic Member
Posts: 12
2/22/2006 1:42 AM
There is no wildcard per se, but this could be done with a combination of >= and < conditions:
http://your.server.name/c...%26vendor_sname%3CSN
The %3E is an escaped >, %26 is an escaped &, and %3C is an escaped <. If you are doing this from JavaScript, you would not need to escape these symbols (because Lawson JavaScript code does this for you). If you are on 8.0.3, you may be able to use the servlet version of dme.
hnguyen
New Member
Posts: 2
2/22/2006 5:15 PM
It works! Thanks a lot for your help, Phillip.
Steve Yrene
New Member
Posts: 1
1/13/2015 2:45 PM
Greetings: I have a similar question. Can I use a wild card in the PR295 report. That is, I'd like to capture all account units beginning with 0405, for example.