[TYPO3-project-formidable] Lisbox in edition mode : how to make selected
Luc Muller
l.mul-nospam-ler at ameos.com
Fri Jul 11 09:11:20 CEST 2008
On more detail about the screenshot, the point is that in this form we
did not had a blank value, so the first item is M, this can be a little
confusing. :-$
Luc
Luc Muller a écrit :
>
> I think that the problems comes from the point that usergroup can be
> multiple.
>
> If I remember well, (but haven't tested right now), if you're in
> edition mode, the correct value should be selected if you do not have
> default value. i've said SHOULD.
>
> but the fact is that the value of the usergroup field can be a string
> such as "4,5,6" and this wont match any of the values.
>
> I should make some test to verify what I'm saying. did you had a try
> with multiple = true ?
>
> If I got time I'll make some testing about that and come back with a
> more efficient answer but the point is that we all got a lot of work
> at the moment.
>
> Hope this will help.
>
> Luc
>
> Sanosuke303 a écrit :
>> Hi list,
>>
>> My problem isn't solved and I don't find a way to make this ok.
>>
>> So, I try to explain my problem.
>>
>> In my extension, I call a formidable XML form with the uid in param to have and edition form :
>> $this->oForm->init(
>> $this,
>> "EXT:contrat_mission/pi3/xml/edit_mission.xml",
>> $uid
>> );
>>
>> So, my form edit_mission work and simple field like renderlet:TEXT contain the good data (example : name of fe_user).
>>
>> But if I want to show, for example, the fe_group of the user, it's work in a renderlet:TEXT, but not in a listbox.
>>
>> I try an example from Loredana :
>>
>> <renderlet:LISTBOX name="myList" multiple="false">
>> <activelistable>true</activelistable>
>> <data>
>> <items>
>> <item caption="I" value="i" />
>> <item caption="J" value="j" />
>> <item caption="K" value="k" />
>> <item caption="L" value="l" />
>> </items>
>> <defaultvalue>
>> <userobj>
>> <php><![CDATA[/*<?php*/
>>
>> return "k";
>>
>> /*?>*/]]></php>
>> </userobj>
>> </defaultvalue>
>> </data>
>> </renderlet:LISTBOX>
>>
>> This don't work if the form is called with uid param, so in edition mode. The "k" data isn't selected....
>>
>> How to make an item in a listbox selected if we are in edition mode?
>>
>> No body have an idea to solve my problem.
>>
>> I'm sorry but my english is not good enougth, so I hope that you can undestand my problem.
>>
>> Regards.
>>
>>
>> _____________________________________________________________________________
>> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
>>
>
>
> --
>
> *Luc Muller*
> /Web Developper/
> /Formidable - Rapid Application Developpement Framework for Typo3
> <http://formidable.typo3.ug>/
> /Typo3 Ameos <http://www.ameos.com>/
>
--
*Luc Muller*
/Web Developper/
/Formidable - Rapid Application Developpement Framework for Typo3
<http://formidable.typo3.ug>/
/Typo3 Ameos <http://www.ameos.com>/
More information about the TYPO3-project-formidable
mailing list