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:

Archive /

Our old forums are still available as a read-only archive.

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

Saving form with HasMantComplexTablefield


Go to End


775 Views

Avatar
haswalt

Community Member, 16 Posts

16 October 2008 at 9:27pm

Hi All,

I've been asking on IRC and not got much help:

basically i have created a new module and within that linked the tree_class to another class PlaceHolder as has_many.

How i have a form that the module admin class displays and in that there is the ComplexTableField. This all works fine.

I can create items in the CTF fine and save them, but when i try to save the whooe item i get the followin error:

Object::__call() Method 'getEditForm' not found in class 'Templates'

I suspect i have set something up wrong when creating my form:

here is the module admin class:
http://clients.ccut-designs.co.uk/silverstripe/TemplatesAdmin.txt
The module tree class:
http://clients.ccut-designs.co.uk/silverstripe/Templates.txt
The class at the end of the has many:
http://clients.ccut-designs.co.uk/silverstripe/PlaceHolder.txt

any help would be much appreciated as i'm really stumped on this.

Harry