template::data::validate::oneof (public)
template::data::validate::oneof value_ref message_ref
Defined in packages/acs-templating/tcl/data-procs.tcl
Checks whether the submitted value is contained in the list of values provided via the "-options" parameter of "::template::element::create". If it is set an error is thrown.
- Parameters:
- value_ref (required)
- Reference variable to the submitted value
- message_ref (required)
- Reference variable for returning an error message
- Returns:
- True (1) if valid, false (0) if not
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- validate_oneof