[TYPO3-dev] Update database when saving plugin flexform configuration in BE?
Gerhard Mehsel
sparking at gmx.net
Wed Sep 9 13:13:40 CEST 2009
Hello,
I have a plugin which is configurable through flexform. I configure some
values and press the save-button. In this moment I need to update a
special table in the TYPO3 database. This is because an external
webservice must read the configured values from the flexform.
While it is an external webservice which has no relation to TYPO3 I
don't have the chance to access flexform values with
$this->pi_initPIflexForm();
$this->pi_getFFvalue($this->cObj->data['pi_flexform'], "val", "sheet");
I tried to achieve this with a <itemsProcFunc> class which updates the
database but the problem is, that the <itemsProcFunc> is called before
or while rendering the flexform and not afterwards.
itemsProcFunc -> render flexform -> configure value -> SAVE button ->
itemsProcFunc -> render flexform
Database updated because of the second call to itemsProcFunc after
saving the plugin. Ok.
But this way:
itemsProcFunc -> render flexform -> configure value -> SAVE-AND-CLOSE button
Database NOT updated because there is no second call to itemsProcFunc.
How can I do this?
Regards,
Gerd
More information about the TYPO3-dev
mailing list