Yeah, this is a pretty common requirement, and I've used a double list before that had up/down arrows. I'll see if I can find the code somewhere.. I've been meaning to package that into a widget anyways.
Daniel On Apr 14, 8:28 am, comb <sa...@gmx.net> wrote: > Thanks for answering. > User-View: > The Band-Members can edit a gig (backend) and on the edit page there > is a list of all songs and they can add them to the setlist of the > gig. > The band should be able to give the ordering of the songs in which > they are played on the gig. > > I don't want to reinvent the wheel, so I tried to use the plugin for > the double-list. It's almost perfect and while adding songs you can > add the songs in the order they are supposed to be, but the plugin > cannot save the order of the items and I want to know, how I can add > this feature? If that's to complicated, I would like to easily do it > an other way. > Your suggestion with ajax etc is fine, but it would cost time to > implement & test it and a plugin is just easier for me. :-) > > On 14 Apr., 14:20, Tom Haskins-Vaughan <t...@templestreetmedia.com> > wrote: > > > How do you see this working from a user's point of view? What order is > > supposed to be recorded? I mean how do you anticipate telling the form > > the correct order? Would it not be better to do the songs for one gig > > at a time and just click to add a song in the order which you want to > > store them. You could use Ajax to speed things up a bit. > > > On Mon, Apr 12, 2010 at 12:16 PM, Robert Heim <sa...@gmx.net> wrote: > > > any hints or tipps? :-/ > > > > Am 09.04.2010 14:45, schrieb comb: > > > >> Hi > > > >> I have a many-To-many (Gig-Song) relation and want to use > > >> sfWidgetFormSelectDoubleList. > > >> It work's fine, but I want to save the order of assignments, too (and > > >> not only associated /unassociated ). > > > >> schema.yml: > > >> # many-To-many-relation > > >> ... > > >> GigSong: > > >> columns: > > >> order_id: { type: integer, notnull: true, default: 0 } > > >> gig_id: { type: integer, primary: true } > > >> song_id: { type: integer, primary: true } > > >> ... > > > >> As you see I have an order_id. I want to use this field to determine > > >> the ordering of played songs on a gig. > > > >> How can I save the order in which I associated the songs to a gig > > >> using the sfWidgetFormSelectDoubleList? Or what may I do alternatively? > > > > -- > > > If you want to report a vulnerability issue on symfony, please send it to > > > security at symfony-project.com > > > > You received this message because you are subscribed to the Google > > > Groups "symfony users" group. > > > To post to this group, send email to symfony-users@googlegroups.com > > > To unsubscribe from this group, send email to > > > symfony-users+unsubscr...@googlegroups.com > > > For more options, visit this group at > > >http://groups.google.com/group/symfony-users?hl=en > > > > To unsubscribe, reply using "remove me" as the subject. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en