Hi in my MVC3(Razor) application am using Jqgrid and JSON as its input.
I want to export all the data into excel.
Is there any method to export jqgrid to excel or export JSON to excel?
If any body knows please share.
In the answer you will find the code and the description why I think that one should use Open XML SDK 2.0 on the server side instead of the usage of some kind of conversion in jqGrid (on the client side).
Related
i want to handle a requirement in polymer webcomponents where user can upload csv file from ui and csv file can be parsed to json and sent to server ,i searched and found for vaadin upload,looked over the api but i am not sure how to receive the csv file and convert to json and sent to server,can anyone show a jsfiddle of vaadin upload or any other web component to handle this scenario?
First of all, I am wondering why you would not simply do the conversion on the server side.
In this case, you would be able to use the vaadin-upload directly indeed.
Here is a snippet that would upload all files to the example.com server, and only allow CSV files.
<vaadin-upload target="https://example.com/upload" method="POST" accept="text/csv">
</vaadin-upload>
There are plenty of resources on how to convert CSV files to JSON.
Here is a snippet
And here is a node library
If you really wanted to do the conversion client side, then I would suggest to create an element that would embed a vaadin-upload, and convert the Files array to Json before manually calling the uploadFiles method.
I have a json response ~10,000+ records, i want them to export json response into excel document (.xls), with some formatting.
Application is designed in C# .NET, i am displaying json data in jqGrid.
Any link or support how this can be achieved is appreciated.
Try NPOL Its free and support XLS and XLSX both.
You can go through this blog for reference
I want to fetch data from consumerfinance.gov and import it into an Excel spreadsheet. Any ideas on how to accomplish this?
Why don't you try out our OData API, which would allow you to consume those datasets directly within Excel without needing to write any VBA at all?
Edited: All right, since it sounds like OData isn't an option, how about a Web Query? You can us the CSV export (Export -> Download -> CSV) or the CSV format from SODA and I think that'd still work in 2007.
We are using Birt report viewer to create reporting pages.
We use jdbc data source to connect with a Oracle database.
But is it possible to use a rest api (json format) as data source for the reports?
Does someone has experience with this?
BIRT has no build in JSON data source. However there are some community JSON data source plugins, but all of them I have seen are very low level and not comfortable to use, so I do not recommand any of them here.
You could create a "scripted data source" where you connect to your URL and parse the result by yourself but this is also not very comfortable. Someone tried it here so you have a starting point.
If you are in charge of the infrastructure providing the JSON output it would be easier to add an export to XML and use the BIRT build in XML data source.
I have a simple DataGrid that gets the Data from a JSON file hosted on a server.
I am using the build Data Connection Wizard and it works great.
Now I want to let the user manipulate the data and send it back to the JSON file.
I tried to add a form to the data grid but it changes only the data on the application and it is not influencing the file on the server.
any help or direction how should i do that will be appreciated.
Shani
Well i finally used
AMFphp and wrote my own functions.