Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How can I have a user upload their own "Bio" and have that stored in the database?

Hello Stefan,

Please look at this documentation about create_service setting:
http://devcenter.appery.io/documentat...

Stefan Zier
Posts: 0
Joined: Sun Jun 01, 2014 7:22 pm

How can I have a user upload their own "Bio" and have that stored in the database?

Thank you for the email, Evgene. In your email you mentioned that I could store the bio in the predefined "Users" collection. How might I go about this?

As for where I am stuck regarding the steps is here: "After you have these new two rows in your DB you need to do following steps(to update photo): "

I believe I have done everything right before that but am not seeing the two rows in the User_Info collection. Since it is possible to use the Users collection instead of the User_Info collection, does this still apply?

Thank you

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How can I have a user upload their own "Bio" and have that stored in the database?

Hello Stefan,

Of course you can do this. Create in collection Users column Bio like on sreenshot
http://www.screencast.com/t/HqZx3qUtCRu
After new user registration you can offer to update Bio using update_service: http://devcenter.appery.io/documentat...

Stefan Zier
Posts: 0
Joined: Sun Jun 01, 2014 7:22 pm

How can I have a user upload their own "Bio" and have that stored in the database?

Ok thank you! So what I have done is given the user the opportunity to enter their Bio in the SignUp page using an input linked to the Bio request parameter. Their input is then saved in the Bio parameter in the Users collection.

Now the issue... I would like to take the input from the Bio parameter in the Users collection and link that to a label on the Account page. How is this possible? I've tried storing the input data to an LSV but cannot get the label to reflect the database input.

Any ideas?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How can I have a user upload their own "Bio" and have that stored in the database?

Hi Stefan,

Please show us how you have implemented this (preferably with screenshots)?

Stefan Zier
Posts: 0
Joined: Sun Jun 01, 2014 7:22 pm

How can I have a user upload their own "Bio" and have that stored in the database?

Here are the screenshots of what I have so far

Image Database with Bio Parameter

Image Input on signup service going into Bio request parameter

Image SignUp UI

Here is what I want to do...

Change the label called bio_entry to reflect what is in Bio request parameter

Image Account Page

Stefan Zier
Posts: 0
Joined: Sun Jun 01, 2014 7:22 pm

How can I have a user upload their own "Bio" and have that stored in the database?

Eventually I'd like to have the Update button above "Bio" update the Bio parameter in the Users collection

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How can I have a user upload their own "Bio" and have that stored in the database?

Hello Stefan,

You should on the event page show run next code to write data from local storage label:

codeAppery("labelname").text(localStorage.getItem("text"));/code

where labelname is the name of needed component label, аnd text is the name of LSV where needed text is store

Stefan Zier
Posts: 0
Joined: Sun Jun 01, 2014 7:22 pm

How can I have a user upload their own "Bio" and have that stored in the database?

Hi Evgene,

Thank you! I have done that but I am afraid I am not creating the LSV correctly. I followed the sign up tutorial and I am sure I am not setting the LSV right in the first place because my label doesn't change.

Could you help me set the LSV? I went into my SignUp page, Data tab, then sign_up_service, and created an LSV called _userBio. Now how do I get the "bio_input" to be stored into the _userBio LSV and link that up to the database?

I have tried this:

In SignUp Page when the user hits the "Done" button this javascript code runs

Appery("bio_input").text = localStorage("_userBio");

I do not know javascript well and am still pretty new to coding so I am sure this isn't right. Any thoughts?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How can I have a user upload their own "Bio" and have that stored in the database?

Hi Stefan,

Use this code to save a localStorage variable value to Input:
preApperyio("bio_input").val(localStorage.getItem("_userBio"));/pre

Return to “Issues”