I want to place a ComplexTableField into a tab in a popup. There is a ComplexTableField in the CMS with a list of companies. In the editing popup there is another ComplexTableField with all stores of the selected company. (Perhaps there is a better solution for this?)
* Generate fieldset for administration popup.
function getCMSFields_forPopup ()
$fields = new FieldSet();
$masterdataTab = new Tab('Stammdaten');
$storeTab = new Tab('Filialen');
$tabset = new TabSet("Root",
$fields->push( $tabset );
[ ... ]
$storeField = new ComplexTableField(
'ID' => 'ID',
'Street' => 'StraÃƒÅ¸e',
'Zipcode' => 'PLZ',
'City' => 'Stadt'
$storeTab->push( $storeField );
Unfortunately there happens "an error".
There has been an error (I love those error messages^^)
If I place the same ComplexTableField in a tab directly in the cms and not in the popup, it works fine.
Can anybody suggest, where the failure is? Is it not possible to add an ComplexTableField into a popup?