About This Code
Brief Description:
grab a document from a database ( shorten your code )
Notes Version:
R6.x, R8.x, R7.x
Last Modified:
13 Nov 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
Usage / Example
Use this to shorten your code if you don't need to declare the variables other than for the lookup. It works well when placed in a common script library.
Just define each key per column you want to return on. Here, assume the 2 columns in the 'PeopleByLastFirst' view are last name and first name
...
key(0) = "Mortin"
key(1) = "Mike"
set doc = GetDocFromDB(nabDb, "PeopleByLastFirst", key, true)
...