I am using free version of Mate more than 4 years, now i decided to upgrade to newest paid version. There is lot of changes I must implement to my project.
I have problem with add_fun callback. Input that belongs to $tableColumns['ID'] is still empty, but it should contain '123456789'. When I change add_fun to edit_fun it works (on edit page input contain '123456789').
$tableColumns['ID'] = array(
'display_text' => 'ID',
'perms' => 'EVCTAXQSHO', 'add_fun' => array(&$this,'generateid')
);
function generateid($col,$val,$row,$instanceName)
{
//$query = "SELECT ID FROM untable ORDER BY ID DESC LIMIT 1;";
//$result = $this->Editor->doQuery($query);
//$row = $result->fetch(PDO::FETCH_ASSOC);
//$val = $row['ID']+1;
$val = '123456789';
return $val;
}
Second problem with passing $_GET variable:
https://mysqlajaxtableeditor.com/discussmate/viewtopic.php?p=5389&sid=10d615dbe318096de4f9a8b353039244&sid=10d615dbe318096de4f9a8b353039244#p5389
Please give me any advice
Thank you