2 Replies Latest reply on Nov 10, 2010 8:31 AM by VRPDeveloper

    unable to retrieve data..

    ravi burila

      the following is my program code

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" >

       

      <!--vertical box contains the textinput and button depending up on the size of array named column1 -->


        <mx:VBox id="horizontal_box">
        <mx:Repeater id="myRep" dataProvider="{column1}" >
         <mx:HBox borderThickness="2">
         <mx:Label text="{myRep.currentItem}" id="processName" width="220"/>         //contains array content as label text
         <mx:TextInput id="startTime" width="100" />
         <mx:TextInput id="endTime" width="100" />
        
         <mx:TextInput id="remarks" width="100" />
         <mx:TextInput id="recordCount" width="100" />
          <mx:Button id="submit"  label="ADD>>" click="addTrans();"/>             //addTrans() is the method called when button click event occured
        </mx:HBox>
          </mx:Repeater>

      </mx:VBox>
         <mx:Script>
      <![CDATA[
          import mx.collections.ArrayCollection;
             import mx.controls.Alert;
                 [Bindable] private var column1:Array=[1,2,3,4,5,6,7,8,9,10];        

               [Bindable] private var max:int;


              [Bindable] private var i:int;
            
              [Bindable]private var array_date:Array = new Array();
               private var u:URLRequest; 
         
               public function addTrans(start:String):void{                       //addTrans method declaration                                                                           
      Alert.show("values entered in text input field by user are"+startTime.text+" "+endTime.text);  

       

       

          //it is the place where iam unable to retrieve data entered by user.  the result displayed is undefined

      }


      ]]>
      </mx:Script>

      </mx:Application>

       

      so please resolve this problem.............

      thank you