3 Replies Latest reply on Jun 29, 2010 12:08 AM by BhaskerChari

    How to set default textInput value for integer empty?

    ltambs

      <fx:Declarations>
        <vo:Thistorypurchase id="thistorypurchase"/>
      </fx:Declarations>

      private var _internal_ascty : int;
      private var _internal_bitrate : int;
      private var _internal_candidateServiceId : int;
      private var _internal_dscty : int;


      How to default textInput value set empty?

      in the above case the value of thistorypurchase is set 0 for integer value.

      I want to set them empty.

      Instead script for creationComplete set to empty, any other ways there?

      Thanks.

        • 1. Re: How to set default textInput value for integer empty?
          BhaskerChari Level 4

          Hi Itambs,

           

          Your question is not clear to me...Could you be a bit clear...??? Please elaborate on this..??

           

          Thanks,

          Bhasker Chari

          • 2. Re: How to set default textInput value for integer empty?
            ltambs Level 1

            myApp.mxml===========
              <fx:Declarations>
               <vo:Thistorypurchase id="thistorypurchase"/>
            </fx:Declarations>
            <mx:Form defaultButton="{btnSave}" width="100%">
              <mx:VBox width="100%">
               <mx:HBox width="100%" horizontalAlign="right">
                <s:Button label="Save" id="btnSave" click="button_clickHandler(event)"/>
                <s:Button label="Close" id="btnClose" click="btnClose_clickHandler(event)"/>
               </mx:HBox>
               <mx:VBox>
                <mx:FormItem label="             SssId">
                 <s:TextInput id="sssIdTextInput" text="{thistorypurchase.sssId}"/>
                </mx:FormItem>
            ================================

            Thistorypurchase.as ============
            private var _internal_sssId : int;
            private var _internal_bitrate : int;
            ================================

            when I alert the value of all integer type in myApp.mxml that shows "0".

            Am I clear?

            • 3. Re: How to set default textInput value for integer empty?
              BhaskerChari Level 4

              Hi Itambs,

               

              I am sorry I am not clear this time also ...Please you can be a bit elaborate on this with clear explanation of your exact problem...

               

              I dint get by your problem......set default textInput value for integer empty?

               

               

              Thanks,

              Bhasker

              1 person found this helpful