PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01/13/2015 9:45 AM by  Steve Yrene
Using wildcard in DME query
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages
hnguyen
New Member
(4 points)
New Member
Posts:2


Send Message:

--
02/21/2006 4: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
    Private
    Private
    Basic Member
    (36 points)
    Basic Member
    Posts:12


    Send Message:

    --
    02/21/2006 8:42 PM
    There is no wildcard per se, but this could be done with a combination of >= and < conditions:
    http://your.server.name/cgi-lawson/...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
    (4 points)
    New Member
    Posts:2


    Send Message:

    --
    02/22/2006 12:15 PM
    It works! Thanks a lot for your help, Phillip.
    Steve Yrene
    New Member
    (3 points)
    New Member
    Posts:1


    Send Message:

    --
    01/13/2015 9:45 AM
    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.
    You are not authorized to post a reply.