I've been trying to filter the view by second sorted column but so far it doesn't work. (my underlying view is sorted by first column categorized and sorted by ascending, and the second column is sorted by ascending order as well) How can i get through this thing? and I don't want to create one more view for this filtering
1
votes
2 Answers
5
votes
To filter by multiple keys you need to use a Java Vector with the keys you want to filter by. Here's an example of applying a filter to a sessionScope variable that you then use for the keys property of the view:
var vArray = new java.util.Vector();
vArray.addElement("key1");
vArray.addElement("key2");
sessionScope.put('viewFilter', vArray);