Backendless Support
 
Answered

Fix Syntax Error: BackendlessCollection

Hi I came to this question (Click Here to see the Question) and it is 'n similar question/problem I encountered to do in my project. Mark Pillar gave (This Website). I have Copied and Pasted the code to see if the syntax is correct, since I could not solve it in the past. It still gives a syntax error. (See Photo).

Please help to solve it? (Only the BackendlessCollection syntax error)

Leave a Comment

Comments (5)

photo
1

Hi Rhonwen

Are you using version 3 or 4 of Backendless?

Best Regards

photo
1

And if I give this code. My app bombs out, even though I have it in a try block. (See Code Below)

Backendless.Persistence.of( BackendlessUser.class ).find( new AsyncCallback<List<BackendlessUser>>()

//At the above line the code bombs out

{

@Override

public void handleResponse( List<BackendlessUser> users )

{

}

@Override

public void handleFault( BackendlessFault backendlessFault )

{

}

} );

photo
1

Rhowen, what version of Backendless are you using - 3 or 4?

Best regards

photo
1

The reason for why I'm asking is that BackendlessCollection has been eliminated completely in v4. Here are the docs. Migration from 3.x to 4.x > Version differences > Retrieval of data collections

Best regards

photo
1

Hi I am using 4.2.0 Ok that makes sense...