Hi, i need some advice on how to do this or where to look in the documentation.
In general is export Ext store records to excel, using a server side code to generate the excel and retrieve that file, as a link or as http response using excel headers.
Im using Ext.Direct as proxy for all my stores/models.
using store.load() the http request send some parameters as JSON to the server (like page, limit, filter, sorts, etc)
in some point i want to export this store, to excel.
In the server side i have a code that receives all params as a normal store.load() but instead of returning the JSON records, generates an excel.
My problem is how to call this excel method and pass all the params store.load() sends.
Cant do it using with something like store.load({params:{export: true}}) even when the server will understand that he needs to export to excel instead of generating json, store.load() expects a json response, not an excel.
I need something like
- get all the params store.load() will send to the server to load those record.
- send a request using another mechanism like a form ? dunno im lost here. something that sends those params as JSON but doesnt expect a JSON as http response.
anyone can help me on this ? or some similar solution to export to excel
Note that all my store/models load records correctly and i excecute manually that server side excel generator, works properly, just need a way to call him from ext and pass him the params store.load used to load his records.
(sorry for my bad english)