Enable the options Show label with the description and Capture Text. On Label enter Search.Ĩ. SELECT CustomerID, CompanyName FROM customers ORDER BY CustomerIDħ. Access the tab Edition Lookup in the CustomerID field and enter the instructions below for the SQL Select Statement: Change the Data Type attribute to Text Autocomplete .Ħ. Select the fields OrderID, CustomerID, OrderDate, RequiredDate e ShippedDate.Ĥ.Open the Fields folder and click on the CustomerID field.ĥ.
Create a new form based on the orders tableģ.
On this sample it will be shown two useful resources, the AJAX autocomplete function and the capture linkġ. Autocomplete fields in Scriptcase are used when we have to fill a field in a form application that already has a value set in the database, for example, when adding a sale in the system, we associate the sale to a seller previously registered in the database, in this case when start to type the initials or any other part of the name of the seller, the Scriptcase, will automatically displays a list of all the sellers that have the characters in his name or surname.