[Dbix-class] Problem getting data from resultset

Len Jaffe lenjaffe at jaffesystems.com
Thu Jul 5 17:59:15 GMT 2012


On Thu, Jul 5, 2012 at 1:53 PM, Kenneth S Mclane <ksmclane at us.ibm.com>wrote:

> Yes, I can get the data that way, but I have to specify each column by
> name that way and I am trying to get this to be a bit more re-usable. I
> need to be able to use this on many different pages, supplying a function
> that doesn't need to be embedded and custom hard coded for each query. I =
am
> looking to be able to first, grab the names of the columns so I can write
> the header row, then write the data, save the file and offer it up to the
> browser to be saved. I can't find a way to get a list of the field names
> from the result set, that would work as I could then store them in vars a=
nd
> then loop through using the column names to get the values for each cell.
>

How are you specifying the names of the columns to the query?

-- =

lenjaffe at jaffesystems.com   614-404-4214             www.volunteerable.net
Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage
Greenbar <http://www.greenbartraining.org/>: Grubmaster: 2012-2009, Grub
Asst: 2008, Trained: 2007.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20120705/75e=
89d8f/attachment-0001.htm


More information about the DBIx-Class mailing list