Hi CS,
Thanks for the feedback - The secret here is "idField".
The docs for sharedCollection state (
http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/sharedModel/SharedCollection.html):
"The collection does not share sort order - any sorting
desired should be performed on each respective client. As such,
addItemAt isn't supported, although addItem is. The collection
makes update decisions on items based on a unique id - items added
to the collection should either implement the IUID interface, or
provide a field which is guaranteed to be unique for this
collection. The SharedCollection exposes an idField property to
specify which field to use as unique id, in the case the items do
not implement IUID."
So, I can see you're using "uniqueID" in each item, but
unfortunately the collection doesn't know you've supplied it as a
unique field. Just tell the collection
theCollection.idField = "uniqueID";
In onCreationComplete(), and the example starts to work.
We're going to make some code changes to throw an error in
the case you're not either implementing IUID or specifying an
idField, to give more guidance as to what you need to do. This
should be in for the next drop - sorry for the frustration, but at
least you're helping those who come after you =).
hope this helps
nigel