template::form::get_elements (public)

 template::form::get_elements [ -no_api ] id

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

Return a list of element names for the form with given id.

Switches:
-no_api (optional, boolean)
If provided, filter out form builder and ad_form API element names that start with the double underscore
Parameters:
id (required)
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-admin/www/auth/authority-parameters.tcl packages/acs-admin/ www/auth/authority-parameters.tcl template::form::get_elements template::form::get_elements packages/acs-admin/www/auth/authority-parameters.tcl->template::form::get_elements packages/acs-admin/www/auth/authority.tcl packages/acs-admin/ www/auth/authority.tcl packages/acs-admin/www/auth/authority.tcl->template::form::get_elements template::form::get_values template::form::get_values (public) template::form::get_values->template::form::get_elements template::adp_level template::adp_level (public) template::form::get_elements->template::adp_level

Testcases:
No testcase defined.
Source code:
    upvar #[template::adp_level$id:properties properties
    set elements $properties(element_names)

    if { $no_api_p } {
        set elements_no_api [list]
        foreach element $elements {
            if { ![regexp {^__} $element] } {
                lappend elements_no_api $element
            }
        }

        return $elements_no_api
    } else {
        return $elements
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: