Initial values dropdownlist

Hi friends… i need your help…I got a dropdownlist like this:

<div class="row">

	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'tipologiaDiRisorsaId'); ?&gt;


            &lt;?php echo &#036;form-&gt;dropDownList(&#036;model,'tipologiaDiRisorsaId', CHtml::listData(TipologiaDiRisorsa::model()-&gt;findAll(), 'id', 'descrizione')); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'tipologiaDiRisorsaId'); ?&gt;


&lt;/div&gt;

Now what i want to do is that when a user want to update this value he has to be able to watch those values he has selected before (off course I’ve saved them in a database)…which property i have to use?

Please help me

Thank you very much

do you mean that you keep an history of all changes made in the "tipologiaDiRisorsaId" field of a given model record ?

It should work as it is, provided that your model has a property named ‘tipologiaDiRisorsaId’ and it is properly populated with the value saved in the db. The same code should work fine both for creating and updating.

… Or, as luc says, do you have something different in your mind?