About This Code
Brief Description:
grab category docs from a database ( shorten your code )
Notes Version:
R6.x, R8.x, R7.x
Last Modified:
03 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 in a common script library
All you have to do is define each key per column you want to return on. Here, assume the 3 columns in the PeopleByLocationview are Country, Province, and City. This would return all people who are in this location:
...
key(0) = "Canada"
key(1) = "Saskatchewan"
key(1) = "Regina"
set navdocs = GetCategoryDocsFromDb(nabDb, "PeopleByLocation", key, true)
...