I am not sure where i am suppost to post this, but when i went through the book(Silverstripe the complete guide to CMS development) i ran into an error. The return function: public function dataObj() in ComplexTableField.php has a error.
Its part 5.4.1 and 5.4.2 which go into detail about the ComplexTableField. When you are then returning a function with i believe it was:
$fields = parent::getCMSFields();
$jobsTable = new ComplexTableField(
Or it was:
$fields = new FieldList(
new TextField('Title', 'Job Title'),
new TextAreaField('Description', 'Job Description'),
new TextField('Location', 'Location'),
new DateField('ExpiryDate', 'Expiry Date')
Though i have change new FieldSet to new FieldList (to be inline with the documentations).
And i was using silverstripe 3.0.5
Would explain the bug in the code. What are the key differences between gridfield and complextablefield in terms of implementation?
Also in the context of the book that is. Seeing as the docs page about gridfields seems to point at the fact that a gridfield no longer is in the page extend but in the page controller extend?
Hmm , needing to use an oudated version to be inline with the book would be a bad idea. Will just have to read up through the documentation of GridFields. And see if there are examples of the implementation floating around the internet then.