Use the on-query slot:
on-query
A function designator that accepts the widget instance, as well as
sorting and pagination parameters. The function is expected to
return a properly sorted and paged sequence. The function should
also accept a :countp keyword argument. If true, the function should
return only the number of items with the given parameters, not the
actual items themselves. If this slot is NIL (the default), the
dataseq will operate on all persistent classes specified in
'data-class'. Alternatively, 'on-query' may be a list of
store-dependent keywords that will be passed to the datastore. This
may be a SQL 'where' clause, etc.
Initargs::on-query; Accessors:dataseq-on-query.
-Robin
--
They say: "The first AIs will be built by the military as weapons."
And I'm thinking: "Does it even occur to you to try for something
other than the default outcome?" -- http://shorl.com/tydruhedufogre
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/