[TYPO3-project-formidable] How to get the UID of the record updated ?

Jerome Schneider typo3dev at ameos.com
Wed Mar 18 09:53:54 CET 2009


Hi Izzie,

I used this code and it gave me the uid as expected:
http://formidable.typo3.ug/pastebin/snippet/102.html

Could you confirm this ?

Best regards,
Jerome Schneider


Izzie Greys a écrit :
>  <TYPO3-project-formidable at lists.netfielders.de>Hi there,
> 
> I have problems finding how to get the uid of the data I want to update.
> For example, if I need to get the label of the record I do that :
> <beforeInsertion>
>   <userobj>
>     <php><![CDATA[/*<?*/
>       $aData = $this->getUserObjParams();
>       if($this->oDataHandler->_edition()) {
>         echo $aData["label"];
>       }
>       return $aData;
>      /*?>*/]]></php>
>   </userobj>
> </beforeInsertion>
> 
> But I can't have the uid, $aData["uid"] is not working. I also tried in
> afterinsertion and afteredition and I still have problems. Where is stored
> the uid and how can I get it ?
> 
> Thanks in advance for your help :-)
> 
> See you.


More information about the TYPO3-project-formidable mailing list