You can create Auto-Index profiles that can then be associated with one or more document types. To create an Auto-Index profile:
A data source stores information necessary to establish connectivity to a specific database. This field defines the database where the Auto-Index information is located and how to connect to that database. Use the ellipsis button to select a data source for the auto index. For more information about configuring data sources, click here.
The Table tree displays a list of all tables and views in the data source. Click on the + sign in front of a table to view the fields in that table. Select a table and click OK.
Example: SELECT * FROM Vendors WHERE Vendname = '%Vendor Name%' (where Vendor Name is the name of the doc-link property.)
If you used a custom SQL statement, specify whether or not search properties need to be passed in to Auto-Index. If the Auto-Index profile will be used in Workflow or some other process where properties will not be passed in, select the Search properties are not required check box. The Search Properties grid on the Search Properties tab will be disabled and Auto-Index will utilize the custom SQL statement to control which records are returned.
![]() |
Specify return properties by creating column aliases in the custom SQL statement and then referencing the alias in the Property Maps grid on the Return Properties tab. Search properties are not required selection with caution. If it is selected and the custom SQL statement is not correct, Auto-Index could potentially grab thousands of values and bring the system to a halt while doc-link tries to append these values to the document. |
Click the Search Properties tab to specify the properties used to initiate the search of the data source. The Properties to Search On grid contains the property or properties you want to use to initiate your search of the data source. For example, if you want to trigger Auto-Index based on an invoice number, you would map the invoice number property to the corresponding field in your data source and indicate whether multiple values can be present for your selected property.
![]() |
If you selected the Search properties are not required check box on the General tab, the Search Properties tab is disabled. Entering a property in the Properties to Search On tab does not automatically mean that property value will get indexed into doc-link; you must define which properties to index on the Return Properties tab. If you want to index the property you defined to search on, you must re-enter it on the next tab. |
If you entered a custom SQL statement on the General tab, you do not need to select a database field. doc-link will use the database field specified in the SQL statement.
If you don’t know the name of the field, click the ellipses button to display the Data Source Field Lookup window. The Field tree displays a list of all the possible fields in the selected table. Select a Field and click OK.
For example, an Access database would require the pound sign (#) delimiter for date values, single quote (') delimiter for a string, and no delimiter for numeric values. In SQL Server, numeric data types do not require a delimiter, but strings require a single quote (') delimiter.
![]() |
Known Auto-Index issue If you are using vbscripting on your auto-index search on property and the auto-index does not appear to be firing, reregister MSSCRIPT.OCX on either your application server or your workstations. MSSCRIPT.OCX is a windows system control that does not appear to be correctly registered. The following error message will appear in the Event Viewer Application Log, but the user is not presented with an error message: Exception: Unable to cast COM object of type 'AltecMSScript.ScriptControlClass' to interface type 'AltecMSScript.IScriptControl'. |
The Return Properties tab allows you to map the fields returned from the data source to doc-link properties for the document type you are configuring. Auto-Index will add these properties to the document.
The Property Maps grid displays all properties Auto-Index should return from the data source once data is identified.
Select the Database Field that corresponds to the property value you want to index. If you don’t know the name of the field, click the ellipsis button to display the Data Source Field Lookup window. The Field tree displays a list of all the possible fields in the selected table. Select a field and click OK.
![]() |
To specify an ordinal position, enter COL:x where 'x' is the ordinal position of the column number. If you encounter problems with this method, reference the exact column name. If you only have 1 column returned, you could simply type in value COL:0 for the Database Field. Another option is to alias a column name in your custom SQL statement on the General Tab, and then references the alias. |
![]() |
Entering a property in the Search Properties tab does not automatically mean that property value will get indexed into doc-link. You must first define which properties to index on the Return Properties tab. Naming the auto-index, choosing a data source, then specifying search and return properties is considered a complete auto-index profile. |