On Lunes, 12 de Abril de 2010 19:53:47 JeffS escribió:
> 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.

In my opinion that's not good, another person can mark check boxes and then 
you could delete some records which you didn't check. I would add the primary 
key column with checkbox form_ui, and an action link with type collection 
which would send a request with all checkboxes (getting them with JS). You 
would need to add a new action in the controller too.


>
> Any other thoughts?
>
> Jeff

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
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