Author Topic: Export query string error  (Read 4330 times)

motoguru

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 35
    • View Profile
Export query string error
« on: February 21, 2014, 05:44:35 am »
When You do an export (in PRO) and pass the url with some additional query string, for example: /server/url/exports/exportFile.aspx?something=value, then export script in grid passes malformed query string: /server/url/exports/exportFile.aspx?something=value?filename=. Script does not check if another query string variables are passed before.

Example:
$grid.pqGrid("exportCsv", { url: "/server/url/exports/exportFile.aspx?something=value", sheetName: "pqGrid sheet" });

Gives ajax request to:
/server/url/exports/exportFile.aspx?something=value?filename=....

And should:
/server/url/exports/exportFile.aspx?something=value&filename=....

Regards
« Last Edit: February 21, 2014, 05:46:42 am by motoguru »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Export query string error
« Reply #1 on: February 26, 2014, 07:45:37 pm »
Thanks for reporting the issue.

It has been corrected in 2.0.4