Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

TableListField - results not displaying

Go to End

2 Posts   1089 Views


Community Member, 165 Posts

1 June 2011 at 10:27pm

Edited: 01/06/2011 10:28pm


I've been playing with the TableListField for the last week and followed the recipe here:

The form works great apart from in the admin where I display the results. The table of data is there with pagination and export, print, delete etc only the table of data has blank rows. The data is captured ok in the database and exports fine, just won't display in the admin.

Here is my code:

function getReportField(){
    $myTableListField = new TableListField(
      array('DateCreated', 'FirstName', 'LastName', 'Phone', 'Email')
    // custom DataObjectSet
    $myEmailFormData = DataObject::get('EmailFormData');
    // csv export
    $myTableListField->setPermissions(array('export', 'print', 'delete'));
        'FirstName' => 'First name', 
        'LastName' => 'Last name', 
        'Phone' => 'Phone', 
        'Email' => 'Email'
        'FirstName' => 'Text', 
        'LastName' => 'Text', 
        'Phone' => 'Text', 
        'Email' => 'Text'
    if(isset($_REQUEST['printable'])) {
    } else {
    return $myTableListField;

Anyone else had this problem?



Community Member, 165 Posts

3 June 2011 at 11:23am

Still having trouble with this, but now I've uploaded to a live server to test it turns out that once I've submited the form once my 'admin' no longer works and I'm getting a server error message.