Possible to add type-ahead text field in SAIL?

Certified Senior Developer

I have a requirement to add the type-ahead text field. Is that possible in sail form. Is that recommended in appian? Is it possible with custom picker. If it is web application we use Ajax to hit backend. Please let me know if it possible in Appian.

OriginalPostID-212991

OriginalPostID-212991

  Discussion posts and replies are publicly visible

Parents
  • You can certainly provide auto-completion. Appian provides components called as "pickers" - there is a user picker, group picker, user or group picker, document picker etc. There is also a record picker introduced recently in 16.1 version. However, if the data you want to display is something else (neither user/group/document/record), you can create a custom picker. A customPicker(a!pickerFieldCustom) requires that you supply a suggestionFunction to it. The suggestionFunctions should take one parameter and return datasubset containing "data" and "identifiers" field.

    It is certainly not a bad practice to use it. If you do require auto-completion suggestion, you can decide to do it. However, if you are pulling data from DB in suggestFunction and the table has lot of data, there will be several DB calls made. The suggestFunction is executed everytime you type some character in the customPicker.(this is how you get autocompletion by matching the partial input you type) Hence, I would advise that your suggestFunction be as efficient as possible.
Reply
  • You can certainly provide auto-completion. Appian provides components called as "pickers" - there is a user picker, group picker, user or group picker, document picker etc. There is also a record picker introduced recently in 16.1 version. However, if the data you want to display is something else (neither user/group/document/record), you can create a custom picker. A customPicker(a!pickerFieldCustom) requires that you supply a suggestionFunction to it. The suggestionFunctions should take one parameter and return datasubset containing "data" and "identifiers" field.

    It is certainly not a bad practice to use it. If you do require auto-completion suggestion, you can decide to do it. However, if you are pulling data from DB in suggestFunction and the table has lot of data, there will be several DB calls made. The suggestFunction is executed everytime you type some character in the customPicker.(this is how you get autocompletion by matching the partial input you type) Hence, I would advise that your suggestFunction be as efficient as possible.
Children
No Data