template::form::set_values (public)

 template::form::set_values id array_ref

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

Convenience procedure to set individual values of a form (useful for simple update forms). Typical usage is to query a onerow data source from database and pass the resulting array reference to set_values for setting default values in an update form. NB! This proc must always be called through "form set_values" or "template::form set_values", or it won't be able to find the variable.

Parameters:
id (required)
The form identifier
array_ref (required)
The name of a local array variable whose keys correspond to element identifiers in the form

Partial Call Graph (max 5 caller/called nodes):
%3 template::element template::element (public) template::form::set_values template::form::set_values template::form::set_values->template::element

Testcases:
No testcase defined.
[ show source ]
Show another procedure: