Page 2 of 2

Account creation with full user profile capture.

Posted: Thu Nov 14, 2013 10:43 pm
by Scott Schechtel6280324

Jennifer did you ever get this answered to your liking? You have the same basic question I have: how to auto-populate a form with user data added from another page/form and pulling from the db. Let me know and share


Account creation with full user profile capture.

Posted: Thu Nov 14, 2013 10:48 pm
by Scott Schechtel6280324

Hi, so I would like to know if I need to add a RESTservice to my Registration, Login or Cart(the page I would like the form fields to autopopulate) page? I added it to the Cart page but nothing is happening. Thanks in advance


Account creation with full user profile capture.

Posted: Fri Nov 15, 2013 8:13 am
by Kateryna Grynko

Hi Scott,

What is the difference between Registration and Cart pages?


Account creation with full user profile capture.

Posted: Fri Nov 15, 2013 2:27 pm
by Scott Schechtel6280324

The registration page will initially capture all the user information and be added to dBASE. The cart page is just where they checkout with their selected product. This page simply displays the same info as registration form fields


Account creation with full user profile capture.

Posted: Fri Nov 15, 2013 9:00 pm
by Maryna Brodina

Hello! On Cart page Load event do the request to DB using REST service. Map data you retrieve from service to the fields you need.


Account creation with full user profile capture.

Posted: Fri Nov 15, 2013 10:09 pm
by Scott Schechtel6280324

Okay but there is nothing in either request or response to map to.


Account creation with full user profile capture.

Posted: Fri Nov 15, 2013 10:20 pm
by Maryna Brodina

Do you mean service doesn't return any data?


Account creation with full user profile capture.

Posted: Fri Nov 15, 2013 10:30 pm
by Scott Schechtel6280324

correct. Here are screenshots:

Image

Image

Image


Account creation with full user profile capture.

Posted: Sat Nov 16, 2013 3:47 am
by Illya Stepanov

Hi Scott,

On the first screenshot: 'RESTservice' is it a Database service?
It should be like it's described here :: http://docs.appery.io/documentation/b...
ul
li
if you want to show the data that was inputted by the user on signup stage, you should use a 'list_service' that will return the data already exist in DB
:: http://docs.appery.io/documentation/b...
/li
/ul

There is no need to use a 'Wineusers_signup_service' on Cart page - since this service used only when a user will sign up for the first time.

On signup process you should ask additional information from user - that will be stored under his credentials in your DB.
:: http://docs.appery.io/documentation/b...

After the user is signed up and has log in - you will need to save his sessionToken that will be used when user reached the Cart page.
:: http://docs.appery.io/documentation/b...

On that page you invoke DB service and pass the sessionToken to retrive the information that was already saved on signup process by this user.