template::list::page_where_clause (public)

 template::list::page_where_clause -name name [ -and ] [ -key key ]

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

Switches:
-name
(required)
-and
(boolean) (optional)
Set this flag if you want the result to start with an 'and' if the list of where clauses returned is nonempty.
-key
(optional)
Specify the name of the primary key to be used in the query's where clause, if different from the list builder's key.

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-admin/www/auth/batch-job.tcl packages/acs-admin/ www/auth/batch-job.tcl template::list::page_where_clause template::list::page_where_clause packages/acs-admin/www/auth/batch-job.tcl->template::list::page_where_clause packages/categories/www/cadmin/category-usage.tcl packages/categories/ www/cadmin/category-usage.tcl packages/categories/www/cadmin/category-usage.tcl->template::list::page_where_clause packages/categories/www/categories-browse.tcl packages/categories/ www/categories-browse.tcl packages/categories/www/categories-browse.tcl->template::list::page_where_clause template::list::get_reference template::list::get_reference (public) template::list::page_where_clause->template::list::get_reference template::list::page_get_ids template::list::page_get_ids (public) template::list::page_where_clause->template::list::page_get_ids

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

    if { $list_properties(page_size) eq "" || $list_properties(page_size) == 0 } {
        return {}
    }

    set result {}

    if { $and_p } {
        append result "and "
    }

    if { $key eq "" } {
        set key $list_properties(key)
    }

    append result "$key in ([page_get_ids -name $name])"

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