java - Parse.com: with parseUser, how can I save data in a column I created in parse from the class? -


I am using Android studio for my app and parsing for my database ... and I have an account page Upon creating, it allows the user to enter the first name, last name, email, user name and password.

But my code is using parseUser ... I do not know how to set the first and last name in the database, setUsername, setPassword, setEmail know that it is a part of ... but What if you make columns in pars? How can you add it to your class?

This is a part of my code, how it looks ... My problem is in my statement:

  // force to fill the user (Usernametxt.equals ("") & amp; amp; amp; and & amp; passwordpassext.exls ("") & amp; amp; email. Text.equals ("")) {Toast. MakeApplicationContext, "Please enter username, password, and email field.", Toast. Langtha_long). Show (); } Else {// Save new User Data in Parse.com Data Collection ParseUser user = new ParseUser (); // In any way save the first and last name user.setEmail (emailtxt); User.setUsername (usernametxt); User.setPassword (passwordtxt); User.signUpInbackground (new sign-up callback () {Canceled public (parse exception e) {if (e == blank) {   

Yes, provide parsus usernames, passwords such as set UUn (parameters) and set password (parameters) Does, but if you want to add more data to the tables, you can create more columns according to your needs as I do in this code snippet

If you already have the name, phone, address, city name, CompanyId, how am I doing it.

  Private Zero service () { Parsusor User = New Parsusor (); User.set USUN Name (UsernameEditTextGettext) .Tostring ()); User .setPassword (passEditText.getText (.) ToString ()); User.put ("name", nameEditText.getText (). ToString ()); User.setEmail (emailEditText.getText (). ToString ()); Put user ("phone", not phone. EditText.getText () toString ()); User.put ("address", address admit text .gettext (.) ToString ()); User.put ("citystate", cityStateEditText.getText (). ToString ()); User.put ("companyid", compSchoolIdEditText.getText (). ToString ()); User.signUpInbackground (new signup callback () {@ Override public watch done (purse eclipse e) {if (E! = Blank) {Toast. Make text (signup acquisition update, this, "saving user failed.", Toast.LNNGHHORT). ; Log.w (tag, "error:" + e.get message () + ":::" + e.getCode ()); if (e.gatecode () == 202) {toast.make text (signupactive update ., "The username has already been taken. \ NPlease select another username.", T St. LNNHTLLG) .Up (); Username edit text .set text (""); Pass Editing Text. "Text" (""); Pushputet Text. Set Text ("");}} Else {Toast.ctr.makeText (SignupActivityUpdate. This, "user saved", Toast.LENGTH_SHORT) .show (); / * If you want to do some things here. *}}});  

Note: The first parameter is the name of the column and the second value is. So, it basically acts like a significant value combination.

This problem is resolving..I know that it works .. good luck .. :)


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -