Page 2 of 2

Struggling to GET user details for individual user

Posted: Fri Jun 21, 2013 1:18 pm
by Andrew Gilmour5879596

Hi Marina,

Like this? Image


Struggling to GET user details for individual user

Posted: Fri Jun 21, 2013 2:24 pm
by Maryna Brodina

You should map this response parameter to localStorage variable in response mapping section.


Struggling to GET user details for individual user

Posted: Fri Jun 21, 2013 3:01 pm
by Andrew Gilmour5879596

Hi Marina,

One problem, I can't set _id as a variable - it doesn't allow underscore.

Kind Regards

Andrew


Struggling to GET user details for individual user

Posted: Fri Jun 21, 2013 3:26 pm
by Andrew Gilmour5879596

Hi Marina,

I have changed the variable to _id but it is still bringing up all of the records.

Andrew Image


Struggling to GET user details for individual user

Posted: Fri Jun 21, 2013 3:36 pm
by Kateryna Grynko

Hi Andrew,

In localStorage you can use name UserID. When building with the use of this field, its name is not important.


Struggling to GET user details for individual user

Posted: Fri Jun 21, 2013 3:53 pm
by Andrew Gilmour5879596

Thanks Katya,

I'll try that in the app but when I run the test on the database it is still showing multiple records - see my last screenshot.

Kind Regards

Andrew


Struggling to GET user details for individual user

Posted: Fri Jun 21, 2013 4:58 pm
by Kateryna Grynko

Andrew,

Request parameter _id shouldn't be in header. Untick "Header" from _id field: Image


Struggling to GET user details for individual user

Posted: Fri Jun 21, 2013 5:02 pm
by Andrew Gilmour5879596

And it works!

Many thanks Katya - the app is now only displaying one user record.

Kind Regards

Andrew