select() query returns list of "Rows" Each "Row" looks like a python dict As far as I know the "keys" are database field names.
If you want to "print" the rows as is - you may need to write your custom code to "covert" them to user-friendly titles. DAL is meant to interact with databases smartgrid is meant to "showing the data to user" So I think it is logical that smartgrid cares about what headers you show to the user - DAL is meant to be for programmers. -Mandar On Thursday, March 27, 2014 9:17:02 AM UTC+5:30, [email protected] wrote: > > Mandar, > > I use DAL to make a select to my db. > I get field name's as titles and then content of select. > > variable = db(db.hcregistros.id > =="1").select('hcregistros.noid','hcregistros.fecha','hcregistros.registro') > > *hcregistros.noid hc*cregistros.fecha > hcregistros.registro > > I would like to custom them if possible. > > I mention smartgrid because with it you can customize headers, but i dont > know if possible using DAL. > > > > Thanks. > > > > On Tuesday, March 25, 2014 11:30:01 PM UTC-5, [email protected] wrote: >> >> Hi all. >> >> As mostly may know, when doing a select query the result will show a db >> field title for each column. >> >> How do i remove or change this db field title for some nice header as use >> with smartgrid.? >> >> >> >> Thanks. >> > -- 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.

