[TYPO3-project-formidable] How to get the UID of the record updated ?
Izzie Greys
izzie.greys at gmail.com
Wed Mar 18 12:04:58 CET 2009
Hey Jerome,
Thanks a lot for your help :) I tried your code but it's not working. I have
this error : *"Fatal error*: Call to undefined method
tx_ameosformidable::getParams()". I don't know why it's wrong for me.
I have found another solution few minutes ago, but I don't know if it's the
best way:
<actionlets>
<actionlet:USEROBJ>
<userobj>
<php><![CDATA[/*<?php*/
$aData = $this->oDataHandler->getStoredData();
//stuff to do with $aData["uid"];
/*?>*/]]></php>
</userobj>
</actionlet:USEROBJ>
</actionlets>
Izzie
2009/3/18 Jerome Schneider <typo3dev at ameos.com>
> 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.
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.netfielders.de
>
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
>
More information about the TYPO3-project-formidable
mailing list