Forum: Ruby on Rails Easily finding attributes from Ext.grid.GroupingView's xml calls

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Alex B. (Guest)
on 2008-10-24 08:23
(Received via mailing list)
I have a ext.GroupingView grid that paginates, filters, and obviously

The combination of these options is both awesome and beyond the scope
of this discussion.

The problem is, the params request when a user wants a new set of
results is something that bears no resemblance to the database schema.

I've ended up doing something like this:

That looks like hell, I'm not sure it works, and I dread the idea of
maintaining it.

Is there a better solution out there? For those not wanting to look at
the horrors beyond that link, I need something to take a filter string
with a value, an offset, a group key, a limit, a sort key with
ASC|DESC, and turn it into a query that spits out an array of objects
sorted first by group and then again by sort.

Thanks in advance -

This topic is locked and can not be replied to.