Hi Raymond.
We are constantly working to improve on the ogscript documentation available and have made progress in DashBoard 6.1 with the ogscript reference guide. Unfortunately, parameter constraints (available choices for lists and max/min values for ranges) have not yet been added to our ogscript documentation.
I can provide you a bit of help here. If there are other questions you have, please ask and I'll see what I can do.
To get a parameter's constraint:
var constraint = params.getConstraint([parameter OID]);
If the constraint is a list of choices:
var choiceCount = constraint.getChoiceCount();
If you wanted to work with the list of choices (this list is unmodifiable)
var choiceArray = constraint.getChoices();
for (var i = 0; i < choiceArray.length; i++)
{
ogscript.debug('My value is ' + choiceArray[i].getValue());
ogscript.debug('My name is ' + choiceArray[i].getName());
}
If you wanted to get the name for a given value:
var choiceName = constraint.getStringOf([value]);
#DashBoard