Zum Hauptinhalt gehen

In an autocomplete box, how do I require the user to choose from the dropdowns?

Kommentare

2 Kommentare

  • Berend Veldkamp
    This is WF4 right? Whatever the user types in an autocomplete will be in the output argument, so your option 1 is the way to go: After the user presses OK, use a querytask to see if the value is valid, and if not, go back to the same displayform.
    0
  • Permanently deleted user

    Berend - 

     

    Thanks for your response. I had just figured that out (that the user entry was actually assigned to the argument by default); I was, as usual, trying to make it more complex than it was. 

     

     

    Additional info for other folks who may come across this post:

     

    In that query task to check the argument validity, I made it case-insensitive to make it easier for users. If I had typed in "k103" and was told it didn't match "K103", I would be annoyed. Note that the syntax for uppercase differs between different parts of the Where clause depending on if it's SQL or not. So my Where statement ended up looking like: 

     

    "UPPER(LIST_ITEM) = ' " + UserEntryArg.ToUpper() + " ' "

     

     

    -Jena
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.