Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 3 of 3

Thread: Coding special characters in a aql wizard filter

  1. #1
    Junior Member
    Join Date
    Jun 2008
    Location
    Regina, Saskatchewan, Canada
    Posts
    5

    Default Coding special characters in a aql wizard filter

    From within a wizard on the Filter of a DBLISTBOX the following is an excerpt of the code (supplied only what needed)

    dim ubermodel as string
    ubermodel={ReqLineModel.Value}
    dim aqlstring as string
    aqlstring="Stock.Name = 'Microserve Steady State Storage - Vista' or Stock.Name = 'Microserve Steady State Storage' and fv_QuantityAvailable > 0 and seAssignment=1 and Model.Parent.Parent.Name='"& ubermodel &"'"
    Retval=aqlstring

    Currently it returns all in the stock in Microserve Steady State Storage - Vista plus the stock from the steady state that is qty >0 and correct model.
    This is what I need
    aqlstring=" (Stock.Name = 'Microserve Steady State Storage - Vista' or Stock.Name = 'Microserve Steady State Storage') and fv_QuantityAvailable > 0 and seAssignment=1 and Model.Parent.Parent.Name='"& ubermodel &"'"
    but with the 2 red brackets as special characters not as text.

    The problem is that the brackets or using a Like 'xxx %' need to be treated as special charachters and I can't seem to find the right combination of " ' & and CHAR(39) to make it work right.

    Anyone have any ideas?

    We are using AC 4.4.0 with a DB2 v8 database

  2. #2
    Senior Member
    Join Date
    Apr 2006
    Location
    Poland
    Posts
    680

    Default

    Hi,

    I have not used AC for years - but since no one responded, maybe what I remeber will be better then nothing .
    Try:
    Guess 1: aqlstring=" \(Stock.Name = 'Microserve Steady State Storage - Vista' or Stock.Name = 'Microserve Steady State Storage'\) and fv_QuantityAvailable > 0 and seAssignment=1 and Model.Parent.Parent.Name='"& ubermodel &"'"

    Gues 2: look for Unescape function in AC - AFAIR this is for special characters in queries.

    Hope That Helps
    Artur

  3. #3
    Junior Member
    Join Date
    Jun 2008
    Location
    Regina, Saskatchewan, Canada
    Posts
    5

    Default

    Thanks. I'll try that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts