Dravidan has asked for the wisdom of the Perl Monks concerning the following question:

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); }

Replies are listed 'Best First'.
Re: Add Hyperlink to a column values in tkx table
by Old_Gray_Bear (Bishop) on Nov 25, 2013 at 18:26 UTC

      I tried this approach earlier as mentioned in the link but i am getting an error which says that tagAdd is not a correct options,may be it works for textbox but not for table :)

Re: Add Hyperlink to a column values in tkx table (bind)
by Anonymous Monk on Nov 25, 2013 at 22:59 UTC