template::list::render_form_filters (private)
template::list::render_form_filters -name name [ -style style ]
Defined in packages/acs-templating/tcl/list-procs.tcl
- Switches:
- -name
(required)- -style
(optional)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set level [template::adp_level] # Provide a reference to the list properties for use by the list template # Get an upvar'd reference to list_properties get_reference -name $name # # Create 'filters' multirow # # Manually construct a multirow by setting the relevant variables set filters:rowcount 0 template::multirow -local create filters filter_name filter_label filter_clear_url selected_p clear_one_url widget foreach filter_ref $list_properties(filter_refs) { upvar #$level $filter_ref filter_properties if { ![string is true -strict $filter_properties(hide_p)] } { foreach elm $filter_properties(values) url $filter_properties(urls) selected_p $filter_properties(selected_p) add_url $filter_properties(add_urls) { if {![info exists filter_properties(clear_one_url)]} { set filter_properties(clear_one_url) "" } if {[string is true $selected_p]} { template::multirow -local append filters $filter_properties(name) $filter_properties(label) $filter_properties(clear_url) $selected_p $filter_properties(clear_one_url) [expr {[info exists filter_properties(widget)] ? $filter_properties(widget) : ""}] } } } } ############################################################ ############################################################ if {$style eq ""} { set style [parameter::get -package_id [ad_conn subsite_id] -parameter DefaultListFilterStyle -default [parameter::get -package_id [apm_package_id_from_key "acs-templating"] -parameter DefaultListFilterStyle -default "filters"]] } set file_stub [template::resource_path -type lists -style $style] # # Ensure that the ADP template has been compiled and is # up-to-date, and execute it to update __adp_output. The only data # source on which this template depends is the "elements" multirow # data source. The output of this procedure will be placed in # __adp_output in this stack frame. # [template::adp_init adp $file_stub] return $__adp_outputXQL Not present: Generic, PostgreSQL, Oracle