Hi,

How can i add hyperlink to one of the column values present in a table.I have created a Perl/tkx table with two columns( column1 & column2) and populated this table using "set" options as mentioned below but it does not this does not have all code i have developed

sub Populate_ProfilerList { opendir my $dh, $Profiler_Dir or die "$0: opendir: $!"; my @DirArray = grep {-d "$Profiler_Dir/$_" && ! /^\.{1,2}$/} readdir($ +dh); my $TableRowSize = @DirArray; my $TableColSize = 2; my %TableHeader = ( '0,0' => 'Profiler Name', '0,1' => 'Last Modified' +,); my $ProfilerList_Table = $Profiler_LabelFrame->new_table (-cols => $Ta +bleColSize,-rows => $TableRowSize,-cache => 1, -titlerows => 1, -cols +tretchmode => 'all', -takefocus => 1,-autoclear => 0, -font => 'calib +ri', -variable => \%TableHeader,-anchor=>"nw",-borderwidth =>0); ($TableVertical_Scroll = $Profiler_LabelFrame->new_ttk__scrollbar(-com +mand => [$ProfilerList_Table, "yview"],-orient => "vertical"))->g_gri +d(-column=>0,-row=>0,-rowspan=>3,-sticky=>"nse"); $ProfilerList_Table->configure(-yscrollcommand => [$TableVertical_Scro +ll, "set"]); my $TableColNo = 1; foreach my $DirName (@DirArray) { my $RowNum = $TableColNo%2; my $epoch_timestamp = (stat("$Profiler_Dir/$DirName"))[9]; my $timestamp = localtime($epoch_timestamp) ." "; $ProfilerList_Table->set( "$TableColNo,0", $DirName); $ProfilerList_Table->set( "$TableColNo,1", $timestamp); $TableColNo++ ; } $ProfilerList_Table->configure( -state => 'disabled',-height=>7, ); $ProfilerList_Table->g_grid(-column=>0,-row=>0,-ipadx=>120,,-ipady=> +5,-sticky=>"new",-columnspan=>1); }

In reply to Add Hyperlink to a column values in tkx table by Dravidan

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.