[htmltmpl] Is their a maximum amount of data that can be displayed by HTML:: Template?
Brought to you by:
samtregar
From: Tyler H. <Ty...@na...> - 2004-07-13 19:25:14
|
I am using HTML::Template to display software/hardware inventory data being pulled from a database. I have 11 subroutines that pull out data for different categories of data (hardware, os, memory, installed programs, etc) The data is stored in arrays: @rows1 @rows2 ... @rows11 The contents of @rowsX is an array of hashes. The subroutine populates each @rowsX like so: [code] push @rows, { idevice => $idevice, igroup => $igroup, ifield => $ifield, ivalue => $ivalue, }; Once all of my arrays have been populated I then stuff all of it into HTML::Template like this: my @headers = ( {category => 'summary', cat_title => 'Summary', rows1 => \@rows1}, {category => 'cpu', cat_title => 'CPU', rows2 => \@rows2}, {category => 'memory', cat_title => 'Memory', rows3 => \@rows3}, {category => 'os', cat_title => 'Operating System', rows4 => \@rows4}, {category => 'share', cat_title => 'Share', rows5 => \@rows5}, {category => 'lgroup', cat_title => 'Local Groups', rows6 => \@rows6}, {category => 'network', cat_title => 'Windows Network', rows7 => \@rows7}, {category => 'data', cat_title => 'ODBC Data Sources', rows8 => \@rows8}, {category => 'programs', cat_title => 'Installed Programs', rows9 => \@rows9}, {category => 'license', cat_title => 'Licenses', rows10 => \@rows10}, {category => 'environment', cat_title => 'Environment', rows11 => \@rows11} ); $tmpl_cmp_nfo->param( headers => \@headers); This all works beautifully on the majority of my inventories, but I have found a few that will not display. I have built all of the appropriate error checking into my app, but none of those errors display when I come across one of these anomolous inventories. The only thing that shows up in my browser is "page cannot be displayed". I have found that the amount of information contained in an inventory that does not work is substantially larger than the information in one that does work. If I comment out some of the data being retrieved in an anomolous inventory, then it will display as well. Like this: my @headers = ( {category => 'summary', cat_title => 'Summary', rows1 => \@rows1}, {category => 'cpu', cat_title => 'CPU', rows2 => \@rows2}, {category => 'memory', cat_title => 'Memory', rows3 => \@rows3}, #{category => 'os', cat_title => 'Operating System', rows4 => \@rows4}, #{category => 'share', cat_title => 'Share', rows5 => \@rows5}, {category => 'lgroup', cat_title => 'Local Groups', rows6 => \@rows6}, {category => 'network', cat_title => 'Windows Network', rows7 => \@rows7}, {category => 'data', cat_title => 'ODBC Data Sources', rows8 => \@rows8}, {category => 'programs', cat_title => 'Installed Programs', rows9 => \@rows9}, {category => 'license', cat_title => 'Licenses', rows10 => \@rows10}, {category => 'environment', cat_title => 'Environment', rows11 => \@rows11} ); $tmpl_cmp_nfo->param( headers => \@headers); It doesn't matter which of the @rowsX I leave out of the display, I just have to leave some of them out and then it all works. This makes me wonder if there is a limitation to the amount of data that can be displayed by HTML::Template. Any ideas? Thanks, Tyler Hepworth |