template::data::validate (public)

 template::data::validate type value_ref message_ref

Defined in packages/acs-templating/tcl/data-procs.tcl

This proc invokes the validation code for a given type.

Parameters:
type (required)
value_ref (required)
message_ref (required)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_validate_boolean validate_boolean (test acs-templating) template::data::validate template::data::validate test_validate_boolean->template::data::validate test_validate_currency validate_currency (test acs-templating) test_validate_currency->template::data::validate test_validate_date validate_date (test acs-templating) test_validate_date->template::data::validate test_validate_email validate_email (test acs-templating) test_validate_email->template::data::validate test_validate_enumeration validate_enumeration (test acs-templating) test_validate_enumeration->template::data::validate template::data::validate::widget template::data::validate::widget (private) template::data::validate->template::data::validate::widget template::data::validate::currency template::data::validate::currency (public) template::data::validate::currency->template::data::validate template::element::validate template::element::validate (private) template::element::validate->template::data::validate

Testcases:
validate_boolean, validate_email, validate_integer, validate_naturalnum, validate_float, validate_number, validate_text, validate_search, validate_file, validate_keyword, validate_filename, validate_url, validate_url_element, validate_date, validate_enumeration, validate_textdate, validate_oneof, validate_currency
Source code:
    if {![validate::widget $value_ref $message_ref]} {
        return 0
    } else {
        return [validate::$type $value_ref $message_ref]
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: