On Jueves, 15 de Abril de 2010 13:35:04 [email protected] escribió: > Hi, > > That might work if all your records are on one page. If you need more > than one page than it s getting more complicated. > Or lets assume you would need to perform some search actions to find > all records you need to select. > > I think, you will need a place (session, db) where you store that user > x has selected record y.
Then you should use session, storing in db another user can interfere with your selection. > > -- > Volker > > On 13 Apr., 10:26, "Sergio Cambra .:: entreCables S.L. ::." > > <[email protected]> wrote: > > 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] -- 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.
