brelto85 Active Member Licensed User Longtime User Mar 30, 2014 #1 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?
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 Mar 30, 2014 #2 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
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 ?
derez Expert Licensed User Longtime User Mar 30, 2014 #3 You can check in parse.com what is the type written in this column header of your table. Upvote 0
brelto85 Active Member Licensed User Longtime User Mar 31, 2014 #4 the problem is what type i must pass to Put() method when the "userId" column of Parse class is relation Upvote 0
the problem is what type i must pass to Put() method when the "userId" column of Parse class is relation