I am working on an AIR application which requires me to save data offline and sync them when the user gets online. I came across PharmaSales example in book, Enterprise development with Flex. But when I downloaded the clear4.swc I was not able to locate the OfflineDataCollection class. If anyone can please guide me with an example on how to achieve this using the cleartoolkit, that would be helpful.
Shishir, OfflineDataCollection is an extension of the DataCollection. OfflineDataCollection has not been ported from Flex 3 to Flex 4. The Flex 3 version of OfflineDataCollection is located in CVS - http://cleartoolkit.cvs.sourceforge.net/viewvc/cleartoolkit/com.farata.components/src/com/farata/collections/OfflineDataCollection.as?view=log. The Flex 4 version of the clear4.swc is in SVN: http://cleartoolkit.svn.sourceforge.net/viewvc/cleartoolkit/trunk/clear4/src/clear/collections/DataCollection.as?view=log
Thanks Victor for the quick reply and the links, that was exactly what I was looking for.
I have a few quick questions:
1. Are there any plans for porting offline synchronization support for Flex 4?
2. Can i use OfflineDataCollection, flex 3 version for storing relational data (data having one-to-many, many-to-one, one-to-one or many-to-many relationships) offline?
1. No immediate plans for porting it. That said OfflineDC is not that big at all - most likely you will be comfortable to port it yourself "as is", see #2.
2. This is the "bulls eye" issue: ODC F3 did not know about hierarchical collections and that is why we decided against "mechanical" port in particular. We may get back to it later though as we see consulting requirements.
Thanks Victor, that was helpful. I was able to port offline DC for non-relational data but the only thing I was not able to get through was with saving the relational data offline.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.