On Nov 28, 2014, at 11:09 AM, Karel-Jan Van Haute <kare...@gmail.com> wrote:I'm making an application with cblite in IOS using Swift. In my app you can select an item from a list (CBLTable) and than you can select a second item from the same list. But you must not be able to select the first item for a second time. So the second time I want to exclude the first item from the list.
On Dec 1, 2014, at 11:59 PM, CouchbaseLover <sharess...@gmail.com> wrote:It's as easy as making a MapReduce that has !"document.selected = true" for example." if (![doc[VanHautesDocument] isEqualToString:selected]) "
Don't do that. You really don't want to alter the document every time the user selects it in a list. That will generate a lot of unnecessary indexing and replication — consider how many times documents will get sent over the network if you have X number of users selecting documents every Y seconds…—Jens
On Dec 3, 2014, at 2:06 AM, CouchbaseLover <sharess...@gmail.com> wrote:First off sorry for the typo, it should be "== true". I don't understand what you are saying Jens, you have a pretty similar example in ToDoLite. If you select a task, you create a new revision with "the task is done" and you get a checkmark on the task UI wise.