Hoppa till huvudinnehållet

Autocomplete convert to Upper Case

Kommentarer

2 kommentarer

  • Permanently deleted user

    It depends on the format of the where clause for the autocomplete. I think for most cases where clauses are similar to "fieldname LIKE '{0%}'" where {0} stands in for the value the user enters with a trailing wildcard. To make a case insensitive query you can use the standard syntax of the database, so for SQL Server and, I believe file geodatabases, you could use a where clause like "UPPER(fieldname) LIKE UPPER('{0}%'); this will convert both the value from the database and the value the user entered to uppercase and then compare them.

    0
  • Permanently deleted user

    Brilliant Nicholas.

    I was halfway there, but didn't have enough "UPPER's". Was becoming a bit of a downer, tbh... :)

    0

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