Forum OpenACS Development: Passing variables through the link with paginator

How would I add variables to pass through the link between the pages of a list.

As a sample I looked at the template list on bug-tracker package. But i still couldn't figure out how it adds all the variables such as format, project_id and fstate to the page links: ( << < 1 2 3 4 5 6 > >> )

as in:
https://openacs.org/bugtracker/openacs/?format=table&page=9&project%5fid=56106&f%5fstate=7&orderby=bug%5fnumber%2cdesc

I wonder if it is this chunk bellow within bug-procs.tcl.
at ad_proc bug_tracker::bug::get_multirow
{} {
foreach var [bug_tracker::get_export_variables] {
#JOEL put this back later
upvar \#[template::adp_level] $var $var
}
...
}

Collapse
Posted by Iuri Sampaio on
Problem solved!

The answer is "filters"

Here it is and example of a templatelist with newsletter id passed as parameter through the link

template::list::create \
-name "users" \
-multirow "users" \
-row_pretty_plural "users" \
-actions $actions \
-bulk_actions $bulk_actions \
-pass_properties { newsletter_id } \
-page_size 5 \
-page_flush_p t \
-page_query_name users_pagination \
-elements {
email {
label "[_ newsletter.Email]"
display_template {
@users.email;noquote@
}
}
} -filters {
newsletter_id { default_value $newsletter_id }
} -orderby {
email {
label "[_ newsletter.Email]"
orderby "lower(nd.email)"
}
}