Hello
in the communityedition it was easy to get an custom colum by Callback_Column
$crud->set_table('testcase');
$crud->field_type('testdaten', 'readonly');
$crud->columns('id','name','testdaten','json', 'angelegt');
$crud->callback_column('testdaten', array($this, 'testdaten'));
testdaten is not a column in testcase table the callback is collecting data from an other Table
in Enterprise this way
$crud->setTable('testcase');
$crud->setSubject('Testcase');
$crud->fieldType('testdaten', 'readonly');
$crud->callbackColumn('testdaten',function ($value, $row) {
$html = "<p style='text-align: left;'>";
......
return $html . "</p>";
});
produce a server 500 error
QLSTATE[42S22]: Column not found: 1054 Unknown column 'testcase.testdaten' in 'field list'",
....
"args": [
"SELECT `testcase`.`id` AS `id`, `testcase`.`name` AS `name`, `testcase`.`testdaten` AS `testdaten`, `testcase`.`json` AS `json`, `testcase`.`angelegt` AS `angelegt` FROM `testcase` LIMIT 10 OFFSET 0"
Any Idea to get custom column in enterprise?
best gregards
rené
PS
the old code is 1.x on ci3
the new 2.x enterprise on ci4
