Submission of MultiSelection in Reports

4 views
Skip to first unread message

Zeshan Hayder

unread,
Feb 28, 2015, 4:05:24 PM2/28/15
to open311...@googlegroups.com
Hi All,

i want to send MultiSelect to Open311 Server but i could not understand how i can do this. Here is my effort in this regard


We are suppose to send as "attribute[code1][]=value1&attribute[code1][]=value2&attribute[code1][]=value3"

where 
attribute[code1][] = value1

code1 here is question code ?
and value1 is code of selected answer from options.

Right ? if not please tell me how it works and how can i send multi selection in AFNetworking

Thanks

Cliff Ingham

unread,
Mar 2, 2015, 9:24:59 AM3/2/15
to open311...@googlegroups.com
It seems you have the general idea.

However, what you've described is a URL, which would be transmitted in the GET.  You must create an HTTP Post with the data, using the array structure you've described.

In terms of AFNetworking, you would need to create an NSDictionary of this structure, which you use to as the parameters for an HTTP POST.
Reply all
Reply to author
Forward
0 new messages