Hi Jeff

On Tue, Apr 13, 2010 at 5:53 AM, JeffS <[email protected]> wrote:

> Hi team,
>
> I have done quite a bit of searching and it looks like this is still
> an open problem with many interested users.
>
> Is there a straightforward way to add a column of checkboxes to the
> List view and then execute a table-style action link on only those
> rows where the box is checked?
>
> A simple example is deleting a large number of rows at once. Select a
> bunch of rows, click "delete" once and confirm only once, and you're
> done.
>
> Another example is generating a report using multiple line items.
>
> As others have said previously, one could add a new boolean field to
> the db schema, use inplace_edit, and reset that field after the action
> link is complete. I think that will work, but it doesn't seem like the
> simplest answer.
>
> Any other thoughts?
>
> Jeff
>

I had a similar challenge - not deleting but "do some action to many rows at
once".
I used the rather crude (but mostly effective) approach of an embedded
scaffold within a plain old form.
I create a "virtual column" checkbox that AS displays as part of the list.
I then handle the form actions "manually" but get the benefit of AS handling
the "list" stuff (pagination, sorting, filtering).

Although mine works, I am sure there are more elegant ways to handle this.
I look forward to hearing other responses.

Regards, Tony

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to