[TYPO3-formidable] form not submitting ???

Andres Toomsalu andres at active.ee
Thu Sep 16 08:11:50 CEST 2010


I have multiple plugin interfaces in this FE plugin - when executing 
this xml in pi1 it works, but not in pi2. Can't find the difference what 
causes form not to submit. Only difference I know is that in kickstarter 
pi2 was USER and I later change it to USER_INT manually in pi2 class 
main function.

----------------------------------------------
Andres Toomsalu, andres at active.ee




Andres Toomsalu wrote:
> Im failing to understand why this simple code suddenly does not work anymore - form data wont be submitted and datahandler does not run - what is wrong here? 
> If Im changing some textfield name to something else which not in database Ill get post with error - but in normal case no INSERT - what Im missing here?
>
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <formidable version="1.1.0"
>         xmlns:datahandler="http://www.ameos.com/formidable/1.1.0/datahandler"
>         xmlns:datasource="http://www.ameos.com/formidable/1.1.0/datasource"
>         xmlns:renderer="http://www.ameos.com/formidable/1.1.0/renderer"
>         xmlns:renderlet="http://www.ameos.com/formidable/1.1.0/renderlet"
>         xmlns:validator="http://www.ameos.com/formidable/1.1.0/validator"
>         xmlns:actionlet="http://www.ameos.com/formidable/1.1.0/actionlet">
>         
>         <meta>
>                 <name>Standard XML file</name>
>                 <form formid="healthlog_entry"/>
>                 <debug>false</debug>
>                 <displaylabels>true</displaylabels>
>                 <defaultLLL>EXT:b_sports_and_health/pi2/locallang.xml</defaultLLL>
>         </meta>
>         
>         <control>
>                 <datahandler:DB>
>                         <tablename>tx_bsportsandhealth_healthlog</tablename>
>                         <keyname>uid</keyname>
>                         <process>
>                                 <beforeInsertion>
>                                         <userobj>
>                                                 <php><![CDATA[/*<?*/
>  
>                                                         $aData = $this->getUserObjParams();
>                                                         debug($aData, 'aData: ');
>                                                         // Inserting sysfields in array going to DB
>                                                         if($this->oDataHandler->_creation()) {
>                                                                 $aData["crdate"] = time();
>                                                                 $aData["pid"] = $this->oParent->getPid();
>                                                                 $aData["cruser_id"] = $GLOBALS["TSFE"]->fe_user->user["uid"];
>                                                                 $aData["user"] = $aData["cruser_id"];
>                                                         }
>                                                         $aData["tstamp"] = time();
>                                                         debug($aData, 'aData: ');
>                                                         
>                                                         return $aData;
>  
>                                                 /*?>*/]]></php>
>                                         </userobj>
>                                 </beforeInsertion>
>                         </process>
>                 </datahandler:DB>
>                 <renderer:STANDARD/>
>         </control>
> <elements>
>                 <!-- BOX CONTAINER FOR INPUT FORM -->
>                 <renderlet:BOX name="healthformbox">
>                     <childs>
>                         <!-- HEALTH ENTRY DATE FIELD -->                                        
>                         <renderlet:DATE name="date" label="LLL:date">
>                             <data>
>                                 <defaultValue>
>                                     <userobj>
>                                         <php>
>                                             <![CDATA[
>                                     
>                                             $today = date('d.m.Y');
>                                             return $today;
>                                     
>                                             ]]>
>                                         </php>
>                                     </userobj>
>                                 </defaultValue>
>                                 <datetime format="%d.%m.%Y" allowManualEdition="true"/>
>                             </data>
>                         </renderlet:DATE>
>                         
>                         <renderlet:TEXT name="pulse" label="LLL:pulse"/>
>                          
>                         <renderlet:TEXT name="pressuretop" label="LLL:pressuretop"/>
>                                 
>                         <renderlet:TEXT name="pressurebottom" label="LLL:pressurebottom"/>
>                         
>                         <renderlet:SUBMIT name="btn-submit" label="LLL:submit_button_label"/>
>                     </childs>
>                 </renderlet:BOX>
>                 
>         </elements>
>         
> </formidable>
>
>
>   


More information about the TYPO3-project-formidable mailing list