Form Autofill

Formatta's Form Autofill feature allows users to configure forms in Formatta E-Forms Manager so that they may be automatically loaded with information from a database.  Using Autofill, a form connects remotely to Formatta E-Forms Manager, which in turn connects to a database, retrieves data, and populates fields of the form with it.  This technology allows your forms to be dynamically populated with data from a database in your environment without ever having to connect directly to the data source.  Instead, Formatta E-Forms Manager brokers the transaction between the form and the database using pre-configured settings that you can define and customize.  

 

Setup of a form for Autofill requires three main steps, which include:

 

 

How Autofill Works

Once configured and enabled, an Autofill operation takes place using the sequence of events described below:

 

  1. An Autofill Handler is invoked, either from a button or other event in a form on a user's desktop, or automatically when the form is requested for download from Formatta E-Forms Manager.

  2. If the Autofill Handler definition specifies that authentication is required, the form user will be challenged for a user ID and password, which must be supplied before the operation can continue.

  3. The Autofill Handler checks the Autofill Query assigned to it.  If the query requires dynamic parameters from a form dialog window, Formatta E-Forms Manager sends a dialog back to the form to collect the required data from the form user.

  4. Any other dynamic parameters needed by the query may be retrieved from form fields or from an HTTP query string used to download the form. The parameter values are put into the query in place of tokens set when the query was defined.

  5. The Autofill Handler connects to an external database using the ODBC data source assigned to the handler.

  6. The Autofill Handler runs the query and checks for results.

  7. Any results are parsed and placed into fields of the form or into an outgoing pop-up list dialog, using the Query-to-Form mapping specified in the handler definition.

  8. If the results are presented to the user in a pop-up list dialog, the user clicks on one of the options in the list, populating form fields according to the Query-to-Form mapping specified in the handler definition.

Invoking Autofill Operations

E-forms can utilize Form Autofill in two distinct ways, depending on the nature of the application, using the Action Types described below:

 

 

Another On-Download option allows you to populate a form with data from a query run against the database using parameters specified in a published form's unique download URL.  This enables you to provide forms pre-loaded with specific information while dynamically setting the parameters for data retrieval at download time.

 

 

Form Data Population Options

Formatta E-Forms Manager Autofill can populate form fields in a variety of ways, using the Autofill Types described below.

 

 

Note: A pop-up list can only be used in a Form Autofill with a Remote Command action type.