Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

Create multiple records from a list

Hi,

hope you can help

I have a list (mobilelistitem_90) that is populated from a collection (portfolio) using a query service.

I have added a "create" service linked to another collection (cash).

When I map the listitem to a column (share) using the create service, and invoke the service on a button click, only the first item in the list is created in the collection.

How can I create multiple records from all the items that are showing in the list?

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

Create multiple records from a list

Hello!

You can create only one entry in the database for one service call.
Please look here to get more information:
http://devcenter.appery.io/documentat...
You can just call this service on your mappings element:
serviceName.execute ();

Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

Create multiple records from a list

Hi Arina,

I've already looked at the document in the link and it doesn't help me. Are you saying that it is not possible, or were you suggesting I can code something using serviceName.execute() ?

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

Create multiple records from a list

Hello Paul,

Yes, you can't do this via the mapping, only with the help of js. You should follow through each list item and for each of them call service
preserviceName.execute()/pre

Return to “Issues”