I have a DominoView data source on my XPage that is filtered using a URL parameter so that only documents matching this parm are displayed.
The filtered documents then need to be sorted by the value of the second column (a status field). What would be the best approach to this?
The XPage is using jQuery Mobile for presentation and the documents would, ideally, be presented in a collapsible list with a separate collapsible for each status value.
Thanks for any tips.
The easiest one is to have that view sorted in the second column too. No extra code required. You can have multiple sorted columns which don’t need to be adjacent. Then you can have better filter keys. E.g you have 4 sorted columns: you use an array with 1-4 elements as filter. With 1 element it filters on the first column. With 2 elements it filters on the first and second column etc. The results are returned sorted by the remaining sorted columns