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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


875 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