How to upload a string content a class that i created in the backendless console ?

How to upload a string content a class that i created in the backendless console ?

I am sorry, I did not understand the question. Could you describe what you created, where and what you are trying to upload. Screenshots would be very helpful.

I was trying to upload a string to the data tables

Screen Shot 2016-02-16 at 10.09.32 AM.png

https://backendless.com/feature-9-adding-data-objects-using-developer-console/

How can i do it in code ?

https://backendless.com/documentation/data/ios/data_saving_data_objects.htm

I checked your documentation but one thing i dont get it is that why do i need to create a class ?

class Contact : NSObject { var objectId : String? var name : String? var age: Int = 0 var phone : String? var title : String?}

Because that’s how Backendless works and it is a better, more object-oriented way to program client applications.

Ok thanks i understand now

I am getting this error

fServer reported an error: FAULT = ‘8023’ [Validation for the status property failed. Property value does not match the required pattern.] <Validation for the status property failed. Property value does not match the required pattern.>

Here is my code
class Status : NSObject {
var objectId : String?
var status : String?

}

Did you setup a validator for the “status” property?

Oh ok thanks i accidentally click the validator

I am still getting use to backendless

Do ownerId is same as creating a relation to Users Class ?

Similar, but not quite. ownerId is set to objectId of the user that is logged in at the moment when you saved the object.

I have the same error. How do i setup a validator for a property? Please guide me Mark, i’m a newbie

Kadik, see this: https://backendless.com/feature-54-validating-data-object-properties-with-regular-expressions/

I want to setup validator for property “username” which contains only letters and numbers, begins with a letters, what is the proper regular expression in this case Mark ?

Kadik, I recommend posting this question to stackoverflow. I am sure there are plenty of people who can come up with that regex pretty quickly.