Expand my Community achievements bar.

DataService.updateItem() has a bug

Avatar

Level 1
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?
2 Replies

Avatar

Former Community Member
DataServiceTransaction class has the updateItem method and I
think that's what the documentation refers to.

Avatar

Level 1
As I said in my original post, I know the
DataService.updateItem() is being executed, when the
autocomit=true. So, I have the updateItem() method in the correct
class, but I CANNOT execute the method explicitly, when I set
autocomit=false.