jeudi 18 septembre 2014

parse.com :query with one table using pointer .retrieving the same type


Vote count:

0




Hashtag class with pointer as hashtagtype class objectid


hashtagtype clas


I have 2 classes "HashTag" and "HashTagType" on parse.com want a query to hit the Hashtag table and Now I want to hit the Hashtag table by navigating through the relationships table. (the relationships table has a column which stores the object IDs of the HashTagtype in the Hashtag class as in Pointer). Hashtag - Objectid, Tags, Pointer(Hashtagtype's Objectids)


class columns list -


Pointer column has multiple instances of same objected ids of tagtypes


HashtagType - Objectid,Tagtype(no duplicates entries)


need a query that will give me mutilple Tags (atleast 2) for one Tagtype(pointer)



ParseQuery<ParseObject> query = new ParseQuery<ParseObject>("HashTagType");
ParseQuery<ParseObject> query2 = new ParseQuery<ParseObject>("HashTag");

ob2 = query.find();
for (ParseObject object : ob2) {

query2.whereEqualTo("parent", object.getObjectId());
query2.include("parent"); //the pointer column it must have
try {
ob = query2.find(); //this holds the same tags Table data
}


i want to display in list view like



News -hashtagtype
#breakingnews #echnology #enterainment ...all tags of **NEWS**


Marketing -hashtagtype
#smdata #ux #ecomchat #ecom #ecomerce .... all tags of Marketing


asked 1 min ago







parse.com :query with one table using pointer .retrieving the same type

Aucun commentaire:

Enregistrer un commentaire