Page 1 of 1

By default Create some rows in database for every user.

Posted: Wed Feb 05, 2014 5:19 am
by navya kodali

HI,

Is there any possibility to create some rows by default for login user.

I have 2 users in my database. i want to create in every collection some perticular rows(eg:7,11 respectively) has been created when user login.for every time login is not need to create rows.
i have sam,bob 2 users. i want to create 7 rows for sam and 7 rows for bob.
i will update the information evrytime i login.

if there is a possibility please explain me how to do that?

In apprey there is any limit in create collections in database?
any diference in creating collections for purchase account and free account?


By default Create some rows in database for every user.

Posted: Wed Feb 05, 2014 6:31 am
by maxkatz

Sure, once the user signs in first, you can create two records.

There is no limit to the number of collections. Every plan has different number API calls/storage - http://appery.io.pricing.


By default Create some rows in database for every user.

Posted: Wed Feb 05, 2014 6:33 am
by navya kodali

Hi,
How to do that.either by coding or ?
Please explain me how to do that?
The link given is not loading anything.


By default Create some rows in database for every user.

Posted: Wed Feb 05, 2014 7:41 am
by Kateryna Grynko

Hi Navya,

Create the following 3 services.

  1. Checks if there are any records for a user: http://docs.appery.io/documentation/b...
  2. Adds these records: http://docs.appery.io/documentation/b...
  3. Updates: http://docs.appery.io/documentation/b...

By default Create some rows in database for every user.

Posted: Wed Feb 05, 2014 9:32 am
by navya kodali

Hi Katya,
My Requirement is dynamically creates 7 rows in one collection when user signup (using signup service)into my application.
when i run list service, now data.length displays "0". But i want data.length should be "7" .
based on parameters of signup service we are able to get username,userid.i need extra column "text".

in text column should be empty when creating.


By default Create some rows in database for every user.

Posted: Wed Feb 05, 2014 7:56 pm
by Maryna Brodina

Hello! For one request to DB you can create only one record in collection. If you need to create 7 you have to invoke service 7 times.