Page 1 of 1

How to retrieve a new field from user DB

Posted: Tue Apr 28, 2015 1:28 pm
by rajanmr

Hi,
I have created some new columns in the user database. For eg: email id and mobile no. I have added the fields in the register page and successfully mapped it to storage also. So when a new register is made, those 2 additional fields are also getting stored in the database.

Now I want to display their mobile no in the welcome page after login/signup. When i go for mapping in welcome page, i can only see username in the storage Image


How to retrieve a new field from user DB

Posted: Wed Apr 29, 2015 12:25 am
by Yurii Orishchuk

Hi Rajanmr,

Here is what you could miss in this implementation:

  1. you should add these new rows in the currentUser model.
    1.1. Open "storage and model" interface.
    1.2. Navigate to "model" tab.
    1.3. Find your model and add there there new columns.

  2. Please specify how do you store "currentUser" storage values.

    Regards.


How to retrieve a new field from user DB

Posted: Wed Apr 29, 2015 5:07 am
by rajanmr

Thanks Yurii!

I have been using the imbuilt login example, now i tried from the start and its working good.