withersdavis wrote:One thing that may hang some people up.
In your $tableColumns variable for the ID column you need to make sure the primary column (e.g. ID) is editable. If it is not the trash can does not appear.
Should be something like this.
- Code: Select all
$tableColumns['id'] = array('display_text' => 'ID', 'perms' => 'ETVQSXO');
Hello,
your suggestion was very precious.
I lost two hours in the attempt to let the delete icon appear.
Perhaps the ID column should be editable so that the script can get it. However I do not want to show the ID and make it editable as the user can change it and duplicate it or collide with an existing record.
In this case the solution is add a hidden attribute to edit
- Code: Select all
$tableColumns['id'] = array('display_text' => 'ID', 'perms' => 'E', 'hidden_edit' => true);
Luigi