Hoppa till huvudinnehållet

Auto-complete box with Integer Fields

Kommentarer

4 kommentarer

  • Tom Neer
    @Stephanie - Is the StoreNum field from a joined table or is it an actual field in the table?
    0
  • Permanently deleted user
    Hi Tom -

     

    It's an actual field in the table - - no joins at all - - and it's a long integer.  I've tried it on some other map services with integer fields and I'm gettting the same empty results.  I just can't seem to get auto-complete text boxes to load with numeric data.
    0
  • Tom Neer
    Change your query string to:

     

      CAST(StoreNum AS varchar(100)) LIKE '{0}%'

     

    This will cast the integer to a string and let you execute the LIKE. You can reduce the length of the varchar to whatever the maximum store number may be.
    0
  • Permanently deleted user
    Thank you, Tom!
    0

Du måste logga in om du vill lämna en kommentar.