ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: bsolTeamBglr on August 01, 2017, 11:08:49 am

Title: Getting 400 bad request error status while generating report
Post by: bsolTeamBglr on August 01, 2017, 11:08:49 am
Hi ,

IF i selected a column and try top generate report it throws error status as 400 bad request.

If i didnt select a column or row, report is generating properly.

My request is not at all reached to controller class.

"selectionModel     :{ mode: 'single',type : 'column'},"


This is the selectionModel, i am using in my JSP.

Can you please help me on this.

Thanks,.
Title: Re: Getting 400 bad request error status while generating report
Post by: paramvir on August 01, 2017, 12:39:43 pm
1.What kind of report are you generating from the grid. Have you used exportData() API with format: 'json' ?

2. Is it a GET or POST request?

3. Try to find the data posted to server by opening up the browser developer console -> network logs.
Title: Re: Getting 400 bad request error status while generating report
Post by: bsolTeamBglr on August 01, 2017, 03:00:56 pm
Hi,

1) Yes i am exporting date  from AP using json.

2) POST method i have requested.

3) In net work log i can see the data ,but the its shows this as bad request.

Thanks,

Title: Re: Getting 400 bad request error status while generating report
Post by: paramvir on August 01, 2017, 05:05:29 pm
use nopqdata: true in exportData() method: https://paramquery.com/pro/api#method-exportData
Title: Re: Getting 400 bad request error status while generating report
Post by: bsolTeamBglr on August 02, 2017, 02:46:27 pm
Hi,

I got the reason for issue.

in Network console i can see the another index named like "pq_rowselect" extra.

This is the reason i am getting 400 bad request error.

could you please help me on this.

Thanks,
Title: Re: Getting 400 bad request error status while generating report
Post by: paramvir on August 02, 2017, 03:40:41 pm
Have you tried the solution provided in previous post.
Title: Re: Getting 400 bad request error status while generating report
Post by: bsolTeamBglr on August 02, 2017, 04:15:50 pm
Hi,

Yes i have tried the solution.

But still i am facing the same issue.

Thanks,
Title: Re: Getting 400 bad request error status while generating report
Post by: paramvir on August 02, 2017, 04:46:55 pm
Please share a test case / jsfiddle.