template::list::element_where_clauses (public)

 template::list::element_where_clauses -name name [ -and ]

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

Switches:
-name (required)
-and (optional, boolean)
Set this flag if you want the result to start with an 'and' if the list of where clauses returned is nonempty.

Partial Call Graph (max 5 caller/called nodes):
%3 template::list::create template::list::create (public) template::list::element_where_clauses template::list::element_where_clauses template::list::create->template::list::element_where_clauses template::list::get_reference template::list::get_reference (public) template::list::element_where_clauses->template::list::get_reference

Testcases:
No testcase defined.
Source code:
    # Get an upvar'd reference to list_properties
    get_reference -name $name

    if { [llength $list_properties(element_where_clauses)] == 0 } {
        return {}
    }

    set result {}
    if { $and_p } {
        append result "and "
    }
    append result [join $list_properties(element_where_clauses) "\n and "]

    return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: