Bug with exportToExcel Java package and % symbol

Hi,

Just noticed a bug when doing exportToExcel with Java package and percentage symbol (%) in the table. The server side app will crash with an error msg like this link:

After I replace % with %25 in the encoded xml string (modified webix_debug.js), the issue is gone and exported excel looks good.

The same issue could also happen to plus symbol (+) as per the link discussion.

Regards,
Jianxin

If you have active license - grab Webix 2.0.6 from the support area - it contains the fix for above issue ( the same will be available as part of oncoming Webix 2.1 )

Also, you can patch it manually in debug code by replacing

webix.send(url, { grid_xml : xml }, null, "_blank");

with

webix.send(url, { grid_xml : encodeURI(xml) }, null, "_blank");

Thanks Maksim! will try this out.

One more question, it there a way to customize the download filename of the generated excel? Currently I always get “grid.xls”.

Regards,
Jianxin

Unfortunately it is hardcoded :frowning:

We have plans to update the export service, as part of update we will add ability to choose file name for the export file.

Maksim

I cannot use the export service due to compliance issues - is there any way to perform the export locally?

Yep, you can grab the sources of export service ( php, java, .net ) and deploy them on your server

http://docs.webix.com/datatable__export.html#exporttoexcel

After that you can use

some.exportToExcel("yourserver.com/generate.php");

Is there a service for classic asp?

Nope, only php, java, .net and online verson