Searching Database with Auto-Complete Search Control
  • 12 Feb 2024
  • 1 Minute to read
  • Dark
    Light

Searching Database with Auto-Complete Search Control

  • Dark
    Light

Article Summary

Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.


Overview

Example Lab Details

Version8.1
Root FolderExample Lab - Search Database with Auto Complete Search Control
Modules None
DependenciesNone

This Example Lab demonstrates how to use the Auto-Complete Search control to search a database.


Explanation

The following Example Lab involves three main parts: a Flow "Parent Flow", a Form "Parent Form", and the built-in Account database available in every instance.

The Flow contains two steps: Get All configured to grab all accounts in the instance and a Show Form step to display the Form with an Auto-Complete Search control and a Button to progress the Flow. 

For easier mapping, the Auto-Complete Search control's List Items Data Name and Selected Items Data Name inputs are named "Accounts" and "Selected Accounts," respectively. In the Flow Designer, the Form's Accounts input is set to Select From Flow to map to the Get All step's output. This gives the Auto-Complete Search control data to read and then suggests auto-completions. Finally, the selected Accounts input on the Form is set to Ignore to allow for selection at runtime.

Upon running the Flow, enter a character in the Form's Auto-Complete Search control to see its account suggestions formatted as emails, e.g., enter "a" and receive the suggestion "admin@decisions.com".

Reference Articles



Project Download

The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production-quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version v8.1 or later using our Importing/Exporting article.




Was this article helpful?