The CHT Blogger

Thanks for your interest in The Clarion Handy Tools, an awesome collection of productivity enhancements for Clarion developers. These tools consist of an ever-expanding set of Clarion Templates and OOP Classes that extend or complement the normal functionality of the Clarion Application Development System from SoftVelocity.

Saturday, August 8, 2009

New Template, HandyFieldAutoCompleteControl

The Clarion Handy Tools Template called HandyFieldAutoCompleteControl is a control template that autocompletes a form field from values already available in another file.

In the example provided - HNDDROPDOWN.APP - we're autocompleting a "State Name" field from a file called hndstatesnew.tps. By simply typing 3 or 4 letters into this field a dropdown appears which displays the closest matches for the typed value. By continuing to type beyond 4 characters a matching value is brought into the autocomplete control.

Alternatively, with the down arrow key, users can scroll down into the dropdown control to select one of the values that appears there.

Adding to the autocomplete file: If you type a unique value and press CtrlEnter, the entered value is added to the autocomplete source file.

Deleting from the autocomplete file: If you bring an existing value from the autocomplete file into the autocomplete entry control and press CtrlDelete you are able to delete a value from the autocomplete source file.


autocomplete.gif



To watch a short video of the HandyFieldAutoCompleteControl Template in action, click here HandyFieldAutoCompleteControl Template Demo

Cheers...

Gus Creces
The Clarion Handy Tools Page
Visit Website

No comments: