[TYPO3-dev] itemsProcFunc - selected values are not shown, get REC_FIELD_somefield

Dan Osipov dosipov at phillyburbs.com
Tue May 20 18:54:26 CEST 2008


Something like this:
function getActivePlayers($config)	{
$flexFormContent = t3lib_div::xml2array($config['row']['pi_flexform']);
...
}

Dan Osipov
Calkins Media
http://phillyburbs.com/

Brian Bendtsen wrote:
> Dan Osipov skrev:
>> 1. I've experienced a similar problem. I think its a bug...
>>
>> 2. If you're using flexform, the other column value is passed in the 
>> variable passed to your function.
>>
>>
>> Dan Osipov
>> Calkins Media
>> http://phillyburbs.com/
>>
>> Brian Bendtsen wrote:
>>> Hi
>>>
>>> I have finally found some way to use a select that joins multiple 
>>> tables using the itemsProcFunc but I have a couple of questions
>>>
>>> 1. My selected values are not shown when I edit my record
>>> 2. How do I pass the ###REC_FIELD_someOtherColumn### to my function?
>>>
>>> "someOtherColumn" => ...
>>>
>>> "myColumn" => Array (           "exclude" => 1,           "label" => 
>>> "label",           "config" => Array (
>>>      "type" => "select",
>>>          "items" => Array(''=>0),       "itemsProcFunc" => 
>>> 'tx_wkleague_addFieldsToFlexForm->getActivePlayers',
>>>                 "MM" => "MM_table",                   "size" => 10,   
>>>                 "minitems" => 0,
>>>                 "maxitems" => 50,
>>>             )
>>>         ),
>>>
>>> /Brian
> 1. hmm ok, I also read about a bug, but "items" => Array('',0) is 
> suppose to fix it. Another thing, I get this error when I try to save my 
> record:
> 102: These fields are not properly updated in database: (myColumn) 
> Probably value mismatch with fieldtype.
> 
> 2. Ok, but how do I fetch it?
> 
> /Brian




More information about the TYPO3-dev mailing list