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):
%3 ad_conn ad_conn (public) apm_package_id_from_key apm_package_id_from_key (public) parameter::get parameter::get (public) template::adp_init template::adp_init (public) template::adp_level template::adp_level (public) template::list::render_form_filters template::list::render_form_filters template::list::render_form_filters->ad_conn template::list::render_form_filters->apm_package_id_from_key template::list::render_form_filters->parameter::get template::list::render_form_filters->template::adp_init template::list::render_form_filters->template::adp_level

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_output
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: