We are trying to retrieve data from
backendless user table using the below query as described in
backendless docs. When we run this code we get the error “No visible @interface for messegingsevice’ declares the selector ‘describeUserClass:’” on line [backendless.messagingService describeUserClass:responder];
This query will give the details of all users in users table. We need only the details of current users not all the users. How can we do this for the current users? After get the data, how can we retrieve details on the basis of properties?
This query will give the details of all users in users table. We need only the details of current users not all the users. How can we do this for the current users? After get the data, how can we retrieve details on the basis of properties?
We have added a column in users table which contain the objects of another table based on one to many relation. So we need to fetch the details of this column based on particular user.
Even we get the details from users table based on logged in user using below code. When we print the BackendlessCollection object(users) in NSlog then we can see the information, but not able to retrieve the values of this object.
@try {
BackendlessCollection *users = backendless.userService.currentUser;
NSArray *properties = users;
NSLog(@"Users have been fetched (SYNC): %@", users);
}
@catch (Fault *fault) {
NSLog(@"Server reported an error (SYNC): %@", fault);
}
The links you mentioned, all shows the retrieving of data from another table ‘Restaurant’ not from the ‘Users’ table. When we try to create the NSObject class with name as ‘Users’, then XCODE not allowed to create this class as it is being used in backendless SDK. When we remove the backendless SDK, then we able to create the NSObject class with name ‘Users’.
If we are not able to create the class with name ‘Users’, how can we retrieve the records from Users table?
Client SDK BackendlessUser class is mapping to server Users table, so if you need to work with Users table using PersistenceService you should use BackendlessUser class
What i am trying to do first time user will login with his credentials therefore we can get current user but when we close the app and launch again then user session expires and i am not able to get current user so could u plz suggest me the solution. so that i can update users data.