2 Replies Latest reply on Jan 17, 2012 11:06 PM by scaleheights89

    editable property for mx:Object

    scaleheights89

      <mx:Object  dataField = "name" primaryKey = "true" editable = "true" updatable = "false" needToBlank = "true"/>

       

      In this, Can someone explain what is the use of properties editable , updatable and needToBlank?

       

      What happerns when each one is set to "false"?    

        • 1. Re: editable property for mx:Object
          Flex harUI Adobe Employee

          Can’t tell without more context.  That is the same in ActionScript as:

           

          Var foo:Object =

          • 2. Re: editable property for mx:Object
            scaleheights89 Level 1

            i have the code

             

            <mx:ArrayCollection/>

            <mx:Object  dataField = "name" primaryKey = "true" editable = "true" updatable = "false" needToBlank = "true"/>

            </mx:ArrayCollection/>

             

            In a separate .as file, i have the following method:

            ...

            ..

             

            public function upd1(a:ArrayCollection) : void{

            var b :ArrayColection;

            for(i=0:int;i<a.length;i++) {

            var sample:Object = a.getItemAt(i) as Object;

            var dataField : String = sample.dataField;

             

            if (sample.hasOwnProperty("updatable"))

            {

            b.addItem(dataField);

            }

            }

            ..

            ..

            i dont see the upd1 method acting on the field "name".