Page 1 of 1

Create multiple records from a list

Posted: Mon Sep 01, 2014 11:23 am
by Paul Medawar

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?


Create multiple records from a list

Posted: Mon Sep 01, 2014 12:48 pm
by obullei

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 ();


Create multiple records from a list

Posted: Mon Sep 01, 2014 12:54 pm
by Paul Medawar

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() ?


Create multiple records from a list

Posted: Mon Sep 01, 2014 5:21 pm
by Evgene Karachevtsev

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