Narayan G. Maharjan
Posts: 0
Joined: Thu Feb 12, 2015 6:24 am

Sending Checkboxgroup in parameter

Hi,
I have been working on sending the list of checked item in one service request but it seems appery is not sending ajax to that service when i used the checkboxgroup however the radiogroup param are going well. Please help.

Thanks

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Sending Checkboxgroup in parameter

Hi -

Could you please show what AJAX request you are trying to send?

Narayan G. Maharjan
Posts: 0
Joined: Thu Feb 12, 2015 6:24 am

Sending Checkboxgroup in parameter

The ajax request is this :
code
URL: http://184.72.60.78:8080/skuapp/api/job/createJob
Params:

---------------------

name: String
jobDescription: String
storeId: Number
upc:String
auditorId:Number

---------------------

Content-Type: application/x-www-form-urlencoded
Accept: application/xml

For now test with these params : name:NewJob jobDescript:newDesc storeId:14 upc:700023001335 and auditorId can be multiple values [31,36,41,46]
/code

here auditorId can be multiple supported. I have already tested and works normally but not sure why my service when mapped with the checkboxgroups to auditorId
then it will not work.

Thanks

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

Sending Checkboxgroup in parameter

Hello,

Could you please show us screenshots of your mapping?

Narayan G. Maharjan
Posts: 0
Joined: Thu Feb 12, 2015 6:24 am

Sending Checkboxgroup in parameter

Image

Here it is

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Sending Checkboxgroup in parameter

Hi -

Please try move 'auditorId' from Query String of Service to Body and set for it an Array type.

Narayan G. Maharjan
Posts: 0
Joined: Thu Feb 12, 2015 6:24 am

Sending Checkboxgroup in parameter

I tried but it did not work. Also when i used the auditorId as body there are not any array representation Image

Ihor Didevych
Posts: 0
Joined: Wed Nov 19, 2014 7:55 pm

Sending Checkboxgroup in parameter

Hi,

What is your service's method - GET or POST? You can't define body parameter's type for GET, but you could do it for POST

Narayan G. Maharjan
Posts: 0
Joined: Thu Feb 12, 2015 6:24 am

Sending Checkboxgroup in parameter

I have all in POST.

Narayan G. Maharjan
Posts: 0
Joined: Thu Feb 12, 2015 6:24 am

Sending Checkboxgroup in parameter

Here is screenshot of my service
Image

Return to “Issues”