OpenNTF.org - Web NAB Picker Form Field for
    Advanced
   OpenNTF Code Bin
Edit Document Code By Date > Code Document
About This Code
Brief Description:
Web NAB Picker Form Field for ExtJS v1.x 
Rating:
Not Rated Yet 
Contributor:
M D McNamara 
Category:
Javascript 
Type:
Webdevelopment 
Document Release:
Notes Version:
R6.x, R7.x 
Last Modified:
09 Jan 2008 
OpenNTF Disclaimer

All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.

Code / Description
Used to create a live address picker in a standard Ext form -- config with normal Ext.form.Combobox config parameters, plus optional NABPicker parameters (DBPath, view, etc.). A common datastore will be used for all instances of the NABPicker in your forms, unless you specifiy a different "DPPath", "view", or "count".


This Ext extension uses part of an alpha combo box "clearer" extension that I found a long time ago on the ExtJS.com forums -- if anyone recognizes whose it is, feel free to tell me so that I may give the author credit.

Usage / Example
Just include the JavaScript file, and then use the constructor "Ext.ux.form.NABPicker()" in your forms to get started! The script will do all the rest for you.

Users should just start typing the first few letters of the last name of the person they're seeking to automatically display a drop-down list of names.

(Requires the ExtJS v1.x files from ExtJS.com.)
Code Attachments
 Comments
Posted by Patrick Kwintensson on 01/15/2008 06:25:52 AMsample DB?
this looks interesting, is their an option to upload a sample database so it is easy to check the result?
Posted by M D McNamara on 01/15/2008 01:40:01 PMRe: sample DB?
I'll definitely give it a try, if you're interested, but it's going to require that you already have ExtJS v1.x package (freely available from ExtJS.com) for it to work -- the libraries need to already be present on your web server, or you'll need to use an already existing database with them in it (I'm unable to make one in a reasonable amount of time -- there's something like 1300 files in the v1.1.1 library alone!).
 Add your comment!