17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1166 Views |
-
ComplexTableField in Popup

13 November 2008 at 9:38pm Last edited: 13 November 2008 9:39pm
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",
$masterdataTab,
$storeTab
);
$fields->push( $tabset );
[ ... ]
$storeField = new ComplexTableField(
$this,
'Filialen',
'CompanyStore',
array(
'ID' => 'ID',
'Street' => 'Straße',
'Zipcode' => 'PLZ',
'City' => 'Stadt'
),
'getCMSFields_forPopup'
);$storeTab->push( $storeField );
return $fields;
}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?
| 1166 Views | ||
|
Page:
1
|
Go to Top |

