A first stab at this functionality is committed in revision 665
http://svn.cocoondev.org/viewsvn?rev=665&root=xreporter&view=rev
As mentioned this still misses
- some filtering in the order-by
- updating the schema to validate the new element in the report-definition
See also mail-thread:
http://lists.cocoondev.org/pipermail/xreporter/2006-March/002618.html
Fixed in SVN rev 707:
* column definition can have an attribute allow-orderby (see also
XRP-127), which can be true/false/if-selected
* orderby-choice: can now have an attribute "if-columns-selected". If present, the order by choice will only be available if the columns mentioned in that attribute are currently all visible (= selected).
* when the selected columns are changed, the order by configuration will be checked to see if it is still valid for the new column selection, if not it is reset to its default state.
* updated xreporter.xsd with all related changes, including addition of select-column-list.