in trunk now... IS_IN_DB(....orderby=....)

Massimo

On Dec 27, 10:51 pm, Jon <[email protected]> wrote:
> Sounds good. So even for alphabetical sorting, the right approach is
> to just return my data in the right order via the controller and then
> have the view iterate through it to build the HTML drop-down manually?
> If so, that is fine--just confirming best design.
>
> On Dec 27, 2:15 am, mdipierro <[email protected]> wrote:
>
> > You have to do that manually for now.
>
> > On Dec 27, 12:10 am, Jon <[email protected]> wrote:
>
> > > I'd add one follow-up to this to (still need the first answer)... I'm
> > > curious to know how hard it is to express a many-to-many selection
> > > (e.g. check all related items that apply to this record's item) in an
> > > automatically built form? Or do you have to do that manually...
>
> > > On Dec 26, 11:41 pm, Jon <[email protected]> wrote:
>
> > > > I am using this in my model to achieve a drop-down selection in my
> > > > controller forms, hence views:
>
> > > > db.menu_item.restaurant.requires=IS_IN_DB
> > > > (db,'restaurant.id','restaurant.name')
>
> > > > However, I don't know how I can sort the results to not be
> > > > alphabetical, but rather, a manually assigned sort column I've
> > > > provided myself (or, perhaps, simply the order in which they were
> > > > added to the database).
>
> > > > Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to