Answered: batchActions on Rest Proxy with single record
Answered: batchActions on Rest Proxy with single record
I have batch actions set on a rest proxy and it works great. The problem I have is that if I update 2 records I get the json that looks like this on Post:
[{"Lat":"33.19884520","Lng":"-96.61870223","Address":"405 W Hunt St, McKinney, TX 75069, USA","Notes":"","Status":1,"Date":"2012-11-20T15:27:23"},{"Lat":"33.19812698","Lng":"-96.62106257","Address":"201 N College St, McKinney, TX 75069, USA","Notes":"","Status":2,"Date":"2012-11-20T15:27:25"}]
If I only have one record, I get this:
{"Lat":33.19755241,"Lng":-96.62536483,"Address":"1002 W Louisiana St, McKinney, TX 75069, USA","Notes":"","Status":1,"Date":"2012-11-20T15:21:50"}
Is there any way to force it to be a collection with just 1 item. My Rest api is giving me fits, and I can't see an easy way to test if I have 1 update record, or many.