select(orderby=db.v_histo_freins.DateJour||db.v_histo_freins.FRAVD)
On Friday, 28 November 2014 12:32:28 UTC-6, Daniel Lafrance wrote: > > Hi > > I am using a query like ; > > rows = db(db.v_histo_freins.busid == busid).select() > > and I am using a function to generate the HTML table. > I made this function to serve my look and feel needs and so it would adapt > to any kind of rows result. > > When I run the query and my the function, I get the columns ordered by... > i do not know what process. > > I have even tried et force the column order with ; > def affiche_tableau_freins(busid): > rows = db(db.v_histo_freins.busid == busid).select( > db.v_histo_freins.busid, > db.v_histo_freins.DateJour, > db.v_histo_freins.FRAVG, > db.v_histo_freins.FRAVD, > db.v_histo_freins.FRARG, > db.v_histo_freins.FRARD > ) > > But somehow the columns appears to have a mind of their own. > > Is there a simple way to force the column order in the rows result of the > query > > Thank's > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

