Skip to content

Commit 716571e

Browse files
authored
Documentation for Add Doc functionality
1 parent 072da48 commit 716571e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,19 @@ You may also open a document and edit it in the doc editor and sync it back to t
4545
![Data Editor](https://github.com/amrishraje/amrishraje.github.io/blob/master/CBLiteTester_files/image006.png)
4646

4747
Any changes to the document, will be locally saved to the CBLite Database. To sync the changes back to the server, make sure you select the replication mode as Push or ‘Pull and Push’. Click sync.
48+
> Note: Sync Gateway function should allow user to Push documents to server.
4849
4950
Continuous Sync Mode can also be enabled by clicking on the Continuous Sync toggle.
5051

5152
The Delete button can be used to delete the local CBLite Database. Note: Deleting the CBLite Database will NOT delete the documents on the server even if you click Sync or Continuous Sync is on.
5253

5354
The Initialize button can be used to re-initialize the local CBLite database by downloading all documents from the server again. If you change the user and click Initialize, the data for previous user is deleted from the local CBLite DB and data for the new user is Synced and displayed in the table.
5455

56+
## Creating and Syncing new documents
57+
New documents can be created by clicking the 'Add Document' button.
58+
![Create New Documents](https://github.com/amrishraje/amrishraje.github.io/blob/master/CBLiteTester_files/create_new_docs.png)
59+
On clicking save, the document is saved to the local CBLite database. Click 'Reload Table' to refresh the table view from the CBLite DB. To sync the new doc up to the server, make sure that Replication Mode is selected as either Push or 'Pull and Push'. Enter sync gateway credentials and click sync.
60+
5561
## Working with an existing CBLite DB
5662
You can load an existing CBLite database file (dbname.cblite2) downloaded from a mobile device, or created using Couchbase CBLite CLI tool in the CBLite Tester tool. Launch the tool and click settings. Click the ‘Choose CBLite DB’ button and point to the folder containing your *.cblite2 file. Note: Do not point to the cblite2 folder itself, but point to the folder containing it. Also, ensure that the name of the cblite2 file is the same as the name of your database. In this example, the database name is syncdb and the tool will expect the CBLite database file to be called syncdb.cblite2
5763

0 commit comments

Comments
 (0)