Page 1 of 2

"where" condition in REST request ant can't retrieving distinct values on android 2.2

Posted: Wed Jun 04, 2014 5:39 pm
by hatem mabrouk

when a run this service on test and on android 4 it return a correct result which
i want by where condition

but when i run this service on android 2.2 it returns all rows from the collection
Image

Image
Image
Image


"where" condition in REST request ant can't retrieving distinct values on android 2.2

Posted: Wed Jun 04, 2014 7:11 pm
by Alena Prykhodko

Hello,

1) Please use alert function to check value, also look whether value send to Android 4 and 2.3 is the same.
2) There is no need to use parseInt as you stringify it


"where" condition in REST request ant can't retrieving distinct values on android 2.2

Posted: Wed Jun 04, 2014 7:21 pm
by hatem mabrouk

this is data mapping result is different android 2.2 return all rows and no sort
Image


"where" condition in REST request ant can't retrieving distinct values on android 2.2

Posted: Thu Jun 05, 2014 7:27 pm
by Alena Prykhodko

Hello,

Is it only sorting that doesn't work? Does where parameter work properly?

Please try to add this parameter by adding the code to mapping:
pre
return '{"colName":"value"}';
/pre


"where" condition in REST request ant can't retrieving distinct values on android 2.2

Posted: Fri Jun 06, 2014 6:07 pm
by hatem mabrouk

the where parameter doesn't work properly and sorting doesn't work


"where" condition in REST request ant can't retrieving distinct values on android 2.2

Posted: Fri Jun 06, 2014 6:19 pm
by hatem mabrouk

sorting doesn't work
where parameter doesn't work properly

i have already add this code and it doesn't work properly


"where" condition in REST request ant can't retrieving distinct values on android 2.2

Posted: Fri Jun 06, 2014 8:54 pm
by Kateryna Grynko

Hi Hatem,

Sorry, we don't support Android 2.2 because we use native code which could not be compiled for this platform version. Android 2.3 is still supported.


"where" condition in REST request ant can't retrieving distinct values on android 2.2

Posted: Sat Jun 07, 2014 11:48 am
by hatem mabrouk

i tested this this query on android 2.3 and still not work


"where" condition in REST request ant can't retrieving distinct values on android 2.2

Posted: Sun Jun 08, 2014 2:50 am
by Illya Stepanov

Hi Hatem,

Can you share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us its name? We'll test it on a device.


"where" condition in REST request ant can't retrieving distinct values on android 2.2

Posted: Mon Jun 09, 2014 2:30 pm
by hatem mabrouk

i shared my app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a
the app name is fayoum offers