3 Antworten
Thank you for the response, but I think I wasn't clear on what I was looking for, though we're close. ASC or DESC isn't the issue, it's passing the column name to sort to the Controller. In other words, if I have a column header of 'Name' (which is the name of the field), I'd like to be able to click on that header to resort by that field. Immediately next to Name would be another field name in the column header. Let's say it's Closedate. I'd like to be able to click on that field to sort and so on for the remainder of the headers. Note that I'm not looking for the ability to do multi-level sorts (e.g. Sort by Name first and then sort by Closedate), rather just looking to be able to click on one header in the header row to resort the entire table and clicking on another header will resort the entire table again. Does that make sense? My issue that I can't seem to pass the field name from VF to my Controller. It keeps coming up as Null.