Android Question Parse.com relation

brelto85

Active Member
Licensed User
Longtime User
How to put the relation value using Parse library?
if i use

B4X:
po.Put("userId", "1234")

where userId is a column relation, return this error:

com.parse.ParseException: invalid type for key userId, expected relation<Users>, but got string

how to do this?
 

JTmartins

Active Member
Licensed User
Longtime User
if po is a map and userID is the correct key (check capitals) then it should work.

I've tryed to use a map with a worng key, and the error I got was different. Are you sure the problem is on this line ?

Can you show the code that handles the parse ?
 
Upvote 0

derez

Expert
Licensed User
Longtime User
You can check in parse.com what is the type written in this column header of your table.
 
Upvote 0
Top