template::form::check_elements (private)
template::form::check_elements id
Defined in packages/acs-templating/tcl/form-procs.tcl
Iterates over all declared elements, checking for hidden widgets and rendering those that have not been rendered yet. Called after rendering a custom form template as a debugging aid.
- Parameters:
- id (required)
- The form identifier
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: get_reference set output "" foreach element_ref $elements { # get a reference by element ID upvar #$level $element_ref element # Check if the element has been rendered already if {$element(is_rendered) == "f"} { # If the element is hidden, render it if {$element(widget) eq "hidden"} { append output "<div>[template::element render $id $element(id) {} ]</div>\n" set element(is_rendered) t } else { ad_log Warning "template::form::check_elements: MISSING FORMWIDGET: $id\:$element_ref" # Throw an error ? } } } return $outputXQL Not present: Generic, PostgreSQL, Oracle