geelen
05-10-2004, 02:48 PM
Hey I've got a question about using the DataSet component: I'm trying to update data in a DataSet by
myDataSet.CurrentItem.someAttribute = someNewValue;
which works fine, except that no DeltaPacket is created and so these changes aren't shipped off to my RDBMSResolver to update my database. I have a DataGrid that's bound to the DataSet, and the changes are reflected there. In the Flash Help it says under DataSet.CurrentItem:
This property provides direct access to the item within the collection. Changes made by directly accessing this object are not tracked (in the DataSet.deltaPacket property), nor are any of the schema settings applied to any properties of this object.
Anyone know of any way to circumvent this? I.e. is there some way tell a DataSet to look for changes in its data? Or could I do effectively the same thing with another component, bind it to a DataSet and the DataSet will notice changes in the other component? Or is there a way to manually create a DeltaPacket and send it to a RDBMSResolver? Any suggestions/answers would be greatly appreciated.
Thanks,
Geelen.
myDataSet.CurrentItem.someAttribute = someNewValue;
which works fine, except that no DeltaPacket is created and so these changes aren't shipped off to my RDBMSResolver to update my database. I have a DataGrid that's bound to the DataSet, and the changes are reflected there. In the Flash Help it says under DataSet.CurrentItem:
This property provides direct access to the item within the collection. Changes made by directly accessing this object are not tracked (in the DataSet.deltaPacket property), nor are any of the schema settings applied to any properties of this object.
Anyone know of any way to circumvent this? I.e. is there some way tell a DataSet to look for changes in its data? Or could I do effectively the same thing with another component, bind it to a DataSet and the DataSet will notice changes in the other component? Or is there a way to manually create a DeltaPacket and send it to a RDBMSResolver? Any suggestions/answers would be greatly appreciated.
Thanks,
Geelen.