How To Retrieve A Value From Cautocomplete Textfield In Portlet And Access It In Controller

How to retrieve a value from Cautocomplete textfield in portlet and access it in controller,

I have a Portlet , and there i have used CAutocomplete widget to retieve the supplier list, now when the user selects a specific supplier from widget, then the id is retrieved in a texfield , my query is how to pass or access this id in controller or set this id in session

Below is my Cautocomplete code

<?php $form=$this->beginWidget(‘CActiveForm’, array(

    'action'=&gt;Yii::app()-&gt;createUrl('/purchaseorder/create'),


    'method'=&gt;'post',

));

?>

<?php echo ‘Select Supplier’;

$this->widget(‘CAutoComplete’,

      array(


                     //name of the html field that will be generated


         'name'=&gt;'sup_name', 


                     //replace controller/action with real ids


         'url'=&gt;array('shoppingCart/AutoCompleteLookupsup'), 


         'max'=&gt;10, //specifies the max number of items to display





                     //specifies the number of chars that must be entered 


                     //before autocomplete initiates a lookup


         'minChars'=&gt;1, 


         'delay'=&gt;100, //number of milliseconds before lookup occurs


         'matchCase'=&gt;false, //match case when performing a lookup?





                     //any additional html attributes that go inside of 


                     //the input field can be defined here


         'htmlOptions'=&gt;array('size'=&gt;'20','select' =&gt; 'js:function(event, item){ &#036;(this).parents(&quot;form&quot;).submit(); }','tabindex'=&gt;'1'), 





        'methodChain'=&gt;&quot;.result(function(event,item){&#092;&#036;(&#092;&quot;#sup_id&#092;&quot;).val(item[1]);})&quot;,


        


     


         ));


          echo CHtml::textField('sup_id');

?>

<?php $this->endWidget();