Page 1 of 2

Database Service doesn't work

Posted: Sat Apr 12, 2014 4:10 am
by Ahmed bahaa

Hi,
I have a collection(doctors) in the Database, it contains 132 records. and I have a Database Service that list all the records of this collection. The problem is when I tested this Database service it didn't get all the records.

It's really bad because i insert these records into sqlite Database, but now i ended with missing data and my app will not work as it should.

What can I do?


Database Service doesn't work

Posted: Sat Apr 12, 2014 4:50 am
by Illya Stepanov

Hi Ahmed -

Please provide more information how you executing your DB service and what are the settings are setup?


Database Service doesn't work

Posted: Sat Apr 12, 2014 5:34 am
by Ahmed bahaa

Hi lllya,

here the settings screenshot

Image

and here the test screenshot

Image

I don't understand what you mean by how do i execute the DB service .. do you mean how do i execute it inside the app?


Database Service doesn't work

Posted: Sat Apr 12, 2014 6:07 am
by Igor

Hi,

You told that you saved data to SQLite DB and can't see this data in the DB collection, this is two different DB. Could you show us how do you push data from SQLite DB to DB collection?


Database Service doesn't work

Posted: Sat Apr 12, 2014 6:19 am
by Ahmed bahaa

Hi,

I don't push data from SQLite DB to DB collection .. I do the opposite.

1- get data from DB collection.
2- push(insert) the data into SQLite DB.

The problem is the Database Service doesn't return all the data from the DB collection,


Database Service doesn't work

Posted: Sat Apr 12, 2014 6:25 am
by Igor

Could you also show us example or screenshot what exactly data it doesn't return?


Database Service doesn't work

Posted: Sat Apr 12, 2014 6:52 am
by Ahmed bahaa

here a screenshot of doctors collection, it contains 132 doctor

Image

when i run the service test in screenshot below, it doesn't return all the 132 doctor

Image


Database Service doesn't work

Posted: Sat Apr 12, 2014 6:58 am
by Ahmed bahaa

that is all i did.

1- created a DB collection.
2- created a Db Service to list this DB collection.
3- tested this Db Service.
the problem occurred here and it prevent me to continue the step below:
4-insert the data into SQLight


Database Service doesn't work

Posted: Sat Apr 12, 2014 9:30 am
by Igor

Lets try to add request "sort" parameter(see screenshot). With such case - does service return records with id: 132...124?

Image


Database Service doesn't work

Posted: Sat Apr 12, 2014 11:26 am
by Ahmed bahaa

1st: I just want to clarify that the problem wasn't related to records with ID: 132 to 124 only, I'd just highlighted them on the screenshot as an example.

2nd; I did what you told me, and that help me to understand the problem more.

First I did a sort in descending order, first record with id=132, last record with id=33.
the database list service only returned 100 records.

here the screenshoots for descending sort

Image

Image

Then I did a sort in ascending order, first record with id=1, last record with id=100.
again the database list service only returned 100 records.

here the screenshoots for ascending sort

Image

Image

What can I do to return all the records in the collection?