[TYPO3-dev] Problem when using ###REC_FIELD_<somefield>###

Benno Weinzierl benno_weinzierl at web.de
Wed Jun 11 23:39:57 CEST 2008


Hi Brian,

just Use '' in the sql-statement.
e.g. mytable.myfield = '###REC_FIELD_<someField>###'

this will avoid the error, but will not solve the Problem, that the 
###REC_FIELD_<someField>### is empty on creation of the record.

Benno

"Brian Bendtsen" <bb at bellevuevej.dk> schrieb im Newsbeitrag 
news:mailman.1.1213218328.18203.typo3-dev at lists.netfielders.de...
> Hi
>
> I have a minor but annoying problem when creating a new record in a 
> homemade extension. I have a somewhat complex tca for my record and a 
> couple of fields depend on other fields.
>
> Im using a marker like this
> ###REC_FIELD_<someField>###
>
> in a foreign_table_where
>
> But when I create a new record the <someField> doesnt have a value 
> resulting in an sql error.
>
> I have tried setting a default value but its not fetched. I have tried 
> setting a displayCond which hides the field when the <someField> doesn't 
> have a value, but its still processed and the error is still showing.
>
> How do I work around this problem?
>
> /Brian 






More information about the TYPO3-dev mailing list