navya kodali
Posts: 0
Joined: Wed Jan 22, 2014 6:47 am

By default Create some rows in database for every user.

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

By default Create some rows in database for every user.

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.

navya kodali
Posts: 0
Joined: Wed Jan 22, 2014 6:47 am

By default Create some rows in database for every user.

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

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

By default Create some rows in database for every user.

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...
navya kodali
Posts: 0
Joined: Wed Jan 22, 2014 6:47 am

By default Create some rows in database for every user.

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

By default Create some rows in database for every user.

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.

Return to “Issues”