2 Replies Latest reply on Sep 17, 2007 9:40 AM by rdennisj

    DataService.updateItem() has a bug

    rdennisj
      I declared a DataService component in MXML:
      <mx:DataService id="ds" destination="itemService"/>
      If I leave autoCommit set to true, FDS automatically executes the updateItem() method in my Assembler class. I know this because I inserted some System.out.println calls inside to verify.
      But if I set autoCommit to false and try to explicitly call the updateItem(), I get a compile-time error:
      -1061 - Call to a possibly undefined method updateItem.

      Documentation states that the updateItem can be called explicitly, but the javadoc does not define the updateItem method for DataService.

      So, which is it? Can we explicitly call updateItem() or not?