
This database, when installed on a server, will let you use it as a popup for choosing names from the NAB. Really nice and handy.
There are two different kinds of popups, one to choose a single name, and one to choose multiple names. It uses all XML to get the information a page at a time. This makes it a lot faster than constantly loading page after page.
Simply install the database on the server.
In any field that you wish to use enter in the HTML Attributes field and replace fieldName with the case sensitive name of the field that would be filled in when you click OK on the popup:
"onKeyPress=\" windowOpener(\'/NABPicker.nsf/wAddress?openform&value=fieldName\',\'_blank\', \'status,width=425,height=350\');\""+
"onClick=\" windowOpener(\'/NABPicker.nsf/wAddress?openform&value=fieldName\',\'_blank\', \'status,width=425,height=350\');\""
For multiple name selection, use the following code:
"onKeyPress=\" windowOpener(\'/NABPicker.nsf/wAddressMultiple?openform&value=fieldName\',\'_blank\', \'status,width=750,height=370\');\""+
"onClick=\" windowOpener(\'/NABPicker.nsf/wAddressMultiple?openform&value=fieldName\',\'_blank\', \'status,width=750,height=370\');\""
Of course, I always use the following JavaScript window opener code (From codestore.org):
- function windowOpener(url, name, args) {
- if (typeof(popupWin) != "object"){
- popupWin = window.open(url,name,args);
- } else {
- if (!popupWin.closed){
- popupWin.location.href = url;
- } else {
- popupWin = window.open(url, name,args);
- }
- }
- // popupWin.focus();
- }