Jump to:

23550 Posts in 19336 Topics by 2890 members

General Questions

SilverStripe Forums » General Questions » Error While Export using ComplexTableField

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: 936 Views
  • Dipak
    Community Member
    8 Posts

    Error While Export using ComplexTableField Link to this post

    Dear All,

    Please help me out, I have ComplexTableField on the fron page and i would like to export all the data from the ComplexTable to csv files, i am able to show data in the ComplexTableField but facing the problem while export, Its redirect me on the home page.
    I am working on SilverStripe CMS - 2.3.0-rc1

    please find the code below

    function ComplexFields() {
          $tableField = new ComplexTableField(
          'ID' => 'ContactDetails.ID',
          'Reason'=> 'Reason',
          'PhoneNumber' => 'PhoneNumber',
          if(isset($_REQUEST['printable'])) {
          } else {
          return $tableField;

    function GetTable()
          $tableField = $this->ComplexFields();
          $fields = new FieldSet(
          $actions = new FormAction("", "");

          return new Form($this, "ExportForm",$fields,$actions,$validator = null);

    When I try to delete it gives an error "I can't handle sub-URLs of a MarketingAdmin_Controller object."

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.