[TYPO3-project-formidable] Lisbox in edition mode : how to make selected
    Luc Muller 
    l.mul-nospam-ler at ameos.com
       
    Fri Jul 11 16:10:26 CEST 2008
    
    
  
Well. I've tested on my server.
here how it works
with this XML
		 <renderlet:LISTBOX name="testlist" multiple="false">
				<activelistable>true</activelistable>
				<data>
					<items>
						<item caption="H" value="h"/>
						<item caption="I" value="i"/>
						<item caption="J" value="j"/>
						<item caption="K" value="k"/>
					</items>
					<defaultvalue>k</defaultvalue>
				</data>
			 </renderlet:LISTBOX>
		<renderlet:SUBMIT name="submit" value="submit" label="submit" />
datahandler DB renderer Standard
first hit of the page : creation
Item K is selected
then switch to i.e. : I
then submit
// insertion in the database // refreshing of the page
second hit on the page, edition mode "I" is selected.
That's just the way it should work and it work.
I'm with formidable v 1.0.233
and it does not have any problems.
In edition mode, the K will be selected only if it's the value that is submitted.
That's just the way it should work. do you have any problems achieving this or do I still don't get your purpose ?
because locically there are no bugs with this function.
anosuke303 a écrit :
>>> then in edition mode, the one selected IS the on that
>>>       
>> is
>>     
>>> stored.
>>>       
>
> The problem was here... the one selected is the first item,
> not the stored item in the db... I don't want to
> selected another item.
>
> I test this simple example :
>  <renderlet:LISTBOX name="myList"
>  multiple="false">
>  <activelistable>true</activelistable>
>  	<data>
>  		<items>
>  			<item caption="H" value="h"/>
>  			<item caption="I" value="i"/>
>  			<item caption="J" value="j"/>
>  			<item caption="K" value="k"/>
>  		</items>
>   		<defaultvalue>
>  			<userobj>
>  				<php><![CDATA[/*<?php*/
>  			
>  					return "k";
>  			
>  				/*?>*/]]></php>
>  			</userobj>
>  		</defaultvalue>
>   	</data>
>  </renderlet:LISTBOX>
>
> The "K" item must me selected. This work perfectly in normal mode, but not in edition mode.
>
> I hope that the problem is better explain.
>
> Thank you for your help
>  
> 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>/
    
    
More information about the TYPO3-project-formidable
mailing list