Jump to:

23490 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » TableListField - results not displaying

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

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

Page: 1
Go to End
Author Topic: 747 Views
  • Harley
    Community Member
    153 Posts

    TableListField - results not displaying Link to this post


    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?


  • Harley
    Community Member
    153 Posts

    Re: TableListField - results not displaying Link to this post

    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.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.