It works, you must be sure the page slug (the argument of the method) is correct, it won’t create a link unless it points to a valid page.
I changed
<tbody>
<?php while ( $this->have_records() ) : $this->the_record(); // each record is one row ?>
<tr>
<?php while( $this->have_fields() ) : $this->the_field(); // each field is one cell ?>
<td class="<?php echo $this->field->name ?>-field">
<?php $this->field->print_value() ?>
</td>
<?php endwhile; // each field ?>
</tr>
<?php endwhile; // each record ?>
</tbody>
<?php else : // if there are no records ?>
<tbody>
to
<tbody>
<?php while ( $this->have_records() ) : $this->the_record(); // each record is one row ?>
<?php $record = new PDb_Template($this); ?>
<tr>
<?php while( $this->have_fields() ) : $this->the_field(); // each field is one cell ?>
<td class="<?php echo $this->field->name ?>-field">
<?php
/*
* put the edit link URL into the link property of the field
*/
if ($this->field->name == 'edit_link') {
$this->field->link = $record->get_edit_link();
}
$this->field->print_value();
?>
</td>
<?php endwhile; // each field ?>
</tr>
<?php endwhile; // each record ?>
</tbody>
and returned to work the link…