Using wildcard in DME query

 3 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
hnguyen
New Member
Posts: 2
New Member
    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
    Basic Member
      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
      New Member
        It works! Thanks a lot for your help, Phillip.
        Steve Yrene
        New Member
        Posts: 1
        New Member
          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.