Forum OpenACS Q&A: Using list-builder (new documentation)

Collapse
Posted by Malte Sussdorff on
After going through all the documentation I still could not find what I was looking for to get listbuilder to work for me with sorting, pagination and filters. Therefore I wrote a quick document which you can take a look at.
Collapse
Posted by Vincent Gulinao on
Thanks for the doc!

I got everything work in my list-builder, except for pagination. I followed as carefully as I can the instructions. I even tried restarting OACS, but still no luck.

<snip from error page>
can't read "properties(row_ids)": no such element in array
    while executing
"lrange $properties(row_ids) $start $end"
    (procedure "get_row_ids" line 9)
    invoked from within
"get_row_ids $name $page"
    (procedure "paginator::get_query" line 2)
    invoked from within
"paginator::get_query push_sched push_sched_id 1"
    ("eval" body line 1)
    invoked from within
"eval paginator::$command $args"
    (procedure "template::paginator" line 2)
    invoked from within
"template::paginator get_query $list_properties(paginator_name) $list_properties(key) $list_properties(filter,page)"
    (procedure "page_get_ids" line 13)
    invoked from within
"page_get_ids -name $name"
    (procedure "template::list::page_where_clause" line 20)
    invoked from within
"template::list::page_where_clause -and -name "push_sched""
    invoked from within
</snip>

Any hints?