21310 Posts in 5739 Topics by 2604 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 745 Views |
-
ComplexTableField on the frontend

14 December 2010 at 10:55pm
I'm trying to get a ComplexTableField to work on the frontend using the example code here but it's not working for me. I've only managed to get "(none)" to display. Does anyone have a full working example?
I have a User DataObject that has Tasks. I would like the User to be able to manage their Tasks on the front end.
-
Re: ComplexTableField on the frontend

16 December 2010 at 2:42am Last edited: 16 December 2010 2:43am
I managed to get the table with data to display using the code below but the add/edit and delete functions take me to "Page Not Found". Are there some functions or templates that I need to overwrite to get it to work? Is it tied into the Members system or something?
function getTasks() {
$tableField = new ComplexTableField(
$this,
'Tasks',
'Task',
array(
'Title' => 'Title'
),
'getPopupFields'
);$tableField->setParentClass(false);
$fields = new FieldSet(
new HiddenField('ID', ''),
$tableField
);$actions = new FieldSet(
new FormAction('Go', 'Go')
);return new Form($this, 'EditForm', $fields, $actions);
}
| 745 Views | ||
|
Page:
1
|
Go to Top |

