Re: Multiple queries to populate drop down list boxes. Updated

Finn Hakansson <finn.hakansson-SVY5Q1FbfBtWk0Htik3J/[email protected]> Thu, 04 Oct 2012 13:27:40 -0400
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <[email protected]>
The corresponding value to "shifts" is a reference to an arrayref. The 
value for "factories" is a regular arrayref. That could potentially 
cause trouble in your template.

On 10/04/2012 01:04 PM, Mark Haney wrote:
> On 09/27/2012 01:21 PM, Finn Hakansson wrote:
> > Could you dump $vars (with Data::Dumper) and also show us your template,
> > please?
> >
>
> Sure.  In fact, that was the last thing I did before leaving work that 
> day.  Not realizing, of course, that my achy joints were going to 
> rebel the way they did.  I'm still trying to find a medication that 
> works for me, so crap like that is bound to happen.
>
> Just to make absolutely sure I was getting all the variable data, I 
> did a DataDump on $vars which is the variable that passes all the data 
> to the template.  This is what it has in it:
>
> markh@ubuhost:~$ cat /tmp/shifts.info
> $VAR1 = \{
>             'shifts' => \[
>                             [
>                               'First'
>                             ],
>                             [
>                               'Second'
>                             ],
>                             [
>                               'third'
>                             ],
>                             [
>                               'weekend'
>                             ]
>                           ],
>             'factories' => [
>                              {
>                                'abbr' => 'AB',
>                                'id' => '1'
>                              },
>                              {
>                                'abbr' => 'EBM',
>                                'id' => '2'
>                              },
>                              {
>                                'abbr' => 'QEM',
>                                'id' => '3'
>                              }
>                            ],
>             'cgi' => bless( {
>                               '.parameters' => [],
>                               'use_tempfile' => 1,
>                               '.charset' => 'ISO-8859-1',
>                               '.fieldnames' => {},
>                               'param' => {},
>                               'escape' => 1
>                             }, 'CGI' )
>           };
> markh@ubuhost:~$
>
> So, I know the data is at least getting  sent to the template, now it 
> appears I have to look at the template code to see what's wrong.
>
>
> -- 
>
> Mark Haney
> Software Developer/Consultant
> AB Emblem
> markh-rOuQeLG7NUhWk0Htik3J/[email protected]
> Linux marius.homelinux.org 3.5.1-1.fc17.x86_64 GNU/Linux
>
>
>
>
> _______________________________________________
> templates mailing list
> [email protected]
> http://mail.template-toolkit.org/mailman/listinfo/templates

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates