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.

Archive

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

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

Saving form with HasMantComplexTablefield


Reply

598 Views

Avatar
haswalt

16 October 2008 at 9:27pm Community Member, 16 Posts

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:
[url]http://clients.ccut-designs.co.uk/silverstripe/TemplatesAdmin.txt[/url]
The module tree class:
[url]http://clients.ccut-designs.co.uk/silverstripe/Templates.txt[/url]
The class at the end of the has many:
[url]http://clients.ccut-designs.co.uk/silverstripe/PlaceHolder.txt[/url]

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

Harry