Table views (and a few other types) have a ‘Group by’ option, to group rows by a certain column.
But if you wanted to view the same set of rows with a different grouping, you have to create a new view for each ‘Group by’ setting. Or do you?
I noticed ‘&group=’ in the URL of one of my views, followed by percent signs and other parameters (URL encoding).
The decoded format looks like this:
I added a new table with one row for every column name, then pass that value to an action.
This allows for using a single table view and a single action to dynamically navigate to a table view that is grouped by any column!
I have added this functionality to my US States public sample app.