Hi All, I am using DBIx_XHTML_Table for displaying Data in Tabular format. Its working fine. But i have one problem. When I am trying to insert link to a column is not working. Same thing works for all colunms. I am using map_cell function to create links.
$table->exec_query("$sql"); $table->modify(table => { width => '100%', cellspacing=> '2', cellpadding=>'5', 'border-style' => 'inset', 'border-width' => 'thin', }); $table->modify(th => { style => { color => '#FFFAF0', background => '#4682B4', 'text-align' => 'center', 'text-transform'=> 'uppercase', } },'head'); $table->modify(tr => { style => { background => ['#B0C4DE','#F0F8FF'], } }); $table->modify(td => { style => { 'text-align' => 'left', 'white-space' => 'nowrap', } }); $table->modify(td => { style => { 'text-align' => 'center', 'white-space' => 'nowrap', } },['Projects','Tasks','EstimatedDays','SpentDays']); $table->modify(th => { style => 'background: #FFF0F5' },'foot'); #$table->map_cell(sub { # my $datum = shift; # return qq|<a href="http://sctesrv.india/cgi/project/viewprojectdet +ail.cgi?projectid=P-$datum">"$datum"</a>|; #}); $table->map_cell( sub{ my $datum = shift; return qq|<a href="http://sctesrv.india/cgi/project/viewpro +jectdetail.cgi?projectid=P-$datum">"$datum"</a>|; }, ['Projects']); if (param('radio-report') eq 'Summary'){ $table->calc_totals(['Projects','Tasks','EstimatedDays','SpentDays']); }else{ $table->calc_totals(['Tasks','EstimatedDays','SpentDays']); }
Thanks in Advance.

In reply to DBIx_XHTML_Table usage - Urgent Please by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.